You are on page 1of 1

[A] Mbah Set-Range

Time limit: 1 second

Mbah Set-Range is a superhero empowered with high-level magic. He is so strong so that he can
even manipulate time (which is somehow illogical). However, as an old Indonesian saying states
“diatas langit masih ada langit”, he is not strong enough to defeat Door-mum-u, his long-lasting
enemy from Namek planet.
Despite his incomparable strength, Door-mum-u has a weakness; he cannot deal any damage to
pack-man ghosts if they are arranged as a zig-zag line in a rectangular pattern (yes, this is also
illogical). Mbah Set-Range has collected many pack-man ghosts from seven realms and now he
seek a help from you, a mere human, to arrange these ghosts as a zig-zag line (assuming you
are not scared of the ghosts).
Input: any positive integers lower than 50.
Output: pack-man ghosts arranged as a zig-zag line in a rectangular pattern.
Please note that we only use space, dot (.), hypen (-), o (the 15th character
in alphabets, not zero), vertical bar (|), slash (/) and backslash (\).
Time limit: 1s

Sample Input 1: Sample Output 1:


3 .--. .--. .--.
| oo|| oo|| oo|
|/\/\||/\/\||/\/\|
.--. .--. .--.
|oo ||oo ||oo |
|/\/\||/\/\||/\/\|
.--. .--. .--.
| oo|| oo|| oo|
|/\/\||/\/\||/\/\|
Sample Input 2: Sample Output 2:
5 .--. .--. .--. .--. .--.
| oo|| oo|| oo|| oo|| oo|
|/\/\||/\/\||/\/\||/\/\||/\/\|
.--. .--. .--. .--. .--.
|oo ||oo ||oo ||oo ||oo |
|/\/\||/\/\||/\/\||/\/\||/\/\|
.--. .--. .--. .--. .--.
| oo|| oo|| oo|| oo|| oo|
|/\/\||/\/\||/\/\||/\/\||/\/\|
.--. .--. .--. .--. .--.
|oo ||oo ||oo ||oo ||oo |
|/\/\||/\/\||/\/\||/\/\||/\/\|
.--. .--. .--. .--. .--.
| oo|| oo|| oo|| oo|| oo|
|/\/\||/\/\||/\/\||/\/\||/\/\|

ICPC Provincial Maranatha 2019 Problem – Mbah Set-Range

You might also like