| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 2 초 | 1024 MB | 16 | 10 | 10 | 83.333% |
Find parts of a 2d grid matching a 2d word.
Illustrate the matching areas of the haystack by printing a grid of the same size. In locations that are part of at least one match, print the original character from the haystack. In other cases, print a full-stop "." character.
3 3 ghi lmn qrs 5 5 abcde fghij klmno pqrst uvwxy
..... .ghi. .lmn. .qrs. .....
1 2 ab 6 4 abba baab abba baab abba baab
ab.. ..ab ab.. ..ab ab.. ..ab
4 1 n a n a 7 6 ananan nanana ananan nanana ananan nanana batman
.n.n.n nanana ananan nanana ananan .a.ana ....a.
2 2 oo oo 5 5 xoooo oxooo ooxoo oooxo oooox
..ooo ..ooo oo.oo ooo.. ooo..
ICPC > Regionals > Europe > Northwestern European Regional Contest > The UK & Ireland Programming Contest > UKIEPC 2024 G번