WA on test #11.
Remove the code, will try later.
Code for problem 22C.