Skip to content

Rivers

UnratedLanguage limit
English

Language

Contribute a translation
Time limit
1000 ms
Memory limit
32 MB (no extra memory)
Submissions
0
Correct
0
Solved by
0
AC rate
—

Statement

Rivers

Rivers

Examples

Sample input 1
4 2
1 0 1
1 1 10
10 2 5
1 2 3
Sample output 1
4

Tags

No tags yet

Source

This problem accepts only these languages.

C++20