結果

問題 No.1242 高橋君とすごろく
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-04 14:28:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 249 bytes
コンパイル時間 358 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 8,260 KB
最終ジャッジ日時 2023-09-26 18:21:28
合計ジャッジ時間 2,244 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,820 KB
testcase_01 AC 16 ms
8,196 KB
testcase_02 AC 16 ms
7,852 KB
testcase_03 WA -
testcase_04 AC 16 ms
8,252 KB
testcase_05 AC 16 ms
7,868 KB
testcase_06 AC 15 ms
8,096 KB
testcase_07 AC 16 ms
8,088 KB
testcase_08 AC 16 ms
7,956 KB
testcase_09 AC 16 ms
8,260 KB
testcase_10 AC 16 ms
8,088 KB
testcase_11 AC 16 ms
7,888 KB
testcase_12 AC 16 ms
8,152 KB
testcase_13 AC 16 ms
7,968 KB
testcase_14 AC 16 ms
8,140 KB
testcase_15 AC 16 ms
7,848 KB
testcase_16 AC 16 ms
7,852 KB
testcase_17 AC 15 ms
8,116 KB
testcase_18 AC 16 ms
8,136 KB
testcase_19 AC 15 ms
8,148 KB
testcase_20 AC 16 ms
7,824 KB
testcase_21 WA -
testcase_22 AC 15 ms
7,792 KB
testcase_23 AC 15 ms
7,864 KB
testcase_24 AC 16 ms
7,784 KB
testcase_25 AC 16 ms
7,820 KB
testcase_26 AC 16 ms
8,236 KB
testcase_27 AC 15 ms
8,088 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

I,P,E=input,print,exit;n,k=map(int,I().split());a=list(map(int,I().split()));s,l=set(a),[2,3,5,8,9]
for i in a:
 if i+1 in s:
  if i not in l:E(P("No"))
 if i+3 in s:
  if i not in [2,5]:E(P("No"))
 if i+5 in s:
  if i-1 not in l:E(P("No"))
P("Yes")
0