Editing 3998 - Sum Max 9
Revision as of 18:34, 29 March 2023 by Andor Giulia (talk | contribs) (Pagină nouă: == Rezolvare == <syntaxhighlight lang="python" line="1"> n = int(input("Introduceti numarul de perechi: ")) perechi = [] for i in range(n): a, b = map(int, input(f"Introduceti perechea {i+1}: ").split()) perechi.append((a, b)) suma_maxima = 0 for a, b in perechi: suma_maxima += max(a, b) print(f"Suma maxima este: {suma_maxima}") </syntaxhighlight>)
Warning: You are editing an out-of-date revision of this page.
If you publish it, any changes made since this revision will be lost.
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
Retrieved from "http://wiki.universitas.ro/wiki/3998_-_Sum_Max_9"