#3611
sumacifperm
Se dă un număr natural n
de exact trei cifre distincte. Să se calculeze suma tuturor numerelor care se pot obține prin interschimbarea cifrelor lui n
.
Folclorul informatic
Problema | sumacifperm | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #25451110 | Utilizator | |
Fișier | sumacifperm.cpp | Dimensiune | 394 B |
Data încărcării | 06 Noiembrie 2020, 09:05 | Scor / rezultat | 15 puncte |
sumacifperm.cpp: In function 'int main()': sumacifperm.cpp:8:19: warning: unused variable 't' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:21: warning: unused variable 'c' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:23: warning: unused variable 'n' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:25: warning: unused variable 'm' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:27: warning: unused variable 'sf' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:30: warning: unused variable 'st' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:33: warning: unused variable 'val' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:37: warning: unused variable 'i' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:8:39: warning: unused variable 'j' [-Wunused-variable] long long int t,c,n,m,sf,st,val,i,j; ^ sumacifperm.cpp:9:9: warning: unused variable 'a' [-Wunused-variable] int a[1001]; ^ sumacifperm.cpp:10:19: warning: unused variable 'radint' [-Wunused-variable] long long int radint,inceput,capat,poz,gr; ^ sumacifperm.cpp:10:26: warning: unused variable 'inceput' [-Wunused-variable] long long int radint,inceput,capat,poz,gr; ^ sumacifperm.cpp:10:34: warning: unused variable 'capat' [-Wunused-variable] long long int radint,inceput,capat,poz,gr; ^ sumacifperm.cpp:10:40: warning: unused variable 'poz' [-Wunused-variable] long long int radint,inceput,capat,poz,gr; ^ sumacifperm.cpp:10:44: warning: unused variable 'gr' [-Wunused-variable] long long int radint,inceput,capat,poz,gr; ^ sumacifperm.cpp:11:9: warning: unused variable 'k' [-Wunused-variable] int k=0; ^ sumacifperm.cpp:13:9: warning: unused variable 's' [-Wunused-variable] int s=0, tranz,c1,c2,c3,x1,x,aux; ^ sumacifperm.cpp:13:14: warning: unused variable 'tranz' [-Wunused-variable] int s=0, tranz,c1,c2,c3,x1,x,aux; ^ sumacifperm.cpp:13:29: warning: unused variable 'x1' [-Wunused-variable] int s=0, tranz,c1,c2,c3,x1,x,aux; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 5 | 5 | Exemplu | |
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 15 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema sumacifperm face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.