#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 | #25450522 | Utilizator | |
Fișier | sumacifperm.cpp | Dimensiune | 541 B |
Data încărcării | 06 Noiembrie 2020, 08:51 | Scor / rezultat | 100 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: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; ^ sumacifperm.cpp:13:34: warning: unused variable 'aux' [-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 | OK. | 5 | 5 | ||
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 10 | 10 | ||
5 | 0 secunde | OK. | 10 | 10 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | OK. | 10 | 10 | ||
10 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
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ă.