Skip to content

地域 (Regions)

Unrated
日本語

Language

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

Statement

地域 (Regions):公式日本語問題文 1ページ

地域 (Regions):公式日本語問題文 2ページ

Examples

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

Notes

Tags

No tags yet

Source