ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1529. Game of Squares

clarification
Posted by MessedUp 20 Feb 2007 04:18
If one of the dimensions becomes one, do we continue with an (k-1)-dimensional problem, or does every cut remove all blocks?

In either case, can someone give me some sample I/O, since I currently get WA #3 (assuming the first two are the sample cases).
Re: clarification
Posted by Kit 20 Feb 2007 14:37
MessedUp wrote 20 February 2007 04:18
If one of the dimensions becomes one, do we continue with an (k-1)-dimensional problem, or does every cut remove all blocks?
Second way, k is constant during computations.
Finally, some tests:
2
11 12
3
6 7 8
4
5 6 7 8

and answers:
1
4 1
1
1 2 4
1
1 1 2 4
Re: clarification
Posted by MessedUp 20 Feb 2007 19:43
Thanks, I've found my stupid error (using a global variable in an recursive function). Now I got TLE on test 4, but I'll work on that later.
Re: clarification
Posted by Vedernikoff Sergey 7 Mar 2007 17:00
Consider case K = 1 severally