top of page

소스 코드 제출

공개·회원 52명

20250708

#include <stdio.h>

#include <stdlib.h>


int main()

{

int n,i;

int cnt=0, arr[999] = {0};

char s[99] = {'A',};

memset(s, 'A', sizeof(s));


scanf("%d", &n);

i=0;

while (n>=0) {

n -=26;

s[i]++;

i++;

cnt++;

}

printf("%d", cnt);

printf("%c", s[55]);

return 0;

}


26일 때 Z

n/26이 1초과부터 2번째 자리가 증가하기


시작함

n/26이 2,3,4면 A B C

n/26이 26초과이면 3번째 자리가 증가하겠지?


1~26 A~Z

27~52 AA~AZ

...


26*26*26 26*26 26

1회 조회
주소 : 경기도 용인시 광교중앙로 302 블루 스퀘어 602호
연락처 : 031) 216 - 1546 ,     031) 215 - 1546
사업자등록번호 : 465-92-00916
​학원 등록 제 4603호
bottom of page