#3159
Se citesc un număr natural n având cifrele diferite două câte două și o cifră c. Afișați în ordine crescătoare numerele formate din c cifre distincte care se pot obține din cifrele lui n.
| Problema | numere124 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64318158 | Utilizator | |
| Fișier | numere124.cpp | Dimensiune | 735 B |
| Data încărcării | 29 Aprilie 2026, 12:47 | Scor/rezultat | 0 puncte |
numere124.cpp: In function ‘int valid(int)’: numere124.cpp:15:4: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 15 | for(int i=1;i<=k-1;i++) | ^~~ numere124.cpp:17:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 17 | return 1; | ^~~~~~ numere124.cpp: In function ‘void back(int)’: numere124.cpp:25:11: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 25 | if(valid(k)) | ^ numere124.cpp: In function ‘int main()’: numere124.cpp:33:9: warning: unused variable ‘k’ [-Wunused-variable] 33 | int k,m; | ^ numere124.cpp:33:11: warning: ‘m’ may be used uninitialized [-Wmaybe-uninitialized] 33 | int k,m; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema numere124 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ă.