Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

因为你用的cin, cout

Posted by z12y12l12 at 2006-10-21 13:19:40 on Problem 1006
In 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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator