結果
問題 |
No.1808 Fullgold Alchemist
|
ユーザー |
![]() |
提出日時 | 2022-01-14 21:33:03 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 114 ms / 2,000 ms |
コード長 | 314 bytes |
コンパイル時間 | 158 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 102,912 KB |
最終ジャッジ日時 | 2024-11-20 08:03:19 |
合計ジャッジ時間 | 3,925 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 33 |
ソースコード
n, m = map(int, input().split()) A = list(map(int, input().split())) def is_ok(x): y = 0 for a in A: y += a-m*x if y < 0: return False return True ok = 0 ng = 10**9+50 while ok +1 < ng: c = (ok+ng)//2 if is_ok(c): ok = c else: ng = c print(ok)