結果

問題 No.3049 Contest Coordinator
ユーザー moon17
提出日時 2025-03-07 21:46:28
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 221 bytes
コンパイル時間 434 ms
コンパイル使用メモリ 82,408 KB
実行使用メモリ 215,728 KB
最終ジャッジ日時 2025-03-07 21:46:42
合計ジャッジ時間 11,885 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 14 WA * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

n,t,x,y,*d=map(int,open(0).read().split())
d.sort()
nt=0
for i,j in zip(d,d[1:]):
  if i+t<j:
    nt+=1
ans=[]
for i in range(1,n+1):
  if i<=n-nt:
    nx=0
  else:
    nx=i-(n-nt)
  a=min(x*nx,y*nx)
  ans+=a,
print(*ans)
0