Seat Layout
Time limit1sMemory limit1024 MB
Given the booked seats in a 10 by 20 grid, print the layout with o for taken seats and . for empty ones.
- Level
Easy1 of 10
- Topics
- Implementation, Array
- Solved
- No attempts yet
Problem
Heegwon manages one screening room at a movie theater. The seats in the room form a grid, and the seat numbers are shown in the figure below.

The screen is at the front, so row A is the front row and row J is the back row. Within each row, seat 1 is the leftmost and seat 20 is the rightmost.
The theater computer broke down, so the seat layout is unknown. Luckily, Heegwon still has the reservation records showing which seats the guests booked.
A reservation of A10 means the guest booked seat 10 in row A.
Help Heegwon draw the seat layout of the theater. No seat appears more than once in the records.
Input
The first line contains the number of guests who booked a seat ().
Each of the next lines gives the seat booked by one guest.
Output
Print the seat layout of the screening room. Write o for a seat taken by a guest and . for an empty seat.