[2021][ruby][01.x]

pull/2/head
Alpha Chen 3 years ago
parent ce57cc41da
commit 86cd480264

@ -0,0 +1,2 @@
p ARGF.read.split("\n").map(&:to_i).each_cons(2).count {|x,y| x < y }
p ARGF.read.split("\n").map(&:to_i).each_cons(3).map(&:sum).each_cons(2).count {|x,y| x < y }
Loading…
Cancel
Save