#P5744. 【深基7.习9】培训
【深基7.习9】培训
Problem Description
The students in a training institution have the following information:
- Name (string).
- Age (in full years, integer).
- Last year's NOIP score (integer, and guaranteed to be a multiple of ).
After one year of training, all students' scores have improved by (of course, the full score of NOIP is , so the score cannot exceed this value).
Given the students' information, please design a struct to store this student information, and design a function to simulate the training process. The parameter is this struct type, and it returns the same struct type, and outputs the student information.
Input Format
The first line contains a positive integer , representing the number of students.
Starting from the second line, there are lines. Each line first contains a string representing the student's name, then an integer representing the student's age, and then an integer representing last year's NOIP score.
Output Format
Output lines. Each line first outputs a string representing the student's name, followed by two integers representing the student's age after one year of training and their NOIP score this year. Separate them with spaces.
3
kkksc03 24 0
chen_zhe 14 400
nzhtl1477 18 590
kkksc03 25 0
chen_zhe 15 480
nzhtl1477 19 600
Hint
Constraints: . The age is an integer from (including and ). The score is a multiple of in the range (including and ).
Translated by ChatGPT 5