Submission #8091

# Submission time Handle Problem Language Result Execution time Memory
8091 2014-08-29T14:51:49 Z gs14004 간지(干支) (KOI13_kanji) C++
14 / 14
0 ms 1088 KB
#include <cstdio>

char str[60][3] = {"A0","B1","C2","D3","E4","F5","G6","H7","I8","J9","K0","L1","A2","B3","C4","D5","E6","F7","G8","H9","I0","J1","K2","L3","A4","B5","C6","D7","E8","F9","G0","H1","I2","J3","K4","L5","A6","B7","C8","D9","E0","F1","G2","H3","I4","J5","K6","L7","A8","B9","C0","D1","E2","F3","G4","H5","I6","J7","K8","L9"};

int main(){
    int n;
    scanf("%d",&n);
    n += 56;
    printf("%s",str[n%60]);
}
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 0 ms 1088 KB Output is correct
2 Correct 0 ms 1088 KB Output is correct