結果

問題 No.2056 非力なレッド
ユーザー tamatotamato
提出日時 2022-08-26 21:25:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 390 bytes
コンパイル時間 412 ms
コンパイル使用メモリ 82,624 KB
実行使用メモリ 100,096 KB
最終ジャッジ日時 2024-04-21 23:20:51
合計ジャッジ時間 4,584 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,328 KB
testcase_01 AC 35 ms
51,584 KB
testcase_02 AC 36 ms
51,968 KB
testcase_03 AC 37 ms
51,840 KB
testcase_04 AC 36 ms
51,840 KB
testcase_05 AC 36 ms
51,456 KB
testcase_06 AC 35 ms
51,840 KB
testcase_07 AC 35 ms
51,328 KB
testcase_08 AC 36 ms
51,584 KB
testcase_09 AC 36 ms
51,712 KB
testcase_10 AC 37 ms
51,456 KB
testcase_11 AC 38 ms
51,712 KB
testcase_12 AC 37 ms
51,712 KB
testcase_13 AC 71 ms
88,192 KB
testcase_14 AC 70 ms
87,808 KB
testcase_15 AC 68 ms
87,808 KB
testcase_16 AC 43 ms
60,800 KB
testcase_17 AC 60 ms
78,848 KB
testcase_18 AC 42 ms
59,392 KB
testcase_19 AC 45 ms
61,696 KB
testcase_20 AC 77 ms
94,720 KB
testcase_21 AC 48 ms
65,280 KB
testcase_22 AC 68 ms
87,936 KB
testcase_23 AC 65 ms
83,712 KB
testcase_24 AC 53 ms
71,040 KB
testcase_25 AC 76 ms
95,744 KB
testcase_26 AC 80 ms
99,456 KB
testcase_27 AC 77 ms
95,744 KB
testcase_28 AC 96 ms
99,968 KB
testcase_29 AC 96 ms
99,968 KB
testcase_30 AC 96 ms
99,712 KB
testcase_31 AC 95 ms
99,968 KB
testcase_32 AC 97 ms
99,712 KB
testcase_33 AC 95 ms
100,096 KB
testcase_34 AC 95 ms
99,712 KB
testcase_35 AC 97 ms
99,584 KB
testcase_36 AC 96 ms
100,096 KB
testcase_37 AC 96 ms
99,840 KB
testcase_38 AC 37 ms
51,584 KB
testcase_39 AC 36 ms
51,712 KB
testcase_40 AC 38 ms
51,328 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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
            M -= i + 1

    if M >= 0:
        print("Yes")
    else:
        print("No")


if __name__ == '__main__':
    main()
0