Submission #19685658


Source Code Expand

import numpy as np
from sys import stdin

input = stdin.readline

n, x = map(int, input().split())

al = 0
ans = 0
while(al <= x and ans < n):
    v ,p= map(int, input().split())
    al += v * p / 100
    ans += 1

if(al <= x):
    print(-1)
else:
    print(ans)

Submission Info

Submission Time
Task B - Alcoholic
User udonman
Language Python (3.8.2)
Score 0
Code Size 281 Byte
Status WA
Exec Time 121 ms
Memory 26816 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
AC × 21
WA × 7
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 119 ms 26516 KiB
hand_02.txt AC 114 ms 26532 KiB
hand_03.txt AC 114 ms 26516 KiB
hand_04.txt AC 116 ms 26528 KiB
hand_05.txt WA 114 ms 26520 KiB
hand_06.txt WA 113 ms 26340 KiB
max_01.txt AC 116 ms 26660 KiB
max_02.txt AC 113 ms 26540 KiB
min_01.txt AC 113 ms 26532 KiB
min_02.txt AC 115 ms 26740 KiB
random_01.txt WA 116 ms 26728 KiB
random_02.txt AC 119 ms 26816 KiB
random_03.txt WA 111 ms 26404 KiB
random_04.txt AC 121 ms 26760 KiB
random_05.txt AC 113 ms 26816 KiB
random_06.txt WA 119 ms 26732 KiB
random_07.txt WA 118 ms 26532 KiB
random_08.txt WA 117 ms 26404 KiB
random_09.txt AC 115 ms 26492 KiB
random_10.txt AC 115 ms 26528 KiB
random_11.txt AC 111 ms 26520 KiB
random_12.txt AC 112 ms 26164 KiB
random_13.txt AC 116 ms 26320 KiB
random_14.txt AC 112 ms 26404 KiB
random_15.txt AC 117 ms 26724 KiB
sample_01.txt AC 114 ms 26248 KiB
sample_02.txt AC 114 ms 26520 KiB
sample_03.txt AC 114 ms 26716 KiB