반응형 57891 [파이썬] [SWEA] 5789. 현주의 상자 바꾸기 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWYygN36Qn8DFAVm SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com T = int(input()) for tc in range(1, T+1): N, Q = map(int, input().split()) result = [0] * N for i in range(1,Q+1): L, R = map(int, input().split()) for j in range(L-1, R): result[j] = i print("#{}".format(tc),end=' ') for i in range.. 2021. 2. 25. 이전 1 다음 반응형