Under construction

Still being built. Things may change

Checks Post Facto Special Judge

Time limit2sMemory limit512 MB

Summary
Write a special judge for problem 17152 that simulates the chess board from the given move record and prints the result.
Level

Easy3 of 10

Topics
Simulation, Implementation
Solved
No attempts yet

Problem

Write a special judge for problem 17152, Checks Post Facto.

Input

The left part of the output of problem 17152 is given, followed by the input part.

Output

Print the result of simulating the board as described in problem 17152.

Examples2

  1. Example 1

    Input
    -b-.-.-.
    .-.-.-.-
    -.-.-.-.
    B-.-w-.-
    -.-.-W-.
    w-.-.-.-
    -.-w-w-.
    .-.-.-.-
    W 3
    21-17
    13x22x31x24
    19x28
    
    Expected output
    -b-.-.-.
    .-.-.-.-
    -.-.-.-.
    .-.-w-.-
    -.-.-.-.
    .-.-.-.-
    -.-.-.-W
    .-.-.-.-
    
  2. Example 2

    Input
    -.-b-.-W
    b-b-.-.-
    -w-.-.-.
    B-w-b-.-
    -.-.-.-.
    .-.-.-.-
    -.-.-.-.
    .-.-.-B-
    B 5
    2-7
    9x2
    32-27
    2x11x18
    5-9
    
    Expected output
    -.-.-.-W
    .-.-.-.-
    -b-.-.-.
    B-w-.-.-
    -.-W-.-.
    .-.-.-.-
    -.-.-B-.
    .-.-.-.-