diff options
Diffstat (limited to 'code-jam22/round1/punched-cards.jl')
-rw-r--r-- | code-jam22/round1/punched-cards.jl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/code-jam22/round1/punched-cards.jl b/code-jam22/round1/punched-cards.jl new file mode 100644 index 0000000..16bd228 --- /dev/null +++ b/code-jam22/round1/punched-cards.jl @@ -0,0 +1,12 @@ +t = parse(Int, readline()) +for i = 1:t + r, c = parse.(Int, split(readline())) + println("Case #", i, ":") + println("..+" * "-+" ^ (c - 1)) + println("..|" * ".|" ^ (c - 1)) + for y = 1:(r-1) + println("+" * "-+" ^ c) + println("|" * ".|" ^ c) + end + println("+" * "-+" ^ c) +end |