You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
472 B
21 lines
472 B
#include <bits/stdc++.h>
|
|
|
|
using namespace std;
|
|
const int N = 1e6;
|
|
|
|
struct Student {
|
|
string name;
|
|
int age, score;
|
|
} a[N];
|
|
|
|
int main() {
|
|
int n;
|
|
cin >> n;
|
|
for (int i = 1; i <= n; i++) {
|
|
cin >> a[i].name >> a[i].age >> a[i].score;
|
|
a[i].age++, a[i].score = a[i].score / 5 * 6;
|
|
if (a[i].score > 600) a[i].score = 600;
|
|
cout << a[i].name << " " << a[i].age << " " << a[i].score << endl;
|
|
}
|
|
return 0;
|
|
} |