Skip to content

Crocodile’s Underground City

UnratedFunction
English

Language

Contribute a translation
Time limit
2000 ms
Memory limit
256 MB
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Crocodile’s Underground City: original English statement, page 1

Crocodile’s Underground City: original English statement, page 2

Crocodile’s Underground City: original English statement, page 3

Crocodile’s Underground City: original English statement, page 4

Examples

Sample input 1
5 4 3
0 1 2
0 2 3
3 2 1
2 4 4
1 3 4
7
Sample output 1
Correct.
Sample input 2
5 7 2
0 2 4
0 3 3
3 2 2
2 1 10
0 1 100
0 4 7
3 4 9
1 3
14

Sample output 2
Correct.

Tags

No tags yet

Source

This problem accepts only these languages.

C++20