| ||||||||||
| 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 | |||||||||
为什么会WA???#include <iostream>
using namespace std;
int main()
{
int t,n,i,score;
char name[21];
long sum;
cin>>t>>n;
while(t!=0 && n!=0)
{
sum=3*n;
for(i=1;i<=t;i++)
{
cin>>name>>score;
sum-=score;
}
cout<<sum<<endl;
cin>>t>>n;
}
system("pause");
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator