|  | 
|  | 
| вернуться в форум | WA#1 Послано hoan  21 дек 2010 19:34here is test:input:
 7
 1 1 1 0 1 1 1
 1 0 0 0 0 0 1
 1 0 0 0 0 0 1
 0 0 0 0 0 0 0
 1 0 0 0 0 0 1
 1 0 0 0 0 0 1
 1 1 1 0 1 1 1
 0
 
 output:
 No solution
 
 first my program write 3 for this.
 hope can help you!!!
 | 
 | 
|