結果
| 問題 | No.1647 Travel in Mitaru city 2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-28 07:36:01 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| 記録 | |
| コンパイル時間 | 156 ms |
| コンパイル使用メモリ | 85,120 KB |
| 実行使用メモリ | 1,109,688 KB |
| 最終ジャッジ日時 | 2026-04-19 18:10:19 |
| 合計ジャッジ時間 | 25,533 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 47 MLE * 1 |
ソースコード
import sys
sys.setrecursionlimit(500000)
h, w, n = map(int, input().split())
edge = [[] for _ in range(h + w)]
for idx in range(n):
x, y = [int(i) - 1 for i in input().split()]
y = y + h
edge[x].append((y, idx))
edge[y].append((x, idx))
visited = [False] * (h + w)