Submission #4275

#TimeUsernameProblemLanguageResultExecution timeMemory
4275ansol4328간지(干支) (KOI13_kanji)C++98
14 / 14
0 ms1088 KiB
#include<stdio.h> int main() { int n, i; int kan=-1, gi=-1; char g[12]={'A','B','C','D','E','F','G','H','I','J','K','L'}; scanf("%d",&n); for(i=-57 ; i<=n ; i++) { kan++; gi++; if(kan>=10) { kan-=10; } if(gi>=12) { gi-=12; } if(i==-1) { i++; } } printf("%c%d",g[gi],kan); return 0; }
#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...