repl.it
@anonymous/

WorthlessQuizzicalArachnid

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
4
5
f=->s{s-s.product(s).map{|x,y|x+y}==s}

p f.call [1,5,7]
p f.call [2,4]
p f.call [1,5,6]
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]
?