結果
問題 | No.2056 非力なレッド |
ユーザー |
![]() |
提出日時 | 2022-08-26 21:22:41 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 411 bytes |
コンパイル時間 | 204 ms |
コンパイル使用メモリ | 82,176 KB |
実行使用メモリ | 100,096 KB |
最終ジャッジ日時 | 2024-10-13 21:44:03 |
合計ジャッジ時間 | 4,358 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 36 WA * 2 |
ソースコード
mod = 998244353 def main(): import sys input = sys.stdin.readline N, X, M = map(int, input().split()) A = list(map(int, input().split())) cnt = 0 for i in range(N - 1, -1, -1): while (A[i] >> cnt) > X: cnt += 1 A[i] >>= 1 M -= i + 1 if M >= 0: print("Yes") else: print("No") if __name__ == '__main__': main()