結果

問題 No.1242 高橋君とすごろく
ユーザー NatsubiSoganNatsubiSogan
提出日時 2020-10-04 14:30:20
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
(最新)
AC  
(最初)
実行時間 -
コード長 250 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 8,212 KB
最終ジャッジ日時 2023-09-27 08:49:28
合計ジャッジ時間 1,477 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,904 KB
testcase_01 AC 15 ms
8,176 KB
testcase_02 AC 13 ms
7,932 KB
testcase_03 AC 14 ms
8,084 KB
testcase_04 AC 14 ms
8,124 KB
testcase_05 AC 13 ms
7,820 KB
testcase_06 AC 13 ms
8,176 KB
testcase_07 AC 13 ms
8,036 KB
testcase_08 AC 13 ms
7,748 KB
testcase_09 AC 14 ms
8,040 KB
testcase_10 AC 14 ms
8,212 KB
testcase_11 AC 13 ms
7,828 KB
testcase_12 AC 13 ms
8,060 KB
testcase_13 AC 14 ms
7,840 KB
testcase_14 AC 13 ms
8,132 KB
testcase_15 AC 13 ms
7,956 KB
testcase_16 AC 14 ms
7,880 KB
testcase_17 AC 14 ms
8,100 KB
testcase_18 AC 13 ms
8,208 KB
testcase_19 AC 13 ms
8,140 KB
testcase_20 AC 14 ms
7,828 KB
testcase_21 AC 13 ms
8,124 KB
testcase_22 AC 13 ms
7,776 KB
testcase_23 AC 14 ms
7,744 KB
testcase_24 AC 13 ms
7,784 KB
testcase_25 AC 14 ms
7,812 KB
testcase_26 AC 13 ms
8,140 KB
testcase_27 WA -
権限があれば一括ダウンロードができます

ソースコード

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,10]
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