|  | 
|  | 
| вернуться в форум | Something 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) Послано Ednal  14 май 2014 00:50I'm unfortunately not know Ruby, but in my opinionf, s = gets.split("\n").map(&:to_i) because second code written at new line.
 | 
 | 
|