Problem D
Laptop Stickers
One of Atrebla’s favourite pastimes is collecting stickers from all the conferences he attends. Due to a series of unfortunate events, all of the usual ones have been cancelled, so this year he has finally decided to start putting them onto his laptop.
Atrebla has laid out all of his stickers, decided where he would like to place them and in what order they should be placed. Before he starts sticking, he would like to make one final check to make sure he will be satisfied with the final result.
The surface of his laptop lid can be represented by a grid
with
Can you write a program to give a preview of what Atrebla’s laptop will look like after placing all of his stickers?
Inputs
The first line contains three space separated integers
Each of the following
Outputs
Output the final state of the laptop lid after all the stickers have been placed.
Sample Input 1 | Sample Output 1 |
---|---|
6 3 3 2 3 0 0 2 1 2 2 3 2 3 1 |
aa____ aa_ccc aabccc |