結果

問題 No.1139 Slime Race
ユーザー daikisuyamadaikisuyama
提出日時 2020-07-31 23:27:22
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 112 ms / 2,000 ms
コード長 240 bytes
コンパイル時間 1,044 ms
コンパイル使用メモリ 86,552 KB
実行使用メモリ 102,848 KB
最終ジャッジ日時 2023-09-15 02:58:37
合計ジャッジ時間 4,027 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
70,968 KB
testcase_01 AC 73 ms
70,956 KB
testcase_02 AC 73 ms
71,112 KB
testcase_03 AC 75 ms
70,872 KB
testcase_04 AC 71 ms
71,068 KB
testcase_05 AC 71 ms
71,176 KB
testcase_06 AC 75 ms
75,288 KB
testcase_07 AC 71 ms
70,948 KB
testcase_08 AC 71 ms
71,160 KB
testcase_09 AC 73 ms
71,028 KB
testcase_10 AC 110 ms
100,252 KB
testcase_11 AC 109 ms
102,848 KB
testcase_12 AC 111 ms
98,308 KB
testcase_13 AC 72 ms
71,180 KB
testcase_14 AC 107 ms
100,448 KB
testcase_15 AC 105 ms
95,488 KB
testcase_16 AC 112 ms
96,912 KB
testcase_17 AC 109 ms
100,572 KB
testcase_18 AC 99 ms
96,400 KB
testcase_19 AC 92 ms
88,564 KB
testcase_20 AC 90 ms
88,420 KB
testcase_21 AC 99 ms
96,208 KB
testcase_22 AC 109 ms
100,324 KB
testcase_23 AC 110 ms
94,384 KB
testcase_24 AC 72 ms
71,032 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n,d=map(int,input().split())
x=list(map(int,input().split()))
v=list(map(int,input().split()))
s=sum(v)

def f(k):
    return s*k

l,r=0,1000000000000
while l+1<r:
    k=l+(r-l)//2
    if f(k)>=d:
        r=k
    else:
        l=k
print(r)
0