結果

問題 No.1242 高橋君とすごろく
ユーザー ygd.ygd.
提出日時 2020-10-02 21:44:07
言語 PyPy3
(7.3.13)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 426 bytes
コンパイル時間 527 ms
コンパイル使用メモリ 86,776 KB
実行使用メモリ 71,368 KB
最終ジャッジ日時 2023-09-27 08:37:13
合計ジャッジ時間 3,264 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
71,340 KB
testcase_01 AC 68 ms
71,204 KB
testcase_02 AC 64 ms
70,976 KB
testcase_03 AC 63 ms
71,092 KB
testcase_04 AC 74 ms
71,244 KB
testcase_05 AC 65 ms
70,832 KB
testcase_06 AC 63 ms
71,160 KB
testcase_07 AC 64 ms
70,808 KB
testcase_08 AC 64 ms
70,972 KB
testcase_09 AC 64 ms
71,224 KB
testcase_10 AC 64 ms
70,972 KB
testcase_11 AC 65 ms
71,332 KB
testcase_12 AC 65 ms
71,316 KB
testcase_13 AC 65 ms
70,976 KB
testcase_14 AC 64 ms
71,204 KB
testcase_15 AC 65 ms
71,064 KB
testcase_16 AC 64 ms
70,836 KB
testcase_17 AC 64 ms
71,064 KB
testcase_18 AC 63 ms
71,300 KB
testcase_19 AC 62 ms
71,140 KB
testcase_20 AC 64 ms
71,300 KB
testcase_21 AC 63 ms
71,364 KB
testcase_22 AC 63 ms
71,036 KB
testcase_23 AC 65 ms
71,368 KB
testcase_24 AC 63 ms
71,044 KB
testcase_25 AC 65 ms
71,048 KB
testcase_26 AC 63 ms
71,236 KB
testcase_27 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

N,K = map(int,input().split())
A = list(map(int,input().split()))
AS = set(A)

for x in A:
  if x+1 in AS:
    if x == 10 or x == 8 or x == 5 or x == 3 or x == 2:
      pass
    else:
      print("No");exit()
  if x+3 in AS:
    if x == 5 or x == 2:
      pass
    else:
      print("No");exit()
  if x+5 in AS:
    if x == 11 or x == 9 or x == 6 or x == 4 or x == 3:
      pass
    else:
      print("No");exit()
print("Yes")
0