結果
問題 |
No.2056 非力なレッド
|
ユーザー |
![]() |
提出日時 | 2022-08-26 21:23:42 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 412 bytes |
コンパイル時間 | 183 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 100,096 KB |
最終ジャッジ日時 | 2024-10-13 21:45:16 |
合計ジャッジ時間 | 4,321 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 37 WA * 1 |
ソースコード
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()