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

Re:求高手帮忙看一下错在哪里!在自己电脑上可以,怎么到这上面就不可以啊?

Posted by lxyiop at 2009-10-29 23:52:53 on Problem 1006
In Reply To:求高手帮忙看一下错在哪里!在自己电脑上可以,怎么到这上面就不可以啊? Posted by:jxd12300 at 2009-08-21 21:46:46
> #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;
> }
>  


你在最后输出的后面,少了一个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