numbers = [int(i) for i in input().split()]
s = sum(numbers)
if s > 0:
print(2)
elif s < 0:
print(1)
else:
print(0)
Ответ:
Написано на python
a, b, c = input().split(' ')
sum_num = int(a) + int(b) + int(c)
if sum_num > 0:
elif sum_num < 0:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
numbers = [int(i) for i in input().split()]
s = sum(numbers)
if s > 0:
print(2)
elif s < 0:
print(1)
else:
print(0)
Ответ:
Написано на python
a, b, c = input().split(' ')
sum_num = int(a) + int(b) + int(c)
if sum_num > 0:
print(2)
elif sum_num < 0:
print(1)
else:
print(0)