#3910
Se citesc trei numere naturale a b n. Să se afișeze, în ordine lexicografică, șirurile cu n elemente distincte din mulțimea {a, a + 1, ..., b}.
| Problema | Aranjamente1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64152122 | Utilizator | |
| Fișier | aranjamente1.cpp | Dimensiune | 460 B |
| Data încărcării | 20 Aprilie 2026, 17:42 | Scor/rezultat | 100 puncte |
aranjamente1.cpp: In function ‘void scrie()’: aranjamente1.cpp:7:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 7 | for (int i=1;i<=p;i++) | ^~~ aranjamente1.cpp:9:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 9 | cout<<"\n"; | ^~~~ aranjamente1.cpp: In function ‘int ok(int)’: aranjamente1.cpp:14:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for(int i=1;i<k;i++) | ^~~ aranjamente1.cpp:16:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | return 1; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.003 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 30 | 30 | ||
| 4 | 0.008 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Aranjamente1 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ă.