結果

問題 No.2155 みちらcolor
ユーザー TomoyarnTomoyarn
提出日時 2023-01-02 11:56:42
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 91 ms / 2,000 ms
コード長 280 bytes
コンパイル時間 764 ms
コンパイル使用メモリ 86,772 KB
実行使用メモリ 76,668 KB
最終ジャッジ日時 2023-08-17 23:26:39
合計ジャッジ時間 10,749 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 91 ms
76,432 KB
testcase_01 AC 86 ms
76,164 KB
testcase_02 AC 82 ms
75,944 KB
testcase_03 AC 84 ms
75,980 KB
testcase_04 AC 86 ms
75,856 KB
testcase_05 AC 89 ms
76,376 KB
testcase_06 AC 83 ms
75,840 KB
testcase_07 AC 82 ms
76,008 KB
testcase_08 AC 84 ms
76,292 KB
testcase_09 AC 86 ms
75,896 KB
testcase_10 AC 84 ms
75,896 KB
testcase_11 AC 84 ms
75,792 KB
testcase_12 AC 87 ms
75,864 KB
testcase_13 AC 74 ms
71,276 KB
testcase_14 AC 86 ms
76,416 KB
testcase_15 AC 75 ms
75,516 KB
testcase_16 AC 81 ms
75,976 KB
testcase_17 AC 79 ms
75,872 KB
testcase_18 AC 86 ms
76,132 KB
testcase_19 AC 87 ms
75,912 KB
testcase_20 AC 91 ms
76,420 KB
testcase_21 AC 90 ms
76,168 KB
testcase_22 AC 86 ms
76,336 KB
testcase_23 AC 85 ms
76,224 KB
testcase_24 AC 87 ms
76,560 KB
testcase_25 AC 88 ms
76,464 KB
testcase_26 AC 89 ms
76,508 KB
testcase_27 AC 88 ms
76,224 KB
testcase_28 AC 88 ms
76,292 KB
testcase_29 AC 89 ms
76,216 KB
testcase_30 AC 86 ms
76,408 KB
testcase_31 AC 88 ms
76,336 KB
testcase_32 AC 88 ms
76,364 KB
testcase_33 AC 87 ms
76,256 KB
testcase_34 AC 89 ms
76,392 KB
testcase_35 AC 87 ms
76,668 KB
testcase_36 AC 87 ms
76,428 KB
testcase_37 AC 90 ms
76,404 KB
testcase_38 AC 89 ms
76,660 KB
testcase_39 AC 86 ms
76,388 KB
testcase_40 AC 89 ms
76,376 KB
testcase_41 AC 88 ms
76,324 KB
testcase_42 AC 78 ms
75,096 KB
testcase_43 AC 75 ms
71,000 KB
testcase_44 AC 81 ms
71,180 KB
testcase_45 AC 76 ms
71,028 KB
testcase_46 AC 74 ms
71,332 KB
testcase_47 AC 81 ms
75,860 KB
testcase_48 AC 81 ms
75,884 KB
testcase_49 AC 75 ms
71,228 KB
testcase_50 AC 79 ms
75,948 KB
testcase_51 AC 80 ms
76,020 KB
testcase_52 AC 80 ms
75,912 KB
testcase_53 AC 80 ms
75,916 KB
testcase_54 AC 81 ms
76,060 KB
testcase_55 AC 76 ms
71,084 KB
testcase_56 AC 81 ms
75,828 KB
testcase_57 AC 78 ms
75,084 KB
testcase_58 AC 79 ms
75,188 KB
testcase_59 AC 77 ms
71,088 KB
testcase_60 AC 76 ms
71,176 KB
testcase_61 AC 76 ms
75,520 KB
testcase_62 AC 81 ms
75,916 KB
testcase_63 AC 79 ms
75,932 KB
testcase_64 AC 80 ms
75,916 KB
testcase_65 AC 75 ms
71,116 KB
testcase_66 AC 80 ms
75,824 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N, M, L, *A = map(int, open(0).read().split())

dp = [L]
for i in range(N):
    x = [dp[j] for j in range(len(dp))]
    for d in dp:
        x.append((d + A[i]) // 2)
    dp = [x[j] for j in range(len(x))]
    dp = list(set(dp))

if M in dp:
    print("Yes")
else:
    print("No")
0