上代码:
#include<bits/stdc++.h>
using namespace std;
struct student{
string name;
int old;
int score;
}a;
int main()
{
int n;
cin>>n;
for(int i=0;i<n;i++)
{
cin>>a.name;
cin>>a.old;
cin>>a.score;
cout<<a.name<<" ";
cout<<a.old+1<<" ";
if(a.score*0.2+a.score>600)
cout<<600;
else
cout<<a.score*0.2+a.score<<endl;
}
return 0;
}
结果……
#1和#4WA了。。。。。。
请各位大佬指导一下