結果

問題 No.1242 高橋君とすごろく
ユーザー 👑 KazunKazun
提出日時 2020-10-02 21:23:40
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 185 bytes
コンパイル時間 2,010 ms
コンパイル使用メモリ 86,648 KB
実行使用メモリ 71,524 KB
最終ジャッジ日時 2023-09-23 04:01:33
合計ジャッジ時間 4,086 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 72 ms
71,524 KB
testcase_01 AC 72 ms
71,296 KB
testcase_02 WA -
testcase_03 AC 71 ms
71,000 KB
testcase_04 AC 71 ms
71,400 KB
testcase_05 WA -
testcase_06 AC 71 ms
71,420 KB
testcase_07 AC 71 ms
71,444 KB
testcase_08 AC 71 ms
71,304 KB
testcase_09 AC 70 ms
71,264 KB
testcase_10 WA -
testcase_11 AC 73 ms
71,256 KB
testcase_12 AC 70 ms
71,372 KB
testcase_13 WA -
testcase_14 AC 73 ms
71,212 KB
testcase_15 AC 73 ms
71,048 KB
testcase_16 WA -
testcase_17 AC 75 ms
71,260 KB
testcase_18 AC 72 ms
71,308 KB
testcase_19 AC 72 ms
71,456 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 73 ms
71,028 KB
testcase_26 AC 72 ms
71,168 KB
testcase_27 AC 73 ms
71,120 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

B=[]
for k in range(K-1):
    B.append(A[k+1]-A[k])

if 1 in B or 2 in B or 3 in B:
    print("No")
else:
    print("Yes")
0