ATM: Giving NZEC in Java...Help Needed !!

Problem Link: http://www.codechef.com/problems/HS08TEST

My Solution: http://www.codechef.com/viewsolution/3787756

The solution works on my laptop but shows NZEC when submitted on codechef…

Any help will be greatly appreciated…

Thanks & Regards,

Akash Nigam.

What if there is no '\n'?

1 Like

the user must press enter key after entering the value of y to get the output…This is what i thought. Without pressing enter key how will he complete his input??

Please explain…@ betlista

Regards.

You have to use a try catch instead of Thrwoing an exception.

You have to use a try catch instead of Thrwoing an exception.

thanks mate!! figured out what was wrong…:)))))))))))))))))))))))))))))))))

the “user” is a computer program that reads from file…