求救qwq
查看原帖
求救qwq
458092
Lilywu楼主2022/1/16 14:17

rt 下载样例算了一下答案是对的 一评测就全WA

#include<bits/stdc++.h>
using namespace std;
int main(){
	string s;
	int n,a,b[10001];
    cin>>n;
    for(int i=1;i<=n;i++){
        cin>>s>>a>>b[i];
        if(b[i]*1.2<=600){
        	b[i]=b[i]*1.2;
		}
        else{
        	b[i]=600;
		}
    }
    for(int j=1;j<=n;j++){
    	cout<<s<<a+1<<b[j]<<endl;
	}
    return 0;
}
2022/1/16 14:17
加载中...