#D12299. ICPC Teams
ICPC Teams
ICPC Teams
Example
Input
2 2 1 2 0 3 4 1
Output
2
inputFormat
Input
2 2 1 2 0 3 4 1
outputFormat
Output
2
样例
2 2
1 2 0
3 4 1
2
Example
Input
2 2 1 2 0 3 4 1
Output
2
Input
2 2 1 2 0 3 4 1
Output
2
2 2
1 2 0
3 4 1
2
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.