Skip to content

Instantly share code, notes, and snippets.

@monchy-monchy
Created August 5, 2021 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save monchy-monchy/c78ba92f97779f3ae2f9693980c89fc1 to your computer and use it in GitHub Desktop.
Save monchy-monchy/c78ba92f97779f3ae2f9693980c89fc1 to your computer and use it in GitHub Desktop.
ABC113 B - Palace
N = int(input())
T, A = list(map(int, input().split()))
H = list(map(int, input().split()))
t = []
for n in range(N):
tem = T - H[n]*0.006
t.append(abs(A - tem))
print(t.index(min(t))+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment