結果
| 問題 |
No.3291 K-step Navigation
|
| コンテスト | |
| ユーザー |
kidodesu
|
| 提出日時 | 2025-10-03 22:17:18 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 255 bytes |
| コンパイル時間 | 345 ms |
| コンパイル使用メモリ | 82,624 KB |
| 実行使用メモリ | 78,244 KB |
| 最終ジャッジ日時 | 2025-10-03 22:17:24 |
| 合計ジャッジ時間 | 5,318 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 WA * 9 RE * 15 |
ソースコード
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:
assert 0
print("No")
else:
print("Yes")
kidodesu