#2824
Se dă un număr natural n și un șir de numere naturale din intervalul [1,n] ordonate crescător. Să se afișeze în ordine strict crescătoare toate numerele din intervalul [1,n] care nu se găsesc în șirul dat.
Subiect Bacalaureat 2016, sesiunea iunie-iulie, enunț modificat
| Problema | Numere25 | Operații I/O |
numere25.in/numere25.out
|
|---|---|---|---|
| Limita timp | 2.5 secunde | Limita memorie |
Total: 2 MB
/
Stivă 2 MB
|
| Id soluție | #64777624 | Utilizator | |
| Fișier | numere25.cpp | Dimensiune | 450 B |
| Data încărcării | 29 Mai 2026, 18:36 | Scor/rezultat | 0 puncte |
numere25.cpp: In function ‘int main()’: numere25.cpp:14:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 14 | for (i=ultim+1;i<x;i++) | ^~~ numere25.cpp:16:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 16 | ultim=x; | ^~~~~ numere25.cpp:22:3: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 22 | if (ok==0) | ^~ numere25.cpp:24:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 24 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Gresit | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Gresit | 10 | 0 | ||
| 3 | 0.002 secunde | Gresit | 10 | 0 | ||
| 4 | 0.008 secunde | Gresit | 10 | 0 | ||
| 5 | 0.005 secunde | Gresit | 10 | 0 | ||
| 6 | 0.078 secunde | Gresit | 10 | 0 | ||
| 7 | 0.555 secunde | Gresit | 10 | 0 | ||
| 8 | 0.253 secunde | Gresit | 10 | 0 | ||
| 9 | 0.366 secunde | Gresit | 10 | 0 | ||
| 10 | 0.001 secunde | Gresit | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere25 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ă.