battledev/2019_11_26/exo2.py
2019-11-27 09:18:06 +01:00

17 lines
272 B
Python

import sys
def main():
lines = []
for line in sys.stdin:
lines.append(int(line.rstrip("\n")))
smallest = min(lines)
dropped = 0
for line in lines:
dropped += line - smallest
print(dropped)
if __name__ == "__main__":
main()