mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-24 01:28:49 +00:00
P5744 【深基7.习9】培训
R38782109
This commit is contained in:
parent
70cc61de43
commit
4ebaa9f954
19
problem/P5744/P5744.cpp
Normal file
19
problem/P5744/P5744.cpp
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
// R38782109
|
||||||
|
|
||||||
|
#include <bits/stdc++.h>
|
||||||
|
|
||||||
|
using namespace std;
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int n;
|
||||||
|
string name;
|
||||||
|
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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user