This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
def median(list,num):
list.sort()
if num%2!=0:
return list[num//2]
return (list[num//2]+list[(num//2)-1])//2
num=int(input())
x=[]
y=[]
for i in range(num):
xn, yn = map(int, input().split())
x.append(xn)
y.append(yn)
print(median(x,num),median(y,num))
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |