This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |