#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 55).

After one year of training, all students' scores have improved by 20%20\% (of course, the full score of NOIP is 600600, 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 nn, representing the number of students.

Starting from the second line, there are nn 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 nn 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: 1n51 \leq n \leq 5. The age is an integer from 01000 \sim 100 (including 00 and 100100). The score is a multiple of 55 in the range 06000 \sim 600 (including 00 and 600600).

Translated by ChatGPT 5