#D13326. First Search by Foxpower
First Search by Foxpower
First Search by Foxpower
Example
Input
4 1 1 2
Output
6
inputFormat
Input
4 1 1 2
outputFormat
Output
6
样例
4
1 1 2
6
Example
Input
4 1 1 2
Output
6
Input
4 1 1 2
Output
6
4
1 1 2
6
By signing up a OpenJudge universal account, you can submit code and join discussions in all online judging services provided by us.