0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-09 02:18:51 +00:00
OI-codes/Luogu/P5744/P5744.cpp

20 lines
349 B
C++
Raw Normal View History

// R38782109
#include <bits/stdc++.h>
using namespace std;
int main() {
2021-11-19 09:01:13 +00:00
int n;
string name;
2021-11-19 09:01:13 +00:00
int age;
int score;
cin >> n;
for (int i = 0; i < n; i++) {
cin >> name >> age >> score;
cout << name << ' ' << ++age << ' ' << ((int)(score * 1.2) > 600 ? 600 : (int)(score * 1.2)) << endl;
}
return 0;
}