結果

問題 No.2155 みちらcolor
ユーザー flygonflygon
提出日時 2022-12-09 21:34:29
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 50 ms / 2,000 ms
コード長 564 bytes
コンパイル時間 503 ms
コンパイル使用メモリ 82,260 KB
実行使用メモリ 63,504 KB
最終ジャッジ日時 2024-04-22 21:00:27
合計ジャッジ時間 5,043 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
61,824 KB
testcase_01 AC 49 ms
62,164 KB
testcase_02 AC 47 ms
62,168 KB
testcase_03 AC 47 ms
62,096 KB
testcase_04 AC 48 ms
61,676 KB
testcase_05 AC 48 ms
63,504 KB
testcase_06 AC 48 ms
62,488 KB
testcase_07 AC 47 ms
62,068 KB
testcase_08 AC 48 ms
61,616 KB
testcase_09 AC 49 ms
62,764 KB
testcase_10 AC 48 ms
62,144 KB
testcase_11 AC 47 ms
61,248 KB
testcase_12 AC 49 ms
61,696 KB
testcase_13 AC 47 ms
61,120 KB
testcase_14 AC 48 ms
62,164 KB
testcase_15 AC 47 ms
62,616 KB
testcase_16 AC 48 ms
62,296 KB
testcase_17 AC 47 ms
61,012 KB
testcase_18 AC 48 ms
62,060 KB
testcase_19 AC 49 ms
62,740 KB
testcase_20 AC 49 ms
61,944 KB
testcase_21 AC 50 ms
63,256 KB
testcase_22 AC 48 ms
61,876 KB
testcase_23 AC 49 ms
62,820 KB
testcase_24 AC 49 ms
62,780 KB
testcase_25 AC 49 ms
62,564 KB
testcase_26 AC 49 ms
62,172 KB
testcase_27 AC 48 ms
62,456 KB
testcase_28 AC 47 ms
61,812 KB
testcase_29 AC 49 ms
62,392 KB
testcase_30 AC 48 ms
61,820 KB
testcase_31 AC 48 ms
61,900 KB
testcase_32 AC 48 ms
62,244 KB
testcase_33 AC 48 ms
62,028 KB
testcase_34 AC 49 ms
62,216 KB
testcase_35 AC 49 ms
61,848 KB
testcase_36 AC 48 ms
63,432 KB
testcase_37 AC 47 ms
62,244 KB
testcase_38 AC 48 ms
62,620 KB
testcase_39 AC 48 ms
63,376 KB
testcase_40 AC 48 ms
62,952 KB
testcase_41 AC 48 ms
63,236 KB
testcase_42 AC 48 ms
61,960 KB
testcase_43 AC 47 ms
61,856 KB
testcase_44 AC 47 ms
60,940 KB
testcase_45 AC 46 ms
62,552 KB
testcase_46 AC 43 ms
56,048 KB
testcase_47 AC 47 ms
61,556 KB
testcase_48 AC 45 ms
61,444 KB
testcase_49 AC 47 ms
60,996 KB
testcase_50 AC 46 ms
61,876 KB
testcase_51 AC 48 ms
62,140 KB
testcase_52 AC 47 ms
61,092 KB
testcase_53 AC 47 ms
61,164 KB
testcase_54 AC 46 ms
61,460 KB
testcase_55 AC 46 ms
62,048 KB
testcase_56 AC 47 ms
62,216 KB
testcase_57 AC 48 ms
61,596 KB
testcase_58 AC 47 ms
60,824 KB
testcase_59 AC 47 ms
61,512 KB
testcase_60 AC 46 ms
61,864 KB
testcase_61 AC 46 ms
61,612 KB
testcase_62 AC 47 ms
61,480 KB
testcase_63 AC 47 ms
61,128 KB
testcase_64 AC 46 ms
61,076 KB
testcase_65 AC 47 ms
62,300 KB
testcase_66 AC 48 ms
61,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
sys.setrecursionlimit(5*10**5)
input = sys.stdin.readline
import pypyjit
pypyjit.set_param('max_unroll_recursion=-1')
from collections import defaultdict, deque, Counter
from heapq import heappop, heappush
from bisect import bisect_left, bisect_right
from math import gcd

n,m,l = map(int,input().split())

dp = [[0]*(1010) for i in range(n+1)]
a = list(map(int,input().split()))
dp[0][l] = 1
for i in range(1, n+1):
  for j in range(1010):
    dp[i][j] |= dp[i-1][j]
    dp[i][(j+a[i-1])//2] |= dp[i-1][j]
  
print('Yes') if dp[-1][m] else print('No')
0