#D12243. Black Company
Black Company
Black Company
Example
Input
3 1 3 3 2 1 2 1 3
Output
5
inputFormat
Input
3 1 3 3 2 1 2 1 3
outputFormat
Output
5
样例
3
1 3 3
2
1 2
1 3
5
Example
Input
3 1 3 3 2 1 2 1 3
Output
5
Input
3 1 3 3 2 1 2 1 3
Output
5
3
1 3 3
2
1 2
1 3
5
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.