Submission #19604633


Source Code Expand

N,X =map(int, input().split())
count =0
result =-1
for i in range(N):
    V,P = map(int,input().split())
    # print(V,":",P)
    count += V*(P/100)
    if count > X:
        result = i+1
        break
print(result)

Submission Info

Submission Time
Task B - Alcoholic
User f_taka
Language Python (3.8.2)
Score 0
Code Size 225 Byte
Status WA
Exec Time 29 ms
Memory 9200 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
AC × 20
WA × 8
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, hand_04.txt, hand_05.txt, hand_06.txt, max_01.txt, max_02.txt, min_01.txt, min_02.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt AC 21 ms 9044 KiB
hand_02.txt AC 23 ms 9044 KiB
hand_03.txt WA 24 ms 9052 KiB
hand_04.txt AC 19 ms 9200 KiB
hand_05.txt WA 18 ms 9044 KiB
hand_06.txt WA 19 ms 8988 KiB
max_01.txt AC 24 ms 9004 KiB
max_02.txt AC 21 ms 9188 KiB
min_01.txt AC 17 ms 9176 KiB
min_02.txt AC 18 ms 8880 KiB
random_01.txt WA 27 ms 9116 KiB
random_02.txt AC 25 ms 8896 KiB
random_03.txt WA 21 ms 8992 KiB
random_04.txt AC 24 ms 8992 KiB
random_05.txt AC 27 ms 9056 KiB
random_06.txt WA 21 ms 9048 KiB
random_07.txt WA 29 ms 9180 KiB
random_08.txt WA 20 ms 8996 KiB
random_09.txt AC 20 ms 8888 KiB
random_10.txt AC 22 ms 9048 KiB
random_11.txt AC 23 ms 8992 KiB
random_12.txt AC 20 ms 9048 KiB
random_13.txt AC 22 ms 8988 KiB
random_14.txt AC 21 ms 8996 KiB
random_15.txt AC 18 ms 9044 KiB
sample_01.txt AC 24 ms 9116 KiB
sample_02.txt AC 19 ms 9044 KiB
sample_03.txt AC 23 ms 8988 KiB