#3611
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 | #59360471 | Utilizator | |
| Fișier | sumacifperm.cpp | Dimensiune | 219 B |
| Data încărcării | 25 Septembrie 2025, 21:29 | Scor/rezultat | 0 puncte |
sumacifperm.cpp: In function 'int main()': sumacifperm.cpp:12:14: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:16: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:22: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:24: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:30: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:32: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:38: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:40: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:46: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:48: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:54: warning: left operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^ sumacifperm.cpp:12:56: warning: right operand of comma operator has no effect [-Wunused-value] cout<<(a,b,c)+(a,c,b)+(b,a,c)+(b,c,a)+(c,b,a)+(c,a,b); ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | Raspuns gresit. | 5 | 0 | 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 | Raspuns gresit. | 10 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
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ă.