Submission #3534300

Source Code Expand

Copy
N = int(input())
T, A = map(int, input().split())
H = list(map(int, input().split()))

min_A = 100000
min_num = 0
for i in range(len(H)):
    t = T - H[i] * 0.006
    if min_A > abs(t - A):
        min_A = abs(t - A)
        min_num = i + 1

print(min_num)

Submission Info

Submission Time
Task B - Palace
User showyou41
Language Python3 (3.4.3)
Score 200
Code Size 268 Byte
Status
Exec Time 18 ms
Memory 3064 KB

Test Cases

Set Name Score / Max Score Test Cases
Sample 0 / 0 sample_01.txt, sample_02.txt
All 200 / 200 01.txt, 02.txt, 03.txt, 04.txt, 05.txt, 06.txt, 07.txt, 08.txt, 09.txt, 10.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
01.txt 17 ms 3060 KB
02.txt 17 ms 3060 KB
03.txt 18 ms 3060 KB
04.txt 18 ms 3060 KB
05.txt 17 ms 3064 KB
06.txt 17 ms 3060 KB
07.txt 17 ms 3060 KB
08.txt 17 ms 3060 KB
09.txt 17 ms 3060 KB
10.txt 17 ms 3060 KB
sample_01.txt 17 ms 3060 KB
sample_02.txt 17 ms 3060 KB