結果
問題 |
No.1139 Slime Race
|
ユーザー |
|
提出日時 | 2020-07-31 23:27:22 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 82 ms / 2,000 ms |
コード長 | 240 bytes |
コンパイル時間 | 203 ms |
コンパイル使用メモリ | 82,380 KB |
実行使用メモリ | 101,908 KB |
最終ジャッジ日時 | 2024-07-02 08:25:26 |
合計ジャッジ時間 | 2,598 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
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)