aboutsummaryrefslogtreecommitdiff
path: root/challenge-073
diff options
context:
space:
mode:
Diffstat (limited to 'challenge-073')
-rw-r--r--challenge-073/shawak/ruby/ch-1.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/challenge-073/shawak/ruby/ch-1.rb b/challenge-073/shawak/ruby/ch-1.rb
new file mode 100644
index 0000000000..eb3dd7ac41
--- /dev/null
+++ b/challenge-073/shawak/ruby/ch-1.rb
@@ -0,0 +1,3 @@
+a=gets.split.map &:to_i
+s=gets.to_i/2
+p (s...a.size-s).map{|x|a[x-s..x+s].min}