Hi. Can I ask you why the judge shows internal error? Here is the problem: https://www.spoj.com/problems/RF101 My code: https://ideone.com/gn7aEw Best Regards.