ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1877. Bicycle Codes

Something is wrong (Ruby)
Posted by warezoogle3 19 Jan 2014 23:59
#!/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.