Code is giving correst output. but during submission it shows wrong answer ,may u please tell why


its the code here . its working fine in ecliipse and CB ide but during submission it show wrong answer . may u please explain why ?

@Adi_choudhary hey aditya you forget to put newline after every test case.

thanku . its working now