結果

問題 No.1139 Slime Race
ユーザー Nishin-0141Nishin-0141
提出日時 2022-02-02 22:34:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 70 ms / 2,000 ms
コード長 284 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 10,756 KB
実行使用メモリ 23,996 KB
最終ジャッジ日時 2023-09-02 03:00:20
合計ジャッジ時間 2,800 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 14 ms
7,948 KB
testcase_01 AC 14 ms
7,980 KB
testcase_02 AC 14 ms
7,812 KB
testcase_03 AC 13 ms
7,852 KB
testcase_04 AC 13 ms
7,900 KB
testcase_05 AC 13 ms
7,852 KB
testcase_06 AC 17 ms
8,592 KB
testcase_07 AC 14 ms
7,848 KB
testcase_08 AC 14 ms
7,832 KB
testcase_09 AC 15 ms
7,904 KB
testcase_10 AC 66 ms
23,656 KB
testcase_11 AC 65 ms
20,324 KB
testcase_12 AC 70 ms
23,400 KB
testcase_13 AC 14 ms
7,820 KB
testcase_14 AC 55 ms
19,200 KB
testcase_15 AC 57 ms
20,084 KB
testcase_16 AC 67 ms
23,996 KB
testcase_17 AC 59 ms
19,212 KB
testcase_18 AC 54 ms
19,532 KB
testcase_19 AC 39 ms
14,616 KB
testcase_20 AC 37 ms
13,584 KB
testcase_21 AC 48 ms
16,644 KB
testcase_22 AC 59 ms
18,976 KB
testcase_23 AC 65 ms
23,040 KB
testcase_24 AC 15 ms
7,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n, d = map(int, input().split())
x = list(map(int, input().split()))
v = list(map(int, input().split()))
num = sum(v)
left = 0
right = 10**18
while left <= right:
    mid = (left + right) // 2
    if num * mid >= d:
        right = mid - 1
    else:
        left = mid + 1
print(left)
0