結果
| 問題 | No.3291 K-step Navigation | 
| コンテスト | |
| ユーザー |  kidodesu | 
| 提出日時 | 2025-10-03 22:17:40 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                RE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 255 bytes | 
| コンパイル時間 | 402 ms | 
| コンパイル使用メモリ | 82,360 KB | 
| 実行使用メモリ | 78,400 KB | 
| 最終ジャッジ日時 | 2025-10-03 22:17:46 | 
| 合計ジャッジ時間 | 5,631 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 RE * 1 | 
| other | AC * 23 RE * 27 | 
ソースコード
n, m, k, s, t = map(int, input().split())
V = [0] * n
for _ in range(m):
    u, v = [int(x)-1 for x in input().split()]
    V[u] += 1
    V[v] += 1
if k % 2:
    print("Yes")
elif V[s-1] == V[t-1] == 0:
    print("No")
else:
    assert 0
    print("Yes")
            
            
            
        