From ac1f723d39b6d25903237af86a7319209373731b Mon Sep 17 00:00:00 2001 From: mathiasmagnusson Date: Fri, 9 Dec 2022 18:01:29 +0100 Subject: Code jam --- code-jam22/round1/punched-cards.jl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 code-jam22/round1/punched-cards.jl (limited to 'code-jam22/round1/punched-cards.jl') 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 -- cgit v1.2.3