Submission #15921

#TimeUsernameProblemLanguageResultExecution timeMemory
15921ggoh새로운 달력 (GCJ12KOR_calendar)C++98
10 / 25
1000 ms1084 KiB
#include<algorithm> #include<cstdio> int a,i,x,y,z,t,m,u; main() { scanf("%d",&a); for(i=0;i<a;i++) { m=0; u=0; scanf("%d%d%d",&x,&y,&z); while(x--) { t=y+u; m+=(t+z-1)/z; u=t%z; } printf("Case #%d: %d\n",i+1,m); } }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...