| # | Time | Username | Problem | Language | Result | Execution time | Memory | 
|---|---|---|---|---|---|---|---|
| 15921 | ggoh | 새로운 달력 (GCJ12KOR_calendar) | C++98 | 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<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 | 
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output | 
|---|---|---|---|---|
| Fetching results... | ||||
