#D6057. New Game AI
New Game AI
New Game AI
Example
Input
5 3 1 5 3 4 5 3 7 2 9 1
Output
5
inputFormat
Input
5 3 1 5 3 4 5 3 7 2 9 1
outputFormat
Output
5
样例
5 3
1 5
3 4
5 3
7 2
9 1
5
Example
Input
5 3 1 5 3 4 5 3 7 2 9 1
Output
5
Input
5 3 1 5 3 4 5 3 7 2 9 1
Output
5
5 3
1 5
3 4
5 3
7 2
9 1
5
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.