제출 #598317

#제출 시각아이디문제언어결과실행 시간메모리
598317KK_1729Best Place (NOI17_bestplace)Cpython 3
100 / 100
307 ms14032 KiB
def median(a): n = len(a);a = sorted(a) if len(a)%2 == 0:return (a[n//2]+a[n//2-1])//2 else:return a[n//2] n = int(input()) xes = [];yes = [] for _ in range(n): x, y = map(int, input().split()) xes.append(x);yes.append(y) print(median(xes), median(yes))
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...