QOJ.ac

QOJ

Límite de tiempo: 1 s Límite de memoria: 1024 MB Puntuación total: 100

#3961. 故障屏幕

Estadísticas

Petter 第一次乘坐新城市的通勤列车。他准备充分,记住了所有站点的名称。然而,显示下一站的显示器上有一些像素坏了。你能帮他确定下一站是哪里吗?

Unsplash license, Zürich Stadelhofen by Ivan Heinzer via Unsplash

输入格式

输入的第一行包含三个整数 $1 \le h \le 100$,$1 \le w \le 100$ 和 $1 \le n \le 100$,分别表示显示器的高度(像素)、宽度(像素)以及火车站点的数量。接下来有 $h \cdot n$ 行,其中第 $i \cdot h$ 行到 $i \cdot h + h - 1$ 行展示了站点 $i$ 在完全正常的显示器上的显示效果(对于站点 $i \in \{0, 1, 2, \dots, n-1\}$)。输入最后有 $h$ 行,展示了当前的显示器画面。显示器上开启的像素用 x 表示,关闭的像素用 . 表示。如果显示器坏了,意味着一个或多个像素总是处于关闭状态。

输出格式

如果你能告诉他下一站是哪一站,输出 yes,否则输出 no

样例

输入 1

3 9 2
x.x.x.xxx
xxx.x..x.
x.x.x..x.
xx..x.xxx
x.x.x..x.
xx..x..x.
....x....
.x..x....
....x....

输出 1

yes

输入 2

1 4 2
x.xx
xx.x
x..x

输出 2

no

Discussions

About Discussions

The discussion section is only for posting: General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.