結果
| 問題 |
No.1647 Travel in Mitaru city 2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-07-28 07:36:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 287 bytes |
| コンパイル時間 | 437 ms |
| コンパイル使用メモリ | 82,520 KB |
| 実行使用メモリ | 867,176 KB |
| 最終ジャッジ日時 | 2024-10-03 15:45:09 |
| 合計ジャッジ時間 | 42,310 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 MLE * 1 |
| other | WA * 46 MLE * 1 J_TLE * 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)