Solution/Python
[BAEKJOON ONLINE JUDGE] 26489번 : Gum Gum for Jay Jay
뺚
2024. 2. 28. 14:00
시간 제한 : 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)