#P1969. Glow, Pixel, Glow!

    ID: 776 传统题 2000ms 128MiB 尝试: 0 已通过: 0 难度: (无) 上传者: 标签>2019 ACM Southeast USA regional(10小时马拉松赛)

Glow, Pixel, Glow!

题目描述

PDF

输入格式

AS shown in the PDF.

输出格式

AS shown in the PDF.

样例

4 
h 1 4 1 
v 2 4 2 
h 10 2 2 
v 11 2 3 

2 

4 
h 1 10 1 
h 5 10 2 
v 1 10 1 
v 5 10 3 

4 

7 
v 1 3 1 
v 1 15 2 
h 4 5 1 
h 5 5 2 
h 6 5 3 
h 7 5 4 
h 8 5 5 

5 

提示

sourced from 2019 ACM Southeast USA regional(10小时马拉松赛)


by QLU_杨光耀