Logo
(追記) (追記ここまで)

32532번 - Osobna 서브태스크다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 1024 MB83635183.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:

  • In the first line, print 'Ime: ' followed by the person’s first name, capitalized (only the first letter should be uppercase).
  • In the second line, print 'Prezime: ' followed by the person’s last name, capitalized (only the first letter should be uppercase).
  • In the third line, print 'Datum rodjenja: ' followed by the birth date in the format DD-MM-YYYY.
  • In the fourth line, print '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.

제한

서브태스크

번호배점제한
125

Both the first and last name will consist of only one letter.

215

The birth year will be between 2000ドル$ and 2024ドル$.

310

No additional constraints.

예제 입력 1

IOHRV111111111233333333333<<<<
0102032M2202022HRV<<<<<<<<<<<5
TONI<<HONI<<<<<<<<<<<<<<<<<<<<

예제 출력 1

Ime: Toni
Prezime: Honi
Datum rodjenja: 03-02-2001
OIB: 33333333333

Refer to the illustration in the problem statement.

예제 입력 2

IOHRV123456789012345678901<<<<
9803049F2401059HRV<<<<<<<<<<<2
PAJO<<PATAK<<<<<<<<<<<<<<<<<<<

예제 출력 2

Ime: Pajo
Prezime: Patak
Datum rodjenja: 04-03-1998
OIB: 12345678901

힌트

출처

Contest > Croatian Open Competition in Informatics > COCI 2024/2025 > Contest #1 1번

채점 및 기타 정보

  • 예제는 채점하지 않는다.
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /