結果
| 問題 | No.1454 ツブ消ししとるなEasy |
| コンテスト | |
| ユーザー |
HAGI_TARO
|
| 提出日時 | 2021-09-12 15:11:51 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 303 bytes |
| 記録 | |
| コンパイル時間 | 237 ms |
| コンパイル使用メモリ | 95,852 KB |
| 実行使用メモリ | 105,216 KB |
| 最終ジャッジ日時 | 2026-07-28 20:14:56 |
| 合計ジャッジ時間 | 2,991 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 14 WA * 2 |
ソースコード
n,m,x,y = map(int,input().split())
A = sorted(list(map(int,input().split())))
ans = []
more = 0
for i in A:
if x > i > y:
ans.append(i)
elif x <= i:
ans.append(i)
more += 1
if len(ans) - more < len(ans) - m:
print("Handicapped")
else:
print(sum(ans[len(ans)-m:]))
HAGI_TARO