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 2066. Simple Expression

What's wrong? Runtime error
Posted by gkd002 4 Mar 2024 19:38
a, b, c = map(int, input().split(" "))
a = int(a)
b = int(b)
c = int(c)
lst = [a, b, c]
lst.sort()
d = lst[0]-lst[1]*lst[2]
e = lst[0]-lst[1]-lst[2]
if d<e:
    min = d
else:
    min = e
print(min)
Re: What's wrong? Runtime error
Posted by Artemii 24 Mar 2025 21:05
You have a 3-line input,but you entered everything in one line