結果

問題 No.2155 みちらcolor
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2022-12-10 20:55:27
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 512 bytes
コンパイル時間 257 ms
コンパイル使用メモリ 82,376 KB
実行使用メモリ 69,232 KB
最終ジャッジ日時 2024-04-23 00:46:15
合計ジャッジ時間 5,381 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
68,288 KB
testcase_01 AC 53 ms
66,172 KB
testcase_02 AC 53 ms
65,344 KB
testcase_03 AC 52 ms
65,304 KB
testcase_04 AC 53 ms
65,600 KB
testcase_05 AC 54 ms
66,684 KB
testcase_06 AC 55 ms
64,580 KB
testcase_07 AC 51 ms
63,168 KB
testcase_08 AC 53 ms
66,352 KB
testcase_09 AC 53 ms
66,524 KB
testcase_10 AC 52 ms
64,808 KB
testcase_11 AC 51 ms
65,564 KB
testcase_12 AC 52 ms
66,040 KB
testcase_13 AC 45 ms
56,912 KB
testcase_14 AC 52 ms
66,016 KB
testcase_15 AC 46 ms
55,968 KB
testcase_16 AC 53 ms
64,216 KB
testcase_17 AC 50 ms
62,852 KB
testcase_18 AC 53 ms
66,588 KB
testcase_19 AC 53 ms
65,764 KB
testcase_20 AC 54 ms
67,492 KB
testcase_21 AC 52 ms
68,172 KB
testcase_22 AC 53 ms
66,104 KB
testcase_23 AC 54 ms
66,848 KB
testcase_24 AC 56 ms
67,880 KB
testcase_25 AC 53 ms
68,592 KB
testcase_26 AC 55 ms
67,248 KB
testcase_27 AC 54 ms
66,896 KB
testcase_28 AC 52 ms
66,604 KB
testcase_29 AC 54 ms
67,428 KB
testcase_30 AC 53 ms
68,284 KB
testcase_31 AC 52 ms
67,088 KB
testcase_32 AC 54 ms
67,356 KB
testcase_33 AC 53 ms
66,644 KB
testcase_34 AC 53 ms
68,156 KB
testcase_35 AC 52 ms
68,132 KB
testcase_36 AC 52 ms
67,748 KB
testcase_37 AC 53 ms
67,484 KB
testcase_38 AC 52 ms
66,592 KB
testcase_39 AC 54 ms
68,004 KB
testcase_40 AC 56 ms
69,232 KB
testcase_41 AC 54 ms
68,032 KB
testcase_42 AC 49 ms
62,788 KB
testcase_43 AC 45 ms
55,744 KB
testcase_44 AC 45 ms
55,820 KB
testcase_45 AC 45 ms
55,564 KB
testcase_46 AC 46 ms
55,684 KB
testcase_47 AC 51 ms
63,260 KB
testcase_48 AC 51 ms
63,448 KB
testcase_49 AC 45 ms
57,336 KB
testcase_50 AC 51 ms
62,852 KB
testcase_51 AC 52 ms
64,024 KB
testcase_52 AC 50 ms
63,912 KB
testcase_53 AC 50 ms
63,340 KB
testcase_54 AC 50 ms
63,696 KB
testcase_55 AC 46 ms
56,568 KB
testcase_56 AC 50 ms
63,132 KB
testcase_57 AC 47 ms
56,692 KB
testcase_58 AC 45 ms
57,212 KB
testcase_59 AC 46 ms
55,436 KB
testcase_60 AC 47 ms
55,928 KB
testcase_61 AC 46 ms
56,192 KB
testcase_62 AC 50 ms
63,316 KB
testcase_63 AC 50 ms
63,280 KB
testcase_64 AC 51 ms
62,104 KB
testcase_65 AC 45 ms
55,500 KB
testcase_66 AC 49 ms
63,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# import pypyjit
# pypyjit.set_param('max_unroll_recursion=-1')
from collections import *
from functools import *
from itertools import *
from heapq import *
import sys,math
input = sys.stdin.readline

N,M,L = map(int,input().split())
A = list(map(int,input().split()))

X = defaultdict(lambda:False)
X[L]=True
for i in range(N):
    a = A[i]
    Y = []
    for k in X.keys():
        
        tmp = (k+a)//2
        Y.append(tmp)
    for y in Y:
        X[y]=True
if X[M]:
    print('Yes')
else:
    print('No')
0