개발자 뺚
[BAEKJOON ONLINE JUDGE] 26489번 : Gum Gum for Jay Jay 본문
시간 제한 : 1 초
메모리 제한 : 1024 MB
문제
You are lost in the museum and keep walking by a giant rock head that says “gum gum for jay jay” each time you walk by. Print out the number of times you have walked by the giant rock head after reading in the data file.
입력
The data file will contain an unknown number of lines.
출력
Print out the number of lines in the data file.
count = 0
while True:
try:
string = input()
count += 1
except EOFError:
break
print(count)
'Solution > Python' 카테고리의 다른 글
[BAEKJOON ONLINE JUDGE] 1181번 : 단어 정렬 (1) | 2024.03.01 |
---|---|
[BAEKJOON ONLINE JUDGE] 25372번 : 성택이의 은밀한 비밀번호 (0) | 2024.02.29 |
[BAEKJOON ONLINE JUDGE] 27889번 : 특별한 학교 이름 (0) | 2024.02.27 |
[BAEKJOON ONLINE JUDGE] 26711번 : A+B (0) | 2024.02.26 |
[BAEKJOON ONLINE JUDGE] 28691번 : 정보보호학부 동아리 소개 (0) | 2024.02.25 |