結果

問題 No.1242 高橋君とすごろく
ユーザー brthyyjpbrthyyjp
提出日時 2020-10-02 21:58:54
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 315 bytes
コンパイル時間 450 ms
コンパイル使用メモリ 86,756 KB
実行使用メモリ 914,464 KB
最終ジャッジ日時 2023-09-24 12:17:34
合計ジャッジ時間 5,039 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 AC 68 ms
71,368 KB
testcase_02 AC 69 ms
71,308 KB
testcase_03 AC 69 ms
71,364 KB
testcase_04 AC 69 ms
71,480 KB
testcase_05 AC 68 ms
71,224 KB
testcase_06 AC 78 ms
76,644 KB
testcase_07 AC 81 ms
76,804 KB
testcase_08 AC 67 ms
71,500 KB
testcase_09 AC 65 ms
71,440 KB
testcase_10 MLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
testcase_22 -- -
testcase_23 -- -
testcase_24 -- -
testcase_25 -- -
testcase_26 -- -
testcase_27 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

n,k = map(int, input().split())
A = list(map(int, input().split()))

s = []
for a in A:
    s.append(a)

X = set(A)
while s:
    v = s.pop()
    for x in range(1, 7):
        if v+7-2*x in X and v-x >= 1:
            X.add(v-x)
            s.append(v-x)

#print(X)
if 1 in X:
    print('No')
else:
    print('Yes')
0