Skip to content

JOI 国の買い物事情

UnratedLanguage limit
日本語

Language

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

Statement

JOI 国の買い物事情

JOI 国の買い物事情

JOI 国の買い物事情

Examples

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

Notes

原典:JOI 2010/2011 本選、情報オリンピック日本委員会。CC BY-SA 4.0。

Tags

No tags yet

Source

This problem accepts only these languages.

C++20