結果

問題 No.2155 みちらcolor
ユーザー MasKoaTSMasKoaTS
提出日時 2022-12-09 21:34:44
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 194 ms / 2,000 ms
コード長 894 bytes
コンパイル時間 1,095 ms
コンパイル使用メモリ 87,136 KB
実行使用メモリ 83,760 KB
最終ジャッジ日時 2023-08-04 22:42:58
合計ジャッジ時間 15,125 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 189 ms
83,484 KB
testcase_01 AC 190 ms
83,504 KB
testcase_02 AC 184 ms
83,660 KB
testcase_03 AC 188 ms
83,524 KB
testcase_04 AC 188 ms
83,728 KB
testcase_05 AC 183 ms
83,648 KB
testcase_06 AC 188 ms
83,456 KB
testcase_07 AC 184 ms
81,496 KB
testcase_08 AC 188 ms
83,488 KB
testcase_09 AC 183 ms
83,660 KB
testcase_10 AC 184 ms
83,512 KB
testcase_11 AC 188 ms
83,488 KB
testcase_12 AC 189 ms
83,520 KB
testcase_13 AC 174 ms
80,896 KB
testcase_14 AC 185 ms
83,476 KB
testcase_15 AC 175 ms
80,684 KB
testcase_16 AC 188 ms
83,480 KB
testcase_17 AC 179 ms
81,468 KB
testcase_18 AC 189 ms
83,492 KB
testcase_19 AC 189 ms
83,568 KB
testcase_20 AC 194 ms
83,428 KB
testcase_21 AC 192 ms
83,428 KB
testcase_22 AC 184 ms
83,400 KB
testcase_23 AC 185 ms
83,564 KB
testcase_24 AC 185 ms
83,612 KB
testcase_25 AC 184 ms
83,664 KB
testcase_26 AC 179 ms
83,568 KB
testcase_27 AC 184 ms
83,492 KB
testcase_28 AC 185 ms
83,624 KB
testcase_29 AC 183 ms
83,508 KB
testcase_30 AC 187 ms
83,484 KB
testcase_31 AC 188 ms
83,728 KB
testcase_32 AC 186 ms
83,480 KB
testcase_33 AC 185 ms
83,528 KB
testcase_34 AC 187 ms
83,532 KB
testcase_35 AC 188 ms
83,732 KB
testcase_36 AC 181 ms
83,472 KB
testcase_37 AC 184 ms
83,560 KB
testcase_38 AC 185 ms
83,484 KB
testcase_39 AC 191 ms
83,656 KB
testcase_40 AC 186 ms
83,760 KB
testcase_41 AC 186 ms
83,468 KB
testcase_42 AC 176 ms
81,392 KB
testcase_43 AC 177 ms
80,680 KB
testcase_44 AC 182 ms
80,804 KB
testcase_45 AC 175 ms
80,844 KB
testcase_46 AC 175 ms
80,580 KB
testcase_47 AC 178 ms
81,480 KB
testcase_48 AC 181 ms
81,480 KB
testcase_49 AC 181 ms
80,676 KB
testcase_50 AC 181 ms
81,468 KB
testcase_51 AC 181 ms
81,460 KB
testcase_52 AC 178 ms
81,496 KB
testcase_53 AC 180 ms
81,508 KB
testcase_54 AC 181 ms
81,708 KB
testcase_55 AC 176 ms
80,680 KB
testcase_56 AC 180 ms
81,548 KB
testcase_57 AC 176 ms
80,716 KB
testcase_58 AC 185 ms
80,904 KB
testcase_59 AC 173 ms
80,596 KB
testcase_60 AC 177 ms
80,824 KB
testcase_61 AC 182 ms
80,800 KB
testcase_62 AC 183 ms
81,600 KB
testcase_63 AC 181 ms
81,724 KB
testcase_64 AC 181 ms
81,604 KB
testcase_65 AC 178 ms
80,908 KB
testcase_66 AC 176 ms
81,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import itertools as iter
import collections as coll
import heapq as hq
import bisect as bis
from decimal import Decimal as dec
from functools import cmp_to_key
import math
import sys
#import pypyjit
#pypyjit.set_param('max_unroll_recursion=-1')
sys.setrecursionlimit(10 ** 6)
inp = sys.stdin.readline
input = lambda : inp().rstrip()
getN = lambda : int(inp())
getNs = lambda : map(int, inp().split())
getList = lambda :list(map(int, inp().split()))
getStrs = lambda n : [input() for _ in [0] * n]
def yexit(): print("Yes"); exit(0)
def nexit(): print("No"); exit(0)
pi = 3.141592653589793
mod = 1000000007
MOD = 998244353
INF = 4611686018427387903
dx = [1, 0, -1, 0];	dy = [0, 1, 0, -1]
#di = coll.defaultdict(int)


"""
Main Code
"""

n, m, t = getNs()
a = getList()

st = set([t])
for k in a:
	nst = set(st)
	for l in st:
		nst.add((k + l) >> 1)
	st = set(nst)

if(m in st):
	yexit()
nexit()
0