It seems that either I can't read the input correctly or there is a test case where either the disk value is not between 1 and m or the peg value not between 1 and p. Can you check it please?
created
last reply
- 9
replies
- 542
views
- 4
users
It seems that either I can't read the input correctly or there is a test case where either the disk value is not between 1 and m or the peg value not between 1 and p. Can you check it please?
I am afraid I can't fix the test data the moment, becouse I don't know how (it will probably be fixed by the problemsetter in a few hours ). If you need to submit now, please add a clause to ignore the test case where the number of the target tower (the second in the line) is 0. Solutions will be rejudged later.
I used an assert(d!=1) and my program got Accepted. So there is no test case with d = 1. Why?
I am asking because I wrote a function exactly for this special case. Since I think, d = 1 is more difficult to handle than d>1, and d = 1 is inside the constraints of the problem description, there should be at least one case with d=1 in the judge input.