Все задачи на 5.10.17 13:00
This commit is contained in:
14
uts/uts_17_aut_py/1/A.py
Normal file
14
uts/uts_17_aut_py/1/A.py
Normal file
@@ -0,0 +1,14 @@
|
||||
a, b, d = list(map(int, input().split()))
|
||||
|
||||
if a < b:
|
||||
if a + d >= b:
|
||||
print(b)
|
||||
elif a + d < b:
|
||||
print(a+d)
|
||||
elif a > b:
|
||||
if a - d <= b:
|
||||
print(b)
|
||||
elif a - d > b:
|
||||
print(a-d)
|
||||
else:
|
||||
print(b)
|
||||
Reference in New Issue
Block a user