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 |
求高手帮忙看一下错在哪里!在自己电脑上可以,怎么到这上面就不可以啊?#include <iostream> using namespace std; int main (void) { int a,p,e,i,d,t=1; while(1){ cin>>p>>e>>i>>d; if(p==-1&&e==-1&&i==-1&&d==-1) break; a=(p*6*28*33+e*19*23*33+i*2*23*28)%21252; if(a==0)a=21252; cout<<"Case "<<t<<": the next triple peak occurs in "<<a-d<<" days"; t++; } return 0; } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator