This documentation is automatically generated by online-judge-tools/verification-helper
# verification-helper: PROBLEM https://atcoder.jp/contests/abc307/tasks/abc307_c
import strutils, sequtils
import cplib/matrix/matops
proc load(): (int, int, seq[string]) =
var h, w: int
(h, w) = stdin.readLine.split.map(parseInt)
var s = newSeqWith(h, stdin.readLine)
s.trim('.')
return (s.len, s[0].len, s)
var (ha, wa, a) = load()
var (hb, wb, b) = load()
var (hx, wx, x) = load()
for ia in 0..hx-ha:
for ja in 0..wx-wa:
for ib in 0..hx-hb:
for jb in 0..wx-wb:
var ans = newSeqWith(hx, newSeqWith(wx, ".").join(""))
for i in 0..<ha:
for j in 0..<wa:
if a[i][j] == '#': ans[ia+i][ja+j] = '#'
for i in 0..<hb:
for j in 0..<wb:
if b[i][j] == '#': ans[ib+i][jb+j] = '#'
if ans == x:
echo "Yes"
quit()
echo "No"
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/documentation/build.py", line 71, in _render_source_code_stat
bundled_code = language.bundle(stat.path, basedir=basedir, options={'include_paths': [basedir]}).decode()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/onlinejudge_verify/languages/nim.py", line 86, in bundle
raise NotImplementedError
NotImplementedError