Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
这题枚举就过了。。。while(p!=-1 && e!=-1 && i!=-1 && d!=-1) { p0=p%23; e0=e%28; i0=i%33; count++; for(day=d+1;(day-p0)%23!=0 || (day-e0)%28!=0 || (day-i0)%33!=0;day++); printf("Case %d: the next triple peak occurs in %d days.\n", count, day-d); } 过了,还370MS,数据太弱了~ Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator