3999 - Sum Min 9
Rezolvare
<syntaxhighlight lang="python" line="1"> n = int(input("Introduceti numarul de perechi: ")) suma_min = 0
for i in range(n):
a, b = map(int, input("Introduceti perechea " + str(i+1) + ": ").split()) suma_min += min(a, b)
print("Suma minima este:", suma_min) </syntaxhighlight>