結果

問題 No.2056 非力なレッド
ユーザー tamatotamato
提出日時 2022-08-26 21:23:42
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 412 bytes
コンパイル時間 384 ms
コンパイル使用メモリ 82,256 KB
実行使用メモリ 100,396 KB
最終ジャッジ日時 2024-04-21 23:18:01
合計ジャッジ時間 4,722 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
51,840 KB
testcase_01 AC 37 ms
51,840 KB
testcase_02 AC 37 ms
51,840 KB
testcase_03 AC 38 ms
51,968 KB
testcase_04 AC 38 ms
51,840 KB
testcase_05 AC 38 ms
51,584 KB
testcase_06 AC 37 ms
51,584 KB
testcase_07 AC 37 ms
52,096 KB
testcase_08 AC 39 ms
52,308 KB
testcase_09 AC 38 ms
51,968 KB
testcase_10 AC 38 ms
51,968 KB
testcase_11 AC 38 ms
51,840 KB
testcase_12 AC 38 ms
51,584 KB
testcase_13 AC 69 ms
87,936 KB
testcase_14 AC 70 ms
87,680 KB
testcase_15 AC 70 ms
87,808 KB
testcase_16 AC 43 ms
60,928 KB
testcase_17 AC 61 ms
78,592 KB
testcase_18 AC 43 ms
59,392 KB
testcase_19 AC 44 ms
62,040 KB
testcase_20 AC 77 ms
94,848 KB
testcase_21 AC 48 ms
65,396 KB
testcase_22 AC 69 ms
87,808 KB
testcase_23 AC 67 ms
83,840 KB
testcase_24 AC 57 ms
71,680 KB
testcase_25 AC 77 ms
95,488 KB
testcase_26 AC 82 ms
99,636 KB
testcase_27 AC 79 ms
95,640 KB
testcase_28 AC 97 ms
99,996 KB
testcase_29 AC 97 ms
100,320 KB
testcase_30 AC 99 ms
99,944 KB
testcase_31 AC 96 ms
99,964 KB
testcase_32 AC 96 ms
100,396 KB
testcase_33 AC 98 ms
99,952 KB
testcase_34 AC 97 ms
100,064 KB
testcase_35 AC 96 ms
100,012 KB
testcase_36 AC 100 ms
100,068 KB
testcase_37 AC 97 ms
100,160 KB
testcase_38 AC 38 ms
53,200 KB
testcase_39 AC 38 ms
51,584 KB
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

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
            A[i] >>= 1
            M -= i + 1
    if M >= 0:
        print("Yes")
    else:
        print("No")


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