s = ''
while True:
try:
s += input()
except:
break
print(int(s))
위와 같은 코드를 통해 디버깅했을 때,
ValueError: invalid literal for int() with base 10: '3 3\r20 34 59 '
이러한 에러 메세지가 출력되는 입력이 존재함이 확인되었습니다.
테스트 케이스를 수정해 주세요.
수정한 이유 :
s = ''
while True:
try:
s += input()
except:
break
print(int(s))
위와 같은 코드를 통해 디버깅했을 때,
ValueError: invalid literal for int() with base 10: '3 3\r20 34 59 '
이러한 에러 메세지가 출력되는 입력이 존재함이 확인되었습니다.
테스트 케이스를 수정해 주세요.
수정한 이유 :