結果
| 問題 | No.1242 高橋君とすごろく |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-10-04 14:28:30 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 533 ms |
| コンパイル使用メモリ | 20,568 KB |
| 実行使用メモリ | 35,672 KB |
| 最終ジャッジ日時 | 2026-04-02 16:41:06 |
| 合計ジャッジ時間 | 5,656 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 WA * 1 |
| other | AC * 23 WA * 1 |
ソースコード
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")