結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,812 KB
testcase_01 AC 15 ms
7,800 KB
testcase_02 AC 16 ms
7,856 KB
testcase_03 AC 13 ms
7,852 KB
testcase_04 AC 14 ms
7,776 KB
testcase_05 AC 15 ms
7,816 KB
testcase_06 AC 15 ms
8,468 KB
testcase_07 AC 14 ms
7,816 KB
testcase_08 AC 15 ms
7,948 KB
testcase_09 AC 15 ms
7,920 KB
testcase_10 AC 65 ms
23,568 KB
testcase_11 AC 63 ms
20,248 KB
testcase_12 AC 71 ms
23,428 KB
testcase_13 AC 14 ms
7,904 KB
testcase_14 AC 57 ms
19,108 KB
testcase_15 AC 58 ms
20,108 KB
testcase_16 AC 66 ms
23,900 KB
testcase_17 AC 57 ms
19,212 KB
testcase_18 AC 53 ms
19,652 KB
testcase_19 AC 39 ms
14,700 KB
testcase_20 AC 37 ms
13,596 KB
testcase_21 AC 50 ms
16,640 KB
testcase_22 AC 62 ms
18,908 KB
testcase_23 AC 68 ms
22,860 KB
testcase_24 AC 14 ms
7,860 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
    else:
        left = mid + 1
print(right)
0