I seem to be getting the same output as illustrated in the output example of problem but spoj keeps telling me it's wrong answer.
Output :
1
2
-1
3
I realized it as:
printf("%d\n", n);
Will SPOJ tell me it's wrong answer if I have empty row after the last number (see in code) and they don't?
Or maybe they have additional examples which my code doesn't pass?
created
last reply
- 1
reply
- 147
views
- 2
users