Hi,I have submitted solution to small factorials problem and pour water problem. But it is judged as wrong result. How to find out what is wrong with my programs.
make up strange test cases. solve them by hand. run them. compare solutions.
also check the thread about the problems, you might find some interesting things you may've not see at first glance