Created
August 5, 2021 00:54
-
-
Save monchy-monchy/c78ba92f97779f3ae2f9693980c89fc1 to your computer and use it in GitHub Desktop.
ABC113 B - Palace
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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