結果

問題 No.2155 みちらcolor
ユーザー tomoyawatomoyawa
提出日時 2023-01-02 19:46:55
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 270 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 86,852 KB
実行使用メモリ 76,252 KB
最終ジャッジ日時 2023-08-17 23:48:10
合計ジャッジ時間 8,060 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
76,056 KB
testcase_01 AC 75 ms
70,976 KB
testcase_02 AC 81 ms
76,044 KB
testcase_03 AC 83 ms
75,980 KB
testcase_04 AC 76 ms
71,056 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 82 ms
75,972 KB
testcase_08 AC 76 ms
71,048 KB
testcase_09 AC 83 ms
75,792 KB
testcase_10 WA -
testcase_11 AC 81 ms
75,956 KB
testcase_12 WA -
testcase_13 AC 76 ms
71,060 KB
testcase_14 AC 85 ms
75,928 KB
testcase_15 AC 78 ms
71,132 KB
testcase_16 AC 85 ms
75,964 KB
testcase_17 WA -
testcase_18 AC 82 ms
76,076 KB
testcase_19 AC 82 ms
76,108 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 83 ms
76,148 KB
testcase_23 AC 84 ms
75,764 KB
testcase_24 WA -
testcase_25 AC 83 ms
76,152 KB
testcase_26 AC 84 ms
75,996 KB
testcase_27 AC 86 ms
75,948 KB
testcase_28 AC 83 ms
75,920 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 86 ms
75,972 KB
testcase_32 AC 85 ms
75,960 KB
testcase_33 AC 85 ms
76,032 KB
testcase_34 AC 87 ms
75,832 KB
testcase_35 WA -
testcase_36 AC 85 ms
75,796 KB
testcase_37 AC 85 ms
75,920 KB
testcase_38 AC 86 ms
75,680 KB
testcase_39 WA -
testcase_40 AC 87 ms
75,684 KB
testcase_41 AC 85 ms
75,840 KB
testcase_42 AC 83 ms
75,648 KB
testcase_43 WA -
testcase_44 AC 77 ms
71,356 KB
testcase_45 AC 78 ms
71,128 KB
testcase_46 AC 76 ms
71,388 KB
testcase_47 AC 83 ms
76,116 KB
testcase_48 AC 80 ms
76,180 KB
testcase_49 AC 74 ms
71,196 KB
testcase_50 AC 82 ms
75,752 KB
testcase_51 AC 79 ms
75,760 KB
testcase_52 WA -
testcase_53 AC 83 ms
76,252 KB
testcase_54 WA -
testcase_55 AC 76 ms
71,056 KB
testcase_56 WA -
testcase_57 AC 78 ms
71,164 KB
testcase_58 AC 77 ms
71,140 KB
testcase_59 AC 75 ms
71,216 KB
testcase_60 AC 77 ms
71,352 KB
testcase_61 WA -
testcase_62 AC 78 ms
71,012 KB
testcase_63 AC 75 ms
71,076 KB
testcase_64 AC 77 ms
71,168 KB
testcase_65 AC 75 ms
71,080 KB
testcase_66 AC 80 ms
75,724 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N,M,L=map(int,input().split())
Al=list(map(int,input().split()))
dp=set([L])
for i in range(N):
    next_dp=set()
    for a in dp:
        next_dp.add(a)
        c=(a+Al[i])//2
        if c<=M:
            next_dp.add(c)
    dp=next_dp
print("Yes" if M in dp else "No")
0