| acmsguru |
|---|
| Finished |
, 2 ≤ M + N ≤ 20, 1 ≤ K ≤ 5). Second line contains K numbers — lengths of bricks. All brick lengths are positive and do not exceed 1000. sample input | sample output |
5 5 2 3 4 | YES aaaab ccccb adddb acccc abbbb |
| Name |
|---|


