mod = int(input())
l = list(map(int, input().split()))
assert len(l) == 10
s = sum(l) * 2
print(s % mod)
위와 같은 코드에서 AssertionError이 발생합니다. 데이터를 수정해 주세요.
수정) \t, \r이 모두 사용되고 있음을 확인했습니다.
댓글 1
-
InformaticsTeacher
2025.12.04 09:56
mod = int(input())
l = list(map(int, input().split()))
assert len(l) == 10
s = sum(l) * 2
print(s % mod)
위와 같은 코드에서 AssertionError이 발생합니다. 데이터를 수정해 주세요.
수정) \t, \r이 모두 사용되고 있음을 확인했습니다.
2025.12.04 09:56
공백으로 구분이 아니라 줄바꿈(엔터) 구분어있습니다. 문구 수정 완료