왜 런타임에러가 나는지 모르겠습니다.
import sys input = sys.stdin.readline numbers = [] attacks = [] result = 0 n, m = map(int, input().split(' ')) map_ = [0] * n for i in range(n): numbers.append(list(map(int, input().split(' ')))) for j in range(2): attacks.append(list(map(int, input().split(' ')))) for row in range(n): cnt = 0 for col in range(m): if numbers[row][col] == 1: cnt += 1 map_[row] = cnt for index in range(2): start, end = attacks[index][0], attacks[index][1] for turn in range(start - 1, end): if map_[turn] > 0: ma...
- 연습문제 톡
- 날짜
- 2025-01-24 21:34:11
- 작성자
- junhyung8795
- 댓글
- 2