문제
Earth is under attack! Messages need to be sent to the Earth Defense Force (EDF) that makes clear that the situation is dire. The EDF’s strongest forces consist of mechs (huge bipedal robots) that are piloted by Japanese teenagers. To make sure that the messages come across as urgent, they must be displayed on the monitors of the pilots in uppercase letters. Unfortunately, the tachyon communication system that is used by the EDF is only able to send strings in lower-case alphabetic characters.
The set of lower-case alphabetic characters is made up of the following characters: ’a’, ’b’, ’c’, ’d’, ’e’, ’f’, ’g’, ’h’, ’i’, ’j’, ’k’, ’l’, ’m’, ’n’, ’o’, ’p’, ’q’, ’r’, ’s’, ’t’, ’u’, ’v’, ’w’, ’x’, ’y’, ’z’.
Your job is to write a program that converts the given messages to upper-case.
입력
- A single line containing a string of length n (100 ≤ n ≤ 106), consisting of lower-case alphabetic characters.
출력
- A single line containing the input string where all letters are converted to upper-case letters.
예제 입력 1 복사
alert
예제 출력 1 복사
ALERT
예제 입력 2 복사
earthisunderattack
예제 출력 2 복사
EARTHISUNDERATTACK
예제 입력 3 복사
canyoupickupsomegroceries
예제 출력 3 복사
CANYOUPICKUPSOMEGROCERIES
upper() 사용해서 대문자로 올리기
'알고리즘' 카테고리의 다른 글
[BAEKJOON] 23795 사장님 도박은 재미로 하셔야 합니다 (0) | 2024.01.24 |
---|---|
[BAEKJOON] 13277 큰 수 곱셈 (0) | 2024.01.23 |
[BAEKJOON] 25640 MBTI (0) | 2024.01.21 |
[BAEKJOON] 30501 관공... 어찌하여 목만 오셨소... (0) | 2024.01.21 |
[BAEKJOON] 5357 Dedupe (0) | 2024.01.19 |