結果

問題 No.1139 Slime Race
ユーザー chineristACchineristAC
提出日時 2020-07-31 21:42:33
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 2,000 ms
コード長 271 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 87,040 KB
実行使用メモリ 103,320 KB
最終ジャッジ日時 2023-09-15 02:52:17
合計ジャッジ時間 3,853 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,152 KB
testcase_01 AC 74 ms
71,312 KB
testcase_02 AC 74 ms
71,328 KB
testcase_03 AC 72 ms
71,156 KB
testcase_04 AC 73 ms
71,452 KB
testcase_05 AC 72 ms
71,372 KB
testcase_06 AC 77 ms
75,924 KB
testcase_07 AC 71 ms
71,380 KB
testcase_08 AC 73 ms
71,296 KB
testcase_09 AC 72 ms
71,376 KB
testcase_10 AC 111 ms
100,604 KB
testcase_11 AC 109 ms
103,320 KB
testcase_12 AC 111 ms
98,616 KB
testcase_13 AC 72 ms
71,516 KB
testcase_14 AC 109 ms
100,736 KB
testcase_15 AC 106 ms
95,912 KB
testcase_16 AC 110 ms
97,344 KB
testcase_17 AC 111 ms
100,708 KB
testcase_18 AC 102 ms
96,832 KB
testcase_19 AC 91 ms
89,156 KB
testcase_20 AC 92 ms
89,004 KB
testcase_21 AC 101 ms
96,764 KB
testcase_22 AC 110 ms
100,792 KB
testcase_23 AC 113 ms
94,940 KB
testcase_24 AC 72 ms
71,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,D=map(int,input().split())
x=list(map(int,input().split()))
v=list(map(int,input().split()))
V=sum(v)
start=0
end=D

def cond(n):
    return V*n>=D

while end-start>1:
    test=(end+start)//2
    if cond(test):
        end=test
    else:
        start=test

print(end)
0