제출 #924035

#제출 시각아이디문제언어결과실행 시간메모리
924035DanusanBest Place (NOI17_bestplace)Cpython 3
컴파일 에러
0 ms0 KiB
import math def main(): num=int(input()) x=[] y=[] xval={} yval={} for i in range(num): xn = int(input()) yn =int(input()) x.append(xn) y.append(yn) for i in range(num): for j in range(i+1,num): xval[x[i]]=xval.get(x[i],0) + abs(x[i]-x[j]) xval[x[j]]=xval.get(x[j],0) + abs(x[i]-x[j]) for i in range(num): for j in range(i+1,num): yval[y[i]]= yval.get(y[i],0) + abs(y[i]-y[j]) yval[y[j]]= yval.get(y[j],0) + abs(y[i]-y[j]) ans=[] ans.append(min(xval, key=xval.get)) ans.append(min(yval, key=yval.get)) print(ans) return 0

컴파일 시 표준 에러 (stderr) 메시지

Sorry: TabError: inconsistent use of tabs and spaces in indentation (bestplace.py, line 22)