GO Solution For UVa 10267 - Graphical Editor. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

The simple graphical editor deals with a rectangular table M ×N (1 ≤ M,N ≤ 250). Each pixel of the table has its colour. The picture is formed from this square pixels.

The problem is to write a program, which simulates an interactive work of the graphical editor.

Input Input consists of the editor

...

You can find the full details of the problem Graphical Editor at UVa Online Judge

Sample Input

I 5 6
L 2 3 A
S one.bmp
G 2 3 J
F 3 3 J
V 2 3 4 W
H 3 4 2 Z
S two.bmp
X

Sample Output

one.bmp
OOOOO
OOOOO
OAOOO
OOOOO
OOOOO
OOOOO
two.bmp
JJJJJ
JJZZJ
JWJJJ
JWJJJ
JJJJJ
JJJJJ

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985