結果

問題 No.2155 みちらcolor
ユーザー MasKoaTSMasKoaTS
提出日時 2022-12-09 21:34:44
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 167 ms / 2,000 ms
コード長 894 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 89,344 KB
最終ジャッジ日時 2024-04-22 21:01:37
合計ジャッジ時間 12,420 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 143 ms
88,880 KB
testcase_01 AC 137 ms
88,904 KB
testcase_02 AC 152 ms
89,088 KB
testcase_03 AC 153 ms
89,088 KB
testcase_04 AC 157 ms
89,216 KB
testcase_05 AC 154 ms
88,832 KB
testcase_06 AC 144 ms
87,424 KB
testcase_07 AC 148 ms
87,168 KB
testcase_08 AC 153 ms
89,344 KB
testcase_09 AC 153 ms
89,088 KB
testcase_10 AC 145 ms
87,040 KB
testcase_11 AC 145 ms
87,296 KB
testcase_12 AC 153 ms
89,088 KB
testcase_13 AC 143 ms
86,912 KB
testcase_14 AC 154 ms
89,088 KB
testcase_15 AC 142 ms
86,912 KB
testcase_16 AC 147 ms
87,424 KB
testcase_17 AC 144 ms
87,424 KB
testcase_18 AC 153 ms
88,832 KB
testcase_19 AC 152 ms
89,088 KB
testcase_20 AC 152 ms
89,088 KB
testcase_21 AC 156 ms
89,216 KB
testcase_22 AC 154 ms
89,088 KB
testcase_23 AC 153 ms
88,832 KB
testcase_24 AC 152 ms
89,088 KB
testcase_25 AC 151 ms
88,832 KB
testcase_26 AC 154 ms
89,088 KB
testcase_27 AC 154 ms
88,960 KB
testcase_28 AC 156 ms
89,088 KB
testcase_29 AC 150 ms
88,960 KB
testcase_30 AC 156 ms
88,832 KB
testcase_31 AC 154 ms
89,216 KB
testcase_32 AC 155 ms
89,088 KB
testcase_33 AC 154 ms
89,088 KB
testcase_34 AC 158 ms
88,960 KB
testcase_35 AC 154 ms
88,960 KB
testcase_36 AC 152 ms
89,088 KB
testcase_37 AC 158 ms
88,832 KB
testcase_38 AC 157 ms
89,088 KB
testcase_39 AC 159 ms
88,832 KB
testcase_40 AC 161 ms
88,704 KB
testcase_41 AC 159 ms
89,088 KB
testcase_42 AC 149 ms
87,168 KB
testcase_43 AC 151 ms
87,040 KB
testcase_44 AC 153 ms
86,656 KB
testcase_45 AC 149 ms
86,528 KB
testcase_46 AC 151 ms
86,912 KB
testcase_47 AC 148 ms
87,296 KB
testcase_48 AC 146 ms
87,040 KB
testcase_49 AC 143 ms
86,656 KB
testcase_50 AC 146 ms
87,296 KB
testcase_51 AC 146 ms
87,168 KB
testcase_52 AC 167 ms
87,168 KB
testcase_53 AC 146 ms
87,424 KB
testcase_54 AC 150 ms
87,296 KB
testcase_55 AC 147 ms
86,912 KB
testcase_56 AC 152 ms
87,296 KB
testcase_57 AC 150 ms
86,912 KB
testcase_58 AC 151 ms
87,040 KB
testcase_59 AC 148 ms
86,656 KB
testcase_60 AC 143 ms
86,656 KB
testcase_61 AC 149 ms
87,040 KB
testcase_62 AC 148 ms
87,168 KB
testcase_63 AC 148 ms
87,424 KB
testcase_64 AC 147 ms
87,168 KB
testcase_65 AC 142 ms
86,912 KB
testcase_66 AC 146 ms
87,552 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