Problem hidden
|This problem was hidden by Editorial Board member probably because it has incorrect language|version or invalid test data, or description of the problem is not clear.|

HNMAZE - Mê cung

Example

Input:
5 5 7
1 2 10
3 1 10
2 4 30
2 5 40
3 2 50
X 1
X 4
Y 1 4
X 3
Y 3 4
Y 5 3

Output:
40
60
-1

Được gửi lên bởi:noname00.pas
Ngày:2017-11-29
Thời gian chạy:0.100s
Giới hạn mã nguồn:50000B
Memory limit:1536MB
Cluster: Cube (Intel G860)
Ngôn ngữ cho phép:C-CLANG C CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG C99 JAVA PAS-FPC PYTHON PYTHON3
Nguồn bài:Bài tập Ôn HN 11/2017 (Thầy Lê Minh Hoàng)

© Spoj.com. All Rights Reserved. Spoj uses Sphere Engine™ © by Sphere Research Labs.