RiseOJ는 solved.ac와 제휴 관계가 없습니다. 티어 아이콘 © solved.ac. solved.ac
포럼
문제 COCI00680

Osobna

설명

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 21st century (so the full year starts with 20). Otherwise, the person was born
in the 20th 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 (even if not all parts of the problem are solved):
• 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.

서브태스크
서브태스크점수설명

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.

예제 1
입력
IOHRV111111111233333333333<<<<
0102032M2202022HRV<<<<<<<<<<<5
TONI<<HONI<<<<<<<<<<<<<<<<<<<<
출력
Ime: Toni
Prezime: Honi
Datum rodjenja: 03-02-2001
OIB: 33333333333
예제 2
입력
IOHRV123456789012345678901<<<<
9803049F2401059HRV<<<<<<<<<<<2
PAJO<<PATAK<<<<<<<<<<<<<<<<<<<
출력
Ime: Pajo
Prezime: Patak
Datum rodjenja: 04-03-1998
OIB: 12345678901
설명

Explanation of the first example:
Refer to the illustration in the problem statement.

문제 정보

생성자가 기록되지 않았습니다.

출처 COCI 2024/2025 Contest 1

평가 및 의견

Osobna

개요
출제자 난이도 Unrated 레이팅 미적용 의견 0 / 50 공개 집계 (커뮤니티 난이도, 주요 주제, 품질)는 의견이 충분히 모이면 공개됩니다.

Log in to rate problems.

개별 의견

아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.

풀이 제출

Osobna

게스트로 둘러보고 있습니다. 로그인하면 풀이를 제출하고 진행 상황을 확인할 수 있습니다. 로그인하고 제출하기
공개
C++20 Tab 들여쓰기 · Ctrl+/ 주석 토글 · Enter 자동 들여쓰기
1 1 1 0 공백: 4 · UTF-8