|
|
back to boardShow all messages Hide all messages Why are these(n div k)*n+(n div k)*(n mod k), n*n div k not right? Show me my mistake. Thanks a lot. Test it for: 5 3 the answer must be 8 but this formula gets 7 Test it for: 5 3 the answer must be 8 but this formula gets 7 can you explain why is it 8! You can place 8 coffins like this: 1 2 3 3 3 1 2 4 4 4 1 2 0 5 6 7 7 7 5 6 8 8 8 5 6 yeah)) thanks a lot! that was a fast response did you get AC on this problem? Yes, 8 years ago :) Edited by author 08.11.2011 03:23 |
|
|