# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
16371 | eaststar | 새로운 달력 (GCJ12KOR_calendar) | C++14 | 1000 ms | 1084 KiB |
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(){
int i,tc,a,b,c,s,t;
scanf("%d",&tc);
for(i=1;i<=tc;++i){
scanf("%d%d%d",&a,&b,&c);
s=0,t=b;
for(;a--;)s+=(t+c-1)/c,t=t%c+b;
printf("Case #%d: %d\n",i,s);
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |