#PCBNAM0000019. Hồ sơ tuyển sinh (Admissions Record)
Hồ sơ tuyển sinh (Admissions Record)
Admissions Record
Source: Phước Hưng OJ
Version: Phuoc Hung OJ Extended
Problem Statement
An admissions record contains a candidate code, a full name line, three date fields, a bonus score, a declared preference count , and exactly preference codes. Print the normalized record for checking. Keep codes and the full name as text while converting numeric fields to their correct types.
Input
Line 1 is candidate code . Line 2 is full name . Line 3 contains integers in day, month, year order. Line 4 is real bonus score . Line 5 is integer . Line 6 contains exactly preference codes.
Output
Print exactly six lines: candidate code; full name; the three space-separated date fields; the bonus score as a float; and the actual code count; finally, all preference codes separated by one space.
Subtasks
- Subtask 1 — 100 points: ; , , (calendar validity is not tested); with at most three fractional digits. Codes are 1–20 non-whitespace characters; the full name contains 1–100 characters. Length and score-format limits are added for this training version.
Examples
Input
TS007
Nguyen Van An
1 9 2010
1.5
3
NV01 NV02 NV03
Output
TS007
Nguyen Van An
1 9 2010
1.5
3 3
NV01 NV02 NV03
Explanation
Read TS007 and the full name Nguyen Van An. The date becomes , , , the bonus is float , and . The final line contains three code tokens, so len(choices)=3. The six output lines are the code, name, 1 9 2010, 1.5, 3 3, and NV01 NV02 NV03.