diff --git a/exo2.py b/exo2.py index cd9ac48..f48480b 100644 --- a/exo2.py +++ b/exo2.py @@ -1,5 +1,16 @@ +import sys + + def main(): - pass + 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__":