페이지

7572번: 간지(干支)

https://www.acmicpc.net/problem/7572


$O(1)$


#include<cstdio>
int n;
int main() {
    scanf("%d", &n);
    printf("%c%d", (n + 8) % 12 + 'A', (n + 6) % 10);
    return 0;
}

댓글 없음 :

댓글 쓰기