結果
| 問題 |
No.1454 ツブ消ししとるなEasy
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 21:37:11 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
RE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 327 bytes |
| コンパイル時間 | 510 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 49,704 KB |
| 最終ジャッジ日時 | 2024-12-15 16:06:42 |
| 合計ジャッジ時間 | 12,922 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | RE * 4 |
| other | RE * 16 |
ソースコード
import numpy as np
n, m, x, y = map(int, input().split())
a = list(map(int, input().split()))
b = np.array(a)
c = b >= x
c = c.astype(np.int)
if np.sum(c) > m:
print('Handicapped')
exit()
a = sorted(a, reverse=True)
ans = 0
count = 0
for i in range(m):
if a[i] <= y:
continue
ans += a[i]
print(ans)