Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! ![]()
Edit: Actually, assuming it’s CodeChef: Practical coding for everyone : consider the test input:
2
1
2