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 3, wrong answer although it works in Jupyter, why?
Posted by Liza 11 Jul 2019 10:57
a,b=input('Введите числа через пробел: ').split(" ")
a=int(a)
b=int(b)
print(a+b)

test 1, wrong answer :(
Re: Python 3, wrong answer although it works in Jupyter, why?
Posted by Liza 11 Jul 2019 11:06
Got it. The text in Russian was not a good idea.

just this:

a,b=input().split()
a=int(a)
b=int(b)
print(a+b)

accepted!
Re: Python 3, wrong answer although it works in Jupyter, why?
Posted by Kozo Hoshino 2 Nov 2019 15:04
Hello Lisa . It and my error )
a = float(input(" "))
b = float(input(" "))
print(a+b)
Runtime error
Rus : Привет , у меня такая же ошибка . Выдает Runtime error