結果

問題 No.3297 Bake Cookies
コンテスト
ユーザー DY
提出日時 2025-10-05 15:17:19
言語 Python3
(3.15.0 + numpy 2.5.4 + scipy 1.18.1 + ACL)
コンパイル:
python3 -mpy_compile _filename_
実行:
python3 _filename_
結果
RE  
(最新)
AC  
(最初)
実行時間 -
コード長 310 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 141 ms
コンパイル使用メモリ 14,720 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2026-10-17 02:24:59
合計ジャッジ時間 7,218 ms
ジャッジサーバーID
(参考情報)
judge2_0 / judge4_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other RE * 1 -- * 28
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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