Submission #16372

# Submission time Handle Problem Language Result Execution time Memory
16372 2015-08-21T17:28:33 Z eaststar 새로운 달력 (GCJ12KOR_calendar) C++14
0 / 25
0 ms 1084 KB
#include <stdio.h>
int s[110];
int main(){
    int i,tc,b,c,t;
  	long long a;
    scanf("%d",&tc);
    for(;tc--;){
        scanf("%lld%d%d",&a,&b,&c);
        t=b;
      	for(i=1;i<=c;++i)s[i]=(t+c-1)/c+s[i-1],t=t%c+b;
        printf("Case #%d: %d\n",i,a/c*s[c]+s[a%c]);
    }
    return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 1084 KB Output isn't correct