I am getting all results still showing wrong Answer. please help

Please either format your code or (better!) link to your submission - the forum software has mangled it and it won’t compile! :slight_smile:

Edit: Actually, assuming it’s CodeChef: Practical coding for everyone : consider the test input:

2                                                          
1
2