結果
| 問題 | No.1454 ツブ消ししとるなEasy |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-07-13 13:22:36 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 434 bytes |
| 記録 | |
| コンパイル時間 | 86 ms |
| コンパイル使用メモリ | 12,672 KB |
| 実行使用メモリ | 20,872 KB |
| 最終ジャッジ日時 | 2024-06-24 14:39:29 |
| 合計ジャッジ時間 | 1,921 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 4 |
| other | WA * 16 |
ソースコード
"""
理解できない部分あり。
"""
N, M, X, Y = [int(x) for x in input().split()]
Tbutter = [int(x) for x in input().split()]
results = []
results_m = []
for t in Tbutter:
if t >= X:
results.append(t)
results_m.append(t)
elif t <= Y:
pass
elif Y < t < X:
results_m.append(t)
tester = sum(results)
if tester > M:
print(tester)
else:
print("Handicapped")
print(sum(results_m))