Editorial for 2156: Борги


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Пiсля того, як Боб вiддасть борг, Алiса матиме a + b гривень.

Пiсля того, як Свiтлана вiддасть борг, Алiса матиме a + b + c гривень.

Пiсля того, як Алiса вiддасть борг Дмитру, вона матиме a + b + c-d гривень.

Тож вiдповiддю буде a + b + c-d.

a = int(input())
b = int(input())
c = int(input())
d = int(input())
print(a+b+c-d)

Коментарі

Please read the guidelines before commenting.


Ще немає коментарів.