|
|
back to boardSomething is wrong (Ruby) #!/usr/local/bin/ruby -w f, s = gets.split(" ").map(&:to_i) if f%2==0 || s%2!=0 puts "yes" else puts "no" end What is wrong? Re: Something is wrong (Ruby) Posted by Ednal 14 May 2014 00:50 I'm unfortunately not know Ruby, but in my opinion f, s = gets.split("\n").map(&:to_i) because second code written at new line. |
|
|