結果
問題 | No.2056 非力なレッド |
ユーザー |
|
提出日時 | 2022-10-07 11:59:36 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 521 bytes |
コンパイル時間 | 84 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 62,148 KB |
最終ジャッジ日時 | 2024-06-11 19:35:56 |
合計ジャッジ時間 | 23,315 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 WA * 2 |
ソースコード
import numpy as npdef main():N, X, mp = map(int, input().split())monsters = np.array(list(map(int, input().split())))for idx in reversed(range(N)):if monsters[idx] >= X:if mp > idx:mask = [True]*(idx + 1) + [False]*(N-idx-1)monsters[mask] = [hp // 2 for hp in monsters[mask]]mp -= (idx + 1)else:print("No")breakelse:print("Yes")if __name__ == "__main__":main()