반응형 전체 글75 [파이썬] [SWEA] 2805. 농작물 수확하기 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV7GLXqKAWYDFAXB SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com T = int(input()) for tc in range(1, T+1): N = int(input()) arr = [list(map(int, input().split())) for _ in range(N)] mid = N//2 s = e = mid ans = 0 for i in range(N): for j in range(s, e+1): ans += arr[i][j] if i < mid: s, e = s - 1.. 2021. 2. 25. [파이썬] [SWEA] 1961. 숫자 배열 회전 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5Pq-OKAVYDFAUq SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com T = int(input()) def rotate(A, B): for i in range(N): for j in range(N): B[j][N - 1 - i] = A[i][j] for tc in range(1, T+1): N = int(input()) arr = [list(map(int, input().split())) for _ in range(N)] arr90 = [[0] * N for _ in range(N.. 2021. 2. 25. [파이썬] [SWEA] 1223. [S/W 문제해결 기본] 6일차 - 계산기2 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV14nnAaAFACFAYD SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com T = 10 for tc in range(1,T+1): N = int(input()) emp = input() emp_int = '' emp_temp = [] for str in emp: if str == '*': emp_temp.append(str) elif str == '+': while emp_temp: emp_int += emp_temp.pop() emp_temp.append(str) else: emp_i.. 2021. 2. 25. [파이썬] [SWEA] 3499. 퍼펙트 셔플 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWGsRbk6AQIDFAVW SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 2. short code T = int(input()) for tc in range(1, T+1): N = int(input()) cards = list(input().split()) ans = [] l = 0 r = (N+1) // 2 for _ in range(N//2): ans.append(cards[l]) ans.append(cards[r]) l, r = l+1, r+1 if N % 2: ans.appen.. 2021. 2. 25. 이전 1 ··· 8 9 10 11 12 13 14 ··· 19 다음 반응형