I need some more I/O. PLZ Help.
And I used a ugly method and got WA at about 2 CPU time, which already exceeded the contest time constraints. Any hint I will also be appreciate.
Thanks.
11033 - Help my Brother
Moderator: Board moderators
then i dont understand why tle
here is my code
there are 9 nested loops: i fill first three columns in first three rows
and the forth column i get subtracting first three from n: the same for forth row
example
board[0][0], board[0][1], board[0][2] - loop
board[0][3] = n - board[0][0] - board[0][1] - board[0][2]
where is my problem 
here is my code
there are 9 nested loops: i fill first three columns in first three rows
and the forth column i get subtracting first three from n: the same for forth row
example
board[0][0], board[0][1], board[0][2] - loop
board[0][3] = n - board[0][0] - board[0][1] - board[0][2]
Code: Select all
ACC, comlexity 7^8, can it be done better?

Try to find a 7^7 solution. Its not so hard. Just some math.
I can assure u that there exists a 7^7 solution.

Ami ekhono shopno dekhi...
HomePage
HomePage