Submission #3653012


Source Code Expand

Copy
N = int(input())
a = list(map(int, input().split()))
ave = sum(a) / len(a)
c = []
for i in a:
    c.append(abs(i - ave))
print(c.index(min(c)))

Submission Info

Submission Time
Task A - Thumbnail
User taku0728
Language Python3 (3.4.3)
Score 200
Code Size 151 Byte
Status
Exec Time 21 ms
Memory 3316 KB

Test Cases

Set Name Score / Max Score Test Cases
All 200 / 200 00_challenge_01, 00_sample_01, 00_sample_02, challenge_01, challenge_02, challenge_03, challenge_04, rand_01, rand_02, rand_03, rand_04, rand_pm1_01, rand_pm1_02, rand_pm1_03, rand_pm1_04
Case Name Status Exec Time Memory
00_challenge_01 21 ms 3316 KB
00_sample_01 17 ms 2940 KB
00_sample_02 17 ms 2940 KB
challenge_01 17 ms 2940 KB
challenge_02 17 ms 2940 KB
challenge_03 17 ms 2940 KB
challenge_04 17 ms 2940 KB
rand_01 17 ms 2940 KB
rand_02 17 ms 2940 KB
rand_03 17 ms 2940 KB
rand_04 17 ms 2940 KB
rand_pm1_01 17 ms 2940 KB
rand_pm1_02 17 ms 2940 KB
rand_pm1_03 17 ms 2940 KB
rand_pm1_04 17 ms 2940 KB