Editing 3905 - Suma Perm n9
Revision as of 11:30, 1 April 2023 by Pop Giulia (talk | contribs) (Pagină nouă: n = int(input("Introduceți un număr cu cifre distincte: ")) suma = 0 lungime_n = len(str(n)) permutari = set(itertools.permutations(str(n), lungime_n)) for permutare in permutari: numar = int("".join(permutare)) suma += numar print("Suma tuturor numerelor obținute prin rearanjarea cifrelor lui", n, "este:", suma))
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/3905_-_Suma_Perm_n9"