提出 #19599718


ソースコード 拡げる

import sys
input = sys.stdin.readline

#    int(input())
#    input().split().strip()
#    map(int, input().strip().split())

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

now = 0
for i in range(n):
    v, p = map(int, input().strip().split())
    now += v * p
    if now > x * 100:
        print(i+1)
        exit()
print(-1)

提出情報

提出日時
問題 B - Alcoholic
ユーザ rsypoz
言語 Python (3.8.2)
得点 200
コード長 340 Byte
結果 AC
実行時間 29 ms
メモリ 9036 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 3
AC × 28
セット名 テストケース
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
ケース名 結果 実行時間 メモリ
hand_01.txt AC 22 ms 8940 KiB
hand_02.txt AC 21 ms 8900 KiB
hand_03.txt AC 27 ms 8944 KiB
hand_04.txt AC 25 ms 8940 KiB
hand_05.txt AC 23 ms 9012 KiB
hand_06.txt AC 18 ms 8904 KiB
max_01.txt AC 21 ms 8824 KiB
max_02.txt AC 18 ms 8940 KiB
min_01.txt AC 25 ms 8800 KiB
min_02.txt AC 21 ms 8816 KiB
random_01.txt AC 19 ms 9020 KiB
random_02.txt AC 26 ms 8824 KiB
random_03.txt AC 18 ms 9012 KiB
random_04.txt AC 21 ms 8948 KiB
random_05.txt AC 19 ms 8824 KiB
random_06.txt AC 18 ms 8944 KiB
random_07.txt AC 24 ms 8932 KiB
random_08.txt AC 29 ms 9000 KiB
random_09.txt AC 20 ms 9032 KiB
random_10.txt AC 23 ms 8996 KiB
random_11.txt AC 24 ms 8928 KiB
random_12.txt AC 19 ms 8820 KiB
random_13.txt AC 25 ms 8816 KiB
random_14.txt AC 18 ms 9020 KiB
random_15.txt AC 29 ms 9036 KiB
sample_01.txt AC 17 ms 8804 KiB
sample_02.txt AC 18 ms 8904 KiB
sample_03.txt AC 19 ms 8808 KiB