# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
15921 |
2015-08-01T12:28:05 Z |
ggoh |
새로운 달력 (GCJ12KOR_calendar) |
C++ |
|
1000 ms |
1084 KB |
#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 time |
Memory |
Grader output |
1 |
Correct |
0 ms |
1084 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Execution timed out |
1000 ms |
1080 KB |
Program timed out |