結果

問題 No.3297 Bake Cookies
ユーザー DY
提出日時 2025-10-05 15:17:19
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 151 ms / 2,000 ms
コード長 310 bytes
コンパイル時間 1,365 ms
コンパイル使用メモリ 12,160 KB
実行使用メモリ 30,208 KB
最終ジャッジ日時 2025-10-05 15:17:34
合計ジャッジ時間 5,154 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 27
権限があれば一括ダウンロードができます

ソースコード

diff #

from time import time

s = time()

n,m,t = map(int,input().split())

a = list(map(int,input().split()))

l = [0]*n

for i in range(m):
    l[a[i]-1] += 1

while s - time() < 1.9:
    if max(l) - min(l) > t:
        l[l.index(max(l))] -= 1
        l[l.index(min(l))] += t
    else:
        break

print(max(l))
0