first commit

from old repository to a new repository
This commit is contained in:
Gyubin Han
2024-04-30 16:59:10 +09:00
commit 2600340c03
93 changed files with 1610 additions and 0 deletions

10
boj/10951.py Normal file
View File

@@ -0,0 +1,10 @@
# 별도의 입력 갯수를 정하지 않고 계속 입력받기 위해 while문 사용
while True:
# EOF를 통해서 프로그램이 종료되는 구조임.
try:
a,b=map(int,input().split())
print(a+b)
# EOF가 발생한 경우, EOFError라는 예외가 발생하여, 이 예외를 처리
except EOFError:
# 상위에서 동작하는 반복문을 중지하고, 반복문을 빠져 나옴.
break