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 1000. A+B Problem

Python 2.7 help needed
Posted by Mizurnix 18 Feb 2013 05:34
Can not figure out the right solution that passes the test
Re: Python 2.7 help needed
Posted by Vladimir Yakovlev (USU) 18 Feb 2013 14:10
Try this solution:
print sum(int(x) for x in raw_input().split(' '))

Edited by author 18.02.2013 14:11
Re: Python 2.7 help needed
Posted by Mizurnix 19 Feb 2013 04:25
Thanks, it passed.

But I am still confused; I don't get why this is a solution to the described problem (a+b)
Re: Python 2.7 help needed
Posted by Light 22 Feb 2014 13:57
it works but i don't understand why other codes don't work
Re: Python 2.7 help needed
Posted by Theerapak 5 Aug 2015 18:15
Maybe your code is two line input
this problem is 1 line input