반응형 전체 글75 [파이썬] [SWEA] 1206. [S/W 문제해결 기본] 1일차 - View swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV134DPqAA8CFAYh SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 1. normal T = 10 # 대문자 상수 for tc in range(1, T+1): N = int(input()) arr = list(map(int, input().split())) ans = 0 # 2 ~ N-2 각각 검사해서 for i in range(2, N-2): min_value = 987654321 # 기준 건물과 왼쪽 오른쪽 2개 차의 최소값 for j in range(5): if j != 2.. 2021. 2. 20. [파이썬] [SWEA] 1208. [S/W 문제해결 기본] 1일차 - Flatten swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV139KOaABgCFAYh#none 1. normal T = 10 for tc in range(1, T + 1): N = int(input()) arr = list(map(int, input().split())) for temp in range(N): for i in range(len(arr)): if i == 0: data_max = arr[i] data_min = arr[i] max_list = i min_list = i else: if data_max >= arr[i]: if data_min > arr[i]: data_min = arr[i] min_list = i else:.. 2021. 2. 20. [파이썬] [SWEA] 1959. 두 개의 숫자열 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AV5PpoFaAS4DFAUq SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 1. normal def check(long, short): max_value = -987654321 for i in range(len(long)-len(short)+1): result = 0 for j in range(len(short)): result += long[i+j] * short[j] if max_value < result: max_value = result return max_value T = in.. 2021. 2. 20. [파이썬] [SWEA] 6485. 삼성시의 버스 노선 swexpertacademy.com/main/code/problem/problemDetail.do?contestProbId=AWczm7QaACgDFAWn SW Expert Academy SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요! swexpertacademy.com 1. normal T = int(input()) for tc in range(1, T+1): N = int(input()) # 버스의 수 bus_stop = [0] * (5001) for i in range(N): A, B = map(int, input().split()) # 해당 정류장에 지나는 버스의 대수 누적 for j in range(A, B+1): bus_stop[j] += 1 P = int(input(.. 2021. 2. 20. 이전 1 ··· 14 15 16 17 18 19 다음 반응형