結果

問題 No.2056 非力なレッド
ユーザー tamatotamato
提出日時 2022-08-26 21:22:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 411 bytes
コンパイル時間 371 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 100,096 KB
最終ジャッジ日時 2024-04-21 23:16:33
合計ジャッジ時間 4,530 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
51,584 KB
testcase_01 AC 36 ms
51,840 KB
testcase_02 AC 37 ms
51,584 KB
testcase_03 AC 36 ms
51,584 KB
testcase_04 AC 45 ms
51,328 KB
testcase_05 AC 36 ms
51,328 KB
testcase_06 AC 37 ms
51,840 KB
testcase_07 AC 37 ms
52,096 KB
testcase_08 AC 36 ms
51,584 KB
testcase_09 AC 35 ms
51,840 KB
testcase_10 AC 37 ms
51,584 KB
testcase_11 AC 37 ms
51,584 KB
testcase_12 AC 36 ms
51,840 KB
testcase_13 AC 71 ms
87,808 KB
testcase_14 AC 71 ms
87,808 KB
testcase_15 AC 72 ms
87,680 KB
testcase_16 AC 44 ms
60,800 KB
testcase_17 AC 64 ms
78,848 KB
testcase_18 AC 42 ms
59,392 KB
testcase_19 AC 46 ms
61,312 KB
testcase_20 AC 78 ms
94,976 KB
testcase_21 AC 54 ms
65,280 KB
testcase_22 AC 71 ms
87,680 KB
testcase_23 AC 72 ms
83,968 KB
testcase_24 AC 56 ms
71,552 KB
testcase_25 AC 80 ms
95,360 KB
testcase_26 AC 91 ms
99,584 KB
testcase_27 AC 79 ms
95,872 KB
testcase_28 AC 97 ms
99,968 KB
testcase_29 AC 101 ms
100,096 KB
testcase_30 AC 97 ms
99,968 KB
testcase_31 AC 99 ms
99,968 KB
testcase_32 AC 103 ms
99,968 KB
testcase_33 AC 99 ms
99,712 KB
testcase_34 AC 97 ms
100,096 KB
testcase_35 AC 100 ms
99,968 KB
testcase_36 AC 101 ms
100,096 KB
testcase_37 AC 101 ms
99,968 KB
testcase_38 AC 38 ms
51,584 KB
testcase_39 WA -
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