結果
問題 |
No.3297 Bake Cookies
|
ユーザー |
![]() |
提出日時 | 2025-10-05 17:58:13 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 450 bytes |
コンパイル時間 | 279 ms |
コンパイル使用メモリ | 82,356 KB |
実行使用メモリ | 337,860 KB |
最終ジャッジ日時 | 2025-10-05 17:58:21 |
合計ジャッジ時間 | 7,486 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | TLE * 1 -- * 26 |
ソースコード
from collections import Counter N,M,T = list(map(int,input().split())) A = list(map(lambda x:int(x)-1,input().split())) def check(n): ca = Counter(A) free = 0 for i in range(N): if(n - ca[i] > 0):free += (n - ca[i]) // T ca[i] -= min(n,ca[i]) return sum(ca.values()) <= free ng,ok = 0,10**18 while(ok - ng > 1): mid = (ok+ng)//2 if(check(mid)): ok = mid else: ng = mid print(ok)