728x90
풀이
입력받은 전화번호의 prefix number가 555이면 "YES"를, 아니면 "NO"를 출력하면 되는 문제이다.
소스코드
출처
17863번: FYI
In the United States of America, telephone numbers within an area code consist of 7 digits: the prefix number is the first 3 digits and the line number is the last 4 digits. Traditionally, the 555 prefix number has been used to provide directory informatio
www.acmicpc.net
728x90
'PS > Baekjoon Online Judge' 카테고리의 다른 글
[백준 17874] Piece of Cake! [Python] (0) | 2023.05.01 |
---|---|
[백준 9465] 스티커 [Python] (0) | 2023.04.30 |
[백준 11054] 가장 긴 바이토닉 부분 수열 [Python] (0) | 2023.04.29 |
[백준 11722] 가장 긴 감소하는 부분 수열 [Python] (0) | 2023.04.29 |
[백준 11053] 가장 긴 증가하는 부분 수열 [Python] (0) | 2023.04.29 |