結果
問題 | No.3049 Contest Coordinator |
ユーザー |
|
提出日時 | 2025-03-07 21:37:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 417 ms / 2,000 ms |
コード長 | 400 bytes |
コンパイル時間 | 522 ms |
コンパイル使用メモリ | 82,644 KB |
実行使用メモリ | 217,328 KB |
最終ジャッジ日時 | 2025-03-07 21:37:37 |
合計ジャッジ時間 | 13,209 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 58 |
ソースコード
n,t,x,y = map(int,input().split()) d = list(map(int,input().split())) d.sort() a = [] z = 0 for i in range(n-1): z += 1 if d[i+1] - d[i] > t: a.append(z) z = 0 else: continue z += 1 a.append(z) a.sort() ans = [0 for i in range(n)] i = 0 temp = 0 while a: z = a.pop() for j in range(z): ans[i] = temp i += 1 temp += min(x,y) print(*ans)