The Online Judge board
Skip to content
Go to advanced search
dumb dan wrote:I haven't tested your code, but you should be aware that (-1)%4=(-1) and not 3 as you would want to in this case.