結果
| 問題 |
No.1242 高橋君とすごろく
|
| コンテスト | |
| ユーザー |
ygd.
|
| 提出日時 | 2020-10-02 21:44:07 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 426 bytes |
| コンパイル時間 | 183 ms |
| コンパイル使用メモリ | 82,432 KB |
| 実行使用メモリ | 51,968 KB |
| 最終ジャッジ日時 | 2024-07-20 02:42:31 |
| 合計ジャッジ時間 | 2,307 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 23 WA * 1 |
ソースコード
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")
ygd.