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 |
因为你用的cin, coutIn Reply To:简单的输入输出,为什么用时15MS?? Posted by:jxd at 2006-10-21 13:09:45 > #include"iostream.h" > void main() > { > long p,e,i,d,kk=1; > while(cin>>p>>e>>i>>d&&p!=-1&&e!=-1&&i!=-1&&d!=-1) > cout<<"Case "<<kk++<<": the next triple peak occurs in "<<(5544*p+14421*e+1288*i+21251-d)%21252+1<<" days."<<endl; > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator