Fill the blanks

Time Limit: 1000ms
Memory Limit: 32768KB
This problem will be judged on HDU. Original ID: 1979
64-bit integer IO format: %I64d      Java class name: Main

Description

There is a matrix of 4*4, you should fill it with digits 0 – 9, and you should follow the rules in the following picture:

Input

No input.

Output

Print all the matrixs that fits the rules in the picture.
And there is a blank line between the every two matrixs.

Sample Output

1193
1009
9221
3191

1193
1021
9029
3911

……

9173
1559
3821
3391

Source

Language: 
Theme: 
Share Code? 

Powered by NB231 | Current Style: .