Solve AOJ2522
Solve AOJ2523
Solve AOJ2524