| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 | 1024 MB | 83 | 63 | 51 | 83.607% |
Toni, the new chairperson of COCI (in Croatian: HONI), loves HONI so much that he decided to change his last name to match the competition’s name. From now on, his name is Toni Honi! Excited about the change, Toni eagerly awaited his new personal ID card. When it finally arrived, he couldn’t stop staring at it. He was especially fascinated by the three lines of characters on the back of the card.
It didn’t take him long to realize that these lines contain some of his personal details: his first name, last name, birth date, and personal identification number (PIN). He copied the lines from his ID onto a piece of paper and identified the details he could recognize:
In the first line, which consists of 5ドル$ letters, 21ドル$ digits, and 4ドル$ '<' characters, Toni discovered his PIN — the last 11ドル$ digits of the line.
In the second line, he identified his birth date. The first two digits represent the year, the next two the month, and the final two digits the day of birth. If the two-digit year is less than or equal to 24, it means the person was born in the 21ドル$st century (so the full year starts with 20). Otherwise, the person was born in the 20ドル$th century (so the full year starts with 19).
In the third line, Toni found his first name, followed by two '<' characters, and then his last name. The rest of the line was padded with '<' characters.
Toni found these discoveries fascinating and now wants you to join the fun — for the three lines on the back of the ID card, extract and print the person’s first name, last name, birth date, and personal identification number (PIN).
The input consists of three lines of characters, each of length 30ドル$. The characters that can appear are uppercase English letters, digits, and the character '<'. The first name and last name will each consist of exactly one word and will be in uppercase English letters. Both names will fit entirely into the third line.
Output four lines:
Ime: ' followed by the person’s first name, capitalized (only the first letter should be uppercase).Prezime: ' followed by the person’s last name, capitalized (only the first letter should be uppercase).Datum rodjenja: ' followed by the birth date in the format DD-MM-YYYY.OIB: ' followed by the person’s personal identification number (PIN).Side note: "Ime" stands for name, "Prezime" for surname, and "Datum rodjenja" for birth date when translated from Croatian.
| 번호 | 배점 | 제한 |
|---|---|---|
| 1 | 25 | Both the first and last name will consist of only one letter. |
| 2 | 15 | The birth year will be between 2000ドル$ and 2024ドル$. |
| 3 | 10 | No additional constraints. |
IOHRV111111111233333333333<<<< 0102032M2202022HRV<<<<<<<<<<<5 TONI<<HONI<<<<<<<<<<<<<<<<<<<<
Ime: Toni Prezime: Honi Datum rodjenja: 03-02-2001 OIB: 33333333333
Refer to the illustration in the problem statement.
IOHRV123456789012345678901<<<< 9803049F2401059HRV<<<<<<<<<<<2 PAJO<<PATAK<<<<<<<<<<<<<<<<<<<
Ime: Pajo Prezime: Patak Datum rodjenja: 04-03-1998 OIB: 12345678901