結果
問題 | No.3049 Contest Coordinator |
ユーザー |
|
提出日時 | 2025-03-07 22:39:51 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 433 ms / 2,000 ms |
コード長 | 289 bytes |
コンパイル時間 | 559 ms |
コンパイル使用メモリ | 82,260 KB |
実行使用メモリ | 180,092 KB |
最終ジャッジ日時 | 2025-03-07 22:40:07 |
合計ジャッジ時間 | 13,598 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 58 |
ソースコード
n,t,x,y,*d=map(int,open(0).read().split()) d.sort() q=[] ts=[] for i in d: if not q or i-q[-1]<=t: q+=i, else: ts+=len(q), q=[i] ts+=len(q), ts.sort() ans=[] t=ts.pop() nx=0 for i in range(1,n+1): if i>t: t+=ts.pop() nx+=1 a=min(x*nx,y*nx) ans+=a, print(*ans)