Cody

Problem 44761. Lights Out 9 - 5x5, light-only solution? II

Solution 2486816

Submitted on 6 Jun 2020 by jmac
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Fail
board = [0 1 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 0 0]; assert(lights_out_9(board)); % [5 7 23]

freepass granted, CONGRATULATIONS!

exit

2   Fail
board = [1 1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 0 1 1]; assert(lights_out_9(board)); % [1 13 25]

freepass granted, CONGRATULATIONS!

exit

3   Fail
board = [0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0]; assert(lights_out_9(board)); % [9 15 19]

freepass granted, CONGRATULATIONS!

exit

4   Fail
board = [0 1 0 1 0 1 1 0 1 1 0 0 0 0 0 1 1 0 1 1 0 1 0 1 0]; assert(lights_out_9(board)); % [7 9 17 19]

freepass granted, CONGRATULATIONS!

exit

5   Fail
board = [1 0 0 0 1 0 1 0 1 0 0 0 0 0 0 0 1 0 1 0 1 0 0 0 1]; assert(lights_out_9(board)); % [1 5 7 9 17 19 21 25]

freepass granted, CONGRATULATIONS!

exit

6   Fail
board = [0 0 1 1 0 0 1 1 1 1 0 1 1 1 1 0 0 1 1 0 0 0 0 0 0]; assert(lights_out_9(board)); % [12 13 17 18]

freepass granted, CONGRATULATIONS!

exit

7   Fail
board = [0 0 1 0 0 0 0 1 0 0 1 1 0 1 1 0 0 1 0 0 0 0 1 0 0]; assert(lights_out_9(board)); % [8 12 14 18]

freepass granted, CONGRATULATIONS!

exit

8   Fail
board = [0 0 0 0 0 1 0 0 0 0 1 0 0 1 0 0 1 1 1 1 0 0 1 0 0]; assert(lights_out_9(board)); % [3 9 15 19]

freepass granted, CONGRATULATIONS!

exit

9   Fail
board = [1 0 1 0 1 1 0 1 0 1 0 0 0 0 0 1 0 1 0 1 1 0 1 0 1]; assert(lights_out_9(board)); % [1 5 11 15 21 25]

freepass granted, CONGRATULATIONS!

exit

10   Fail
board = [0 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 1 1 1 1 0 1 1 1 0]; assert(lights_out_9(board)); % [7 8 9 12 14 17 18 19]

freepass granted, CONGRATULATIONS!

exit

11   Fail
board = [0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0 1 0 0 0 1 0]; assert(lights_out_9(board)); % [2 6 8 12 14 18 20 24]

freepass granted, CONGRATULATIONS!

exit

12   Fail
board = [0 1 1 1 1 1 0 1 0 0 1 1 1 0 0 1 0 1 1 0 0 1 0 0 0]; assert(lights_out_9(board)); % on your own

freepass granted, CONGRATULATIONS!

exit

13   Fail
board = [1 1 1 1 1 1 1 0 1 1 1 0 1 0 1 1 1 0 1 1 1 1 1 1 1]; assert(lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit

14   Fail
board = [0 1 1 1 0 1 0 0 0 1 1 0 1 0 1 1 0 0 0 1 0 1 1 1 0]; assert(lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit

15   Fail
board = [0 0 1 0 0 0 1 1 1 0 1 1 0 1 1 0 1 1 1 0 0 0 1 0 0]; assert(lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit

16   Fail
board = [0 1 0 1 0 1 0 0 0 1 1 1 0 1 1 1 0 0 0 1 0 1 0 1 0]; assert(~lights_out_9(board)); % [7 8 9 17 18 19]

freepass granted, CONGRATULATIONS!

exit

17   Fail
board = [0 1 1 0 0 0 1 0 1 1 1 0 0 0 1 1 1 0 1 0 0 0 1 1 0]; assert(~lights_out_9(board)); % [1 2 5 10 16 21 24 25]

freepass granted, CONGRATULATIONS!

exit

18   Fail
board = [0 0 0 1 0 1 1 0 1 0 0 0 0 0 0 0 1 0 0 1 0 1 0 0 0]; assert(~lights_out_9(board)); % [2 5:6 8:11 17:24]

freepass granted, CONGRATULATIONS!

exit

19   Fail
board = [1 0 1 0 0 0 1 1 0 0 1 0 1 0 0 0 1 1 0 0 0 0 0 0 0]; assert(~lights_out_9(board)); % on your own

freepass granted, CONGRATULATIONS!

exit

20   Fail
board = [0 0 0 1 0 1 0 1 0 0 1 1 1 1 0 0 1 1 0 1 0 1 0 1 0]; assert(~lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit

21   Fail
board = [0 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 1 0 0 0 0 0 0 0]; assert(lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit

22   Fail
board = [1 0 1 1 0 1 0 0 1 1 0 0 0 0 0 1 1 0 0 1 0 1 1 0 1]; assert(~lights_out_9(board));

freepass granted, CONGRATULATIONS!

exit