Skip to content

工場 (Factories)

UnratedFunction
日本語

Language

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

Statement

問題文 1ページ

問題文 2ページ

問題文 3ページ

問題文 4ページ

Examples

Sample input 1
7 3
0 1 4
1 2 4
2 3 5
2 4 6
4 5 5
1 6 3
2 2
0 6
3 4
3 2
0 1 3
4 6
1 1
2
5
Sample output 1
12
3
11

Notes

Tags

No tags yet

Source

This problem accepts only these languages.

C++20