3999 - Sum Min 9: Revision history

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

26 April 2023

29 March 2023

  • curprev 18:4518:45, 29 March 2023Andor Giulia talk contribs 301 bytes +301 Pagină nouă: == 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>