Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (Map n can be found in http://jp.t50.us/sokoban/#n)
- Map 0 :
- 2 2
- 42
- 34
- This should output X
- Map 1 :
- 4 4
- 0102
- 1040
- 0040
- 1030
- This should output 0
- Map 2 :
- 4 6
- 110131
- 104040
- 100101
- 200000
- This should output 2
- Map 3 :
- 50 50
- 20000000000000000000000000000000000000000000000131
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000101
- 00000000010000000000000000000000000000000000000101
- 00000000010000000000000000000000000000000000000101
- 00000001410000000000000000000000000000000000000101
- 00000000010000000000000000000000000000000000000101
- 00000000010000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00001111111111111111111111111111111111111111111101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00001111111111111111111111111111111111111111111101
- 00004000000000000000000000000000000000000000000001
- 00001111111111111111111111111111111111111111111001
- This should output 88
- Map 4 :
- 5 5
- 11011
- 30001
- 11440
- 11000
- 11120
- This should output 2
- Map 5 :
- 6 5
- 30011
- 11011
- 10001
- 11440
- 11000
- 11120
- This should output 3
- Map 12 :
- 8 8
- 00001000
- 00000100
- 00000010
- 00000010
- 03004040
- 10000010
- 10000100
- 10000102
- This should output X
- Map 15 :
- 8 8
- 00000000
- 00010000
- 01004100
- 01100100
- 31101111
- 11041000
- 02001000
- 00000000
- This should output 8
- Map 19 :
- 50 50
- 20000000000000000000000000000000000000000000000131
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000100
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000111111111111111111111111111111111111111111101
- 00000100000000000000000000000000000000000000000000
- 00000100000000000000000000000000000000000000000100
- 00000100000011111111111111111111111100000000000101
- 00000100000000000000000000000000000010000000000101
- 00000100000000000000000000000000000010000000000101
- 00000100000000000000000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000100000000000000000100000000000101
- 00000100000000000111111111111111110100000000000101
- 00000100000000000000000000000000000100000000000101
- 00000100000000000000000000000000000100000000000101
- 00000100000000000000000000000000000100000000000101
- 00000100000000000000000000000000010100000000000101
- 00000100000000000000000000000000000100000000000101
- 00000100000000000000000000000000010111111111111101
- 00000100000000000000000000000000010000000000004001
- 00000100000000000000000000000000010011111111111001
- 00000100000000000000000000000000011110000000000101
- 00000111111111111111111111111111111111111111111101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00000000000000000000000000000000000000000000000101
- 00001111111111111111111111111111111111111111111101
- 00004000000000000000000000000000000000000000000001
- 00001111111111111111111111111111111111111111111001
- This should output 77
- Test map 1 :
- 12 11
- 20000000000
- 41414141414
- 01010101010
- 01010101010
- 01010101010
- 01010101010
- 01010101010
- 01010101010
- 01010101010
- 01010101010
- 01010001010
- 00000000003
- This should output 10
- Test map 2 :
- 12 11
- 20000100040
- 00000100000
- 00000400000
- 00000100000
- 11410100040
- 00000100000
- 04111100000
- 00000100000
- 11110100000
- 00000100000
- 01111100000
- 00000040003
- This should output 1
- Test map 3 :
- 11 11
- 00004040000
- 00004011101
- 00004040100
- 00004040010
- 00004040010
- 44441211010
- 00000101010
- 00000400100
- 00000400013
- 00000400001
- 00000400000
- This should output 4
- Test map 4 :
- 11 15
- 000000404111103
- 000000404000000
- 000000404111111
- 000000404000000
- 000400444000000
- 001010424001110
- 001010040040004
- 001010000001110
- 000400000000000
- 000000000000000
- 000000000000000
- This should output 10
- My algorithm can't find answer in short time even though the solution is obvious.
- Test map 5 :
- 12 12
- 204000000000
- 000111111100
- 000040000014
- 111100000410
- 000400001010
- 000400001010
- 000411111010
- 000400001010
- 000400001010
- 111100000010
- 000100000030
- 000100000010
- This should output 5
- Test map 6 :
- 10 20
- 00000000040000000013
- 00000000404000000014
- 00000004000400000000
- 00000040040040000000
- 00000400424004000000
- 00000040040040000000
- 00000004000400000000
- 00000000404000000000
- 00000000040000000000
- 00000000000000000000
- This should output X
- Again, my algorithm fails.
- Test map 7 :
- 10 10
- 0400040000
- 0010040014
- 0041040110
- 0040101010
- 1140211040
- 0011131010
- 0000040110
- 0040101040
- 4444410010
- 0400004010
- This should output X
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement