signed

QiShunwang

“诚信为本、客户至上”

洛谷-培训

2021/3/21 2:13:35   来源:

在这里插入图片描述

#include <bits/stdc++.h>
using namespace std;

struct f 
{
	string name;
	int age;
	int sorce;
} a[99999];

int main () 
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) 
	{
		cin >> a[i].name >> a[i].age >> a[i].sorce;
	}
	for (int i = 0; i < n; i++) 
	{
		cout << a[i].name << ' ' << a[i].age + 1;
		if (a[i].sorce * 1.2 <= 600)
			cout <<' '<< a[i].sorce * 1.2 << endl;
		else
		    cout<<" 600"<<endl;
	}
	return 0;
}