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

高人指点一下,怎么提交不成功啊,谢谢

Posted by cpp050700448084 at 2005-03-20 01:42:46 on Problem 1326
#include<iostream.h>
void main()
{
	char p1[20],p2[20],type,p3;float data;
	float result [50];int i=0;
	cin>>p3;
	while(p3!='#'){
		result[i]=0;
		while (p3!='0'){
			cin>>p1>>p2>>data>>type;
			if(type=='F')result[i]+=data*2;
			else if(type=='B')result[i]+=data*1.5;
			else if (data<=500)result[i]+=500;
			else if (data>500)result [i]+=data;
			cin>>p3;
		}
		i++;
		cin>>p3;
	}
	for (int j=0;j<i;j++)
		cout<<result[j]<<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