#3833. C++-GESP 2025-06认证四级-编程题01(画布裁剪)

C++-GESP 2025-06认证四级-编程题01(画布裁剪)

Background

Description

image

image

Format

Input

Output

Samples

3 5
2 2 2 4
.....
.>_<.
.....
>_<
5 5
1 2 3 4
AbCdE
fGhIk
LmNoP
qRsTu
VwXyZ
Cd
hI

Limitation

1s, 1024KiB for each test case.