Submission #1104

#TimeUsernameProblemLanguageResultExecution timeMemory
1104hana5505간지(干支) (KOI13_kanji)C++98
14 / 14
1 ms884 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...