RTE on test #4.
TLE on test #11.
Code for problem 25C.