summaryrefslogtreecommitdiff
path: root/code-jam22/round1/punched-cards.jl
diff options
context:
space:
mode:
authormathiasmagnusson <mathiasmagnussons@gmail.com>2022-12-09 18:01:29 +0100
committermathiasmagnusson <mathiasmagnussons@gmail.com>2022-12-09 18:01:29 +0100
commitac1f723d39b6d25903237af86a7319209373731b (patch)
tree834a897b19d1fc6ef6abd9d4af4b553d98e64bea /code-jam22/round1/punched-cards.jl
parenta1eb38bebe6ce1668c3f96489506c3b05b9fe5cb (diff)
downloadprogramming-problem-solving-ac1f723d39b6d25903237af86a7319209373731b.tar.gz
Code jam
Diffstat (limited to 'code-jam22/round1/punched-cards.jl')
-rw-r--r--code-jam22/round1/punched-cards.jl12
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