백준203091 [백준] 20309 트리플 소트 - python 백준 실버 3 - 20309 트리플 소트 python https://www.acmicpc.net/problem/20309 20309번: 트리플 소트 $N$은 $3, 4, 5$ 중 하나이다. www.acmicpc.net 코드 100점이 뜬 코드입니다. - 메모리 65900KB | 시간 180ms | 코드 길이 356B import sys N = int(sys.stdin.readline().rstrip()) n_list = [0] + list(map(int, sys.stdin.readline().rstrip().split())) error = 0 for i in range(1, N): if i % 2 != 0 and n_list[i] % 2 == 0: error += 1 break elif i % 2 == .. 2023. 1. 30. 이전 1 다음