Do check the code here
Its good at my vs code, but its always showing me that its a wrong answer
I used java for this.
Am i doing anything wrong that got affected due to the compilers in spoj?
Especially in the areas of input, output code
There’s no number of testcases in the input, you need to read until EOF.
Thanks simes…, it worked
You saved my day
Sorry to bother…, im a newbie to spoj