Solve exo 2
This commit is contained in:
parent
2dc25838c2
commit
22dfd7513a
1 changed files with 12 additions and 1 deletions
13
exo2.py
13
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__":
|
||||
|
|
Loading…
Reference in a new issue