# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1104 |
2013-06-25T08:27:21 Z |
hana5505 |
간지(干支) (KOI13_kanji) |
C++ |
|
1 ms |
884 KB |
#include<stdio.h>
int main()
{
char c[13]={'A','B','C','D','E','F','G','H','I','J','K','L'};
int n,i,a,b;
scanf("%d ",&n);
a=5;
b=9;
if(n>2013){
for(i=2013;i<n;i++){
a++;
b++;
if(a>=12) a=0;
if(b>=10) b=0;
}
}
else if(n<2013){
for(i=2013;i>n;i--){
a--;
b--;
if(a<0) a=11;
if(b<0) b=9;
}
}
printf("%c%d",c[a],b);
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
884 KB |
Output is correct |
2 |
Correct |
1 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
884 KB |
Output is correct |
2 |
Correct |
0 ms |
884 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
884 KB |
Output is correct |
2 |
Correct |
1 ms |
884 KB |
Output is correct |