#525
Se dau n numere naturale. Determinaţi cele mai mari două numere cu trei cifre care nu apar printre numerele date.
| Problema | Numere1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64290823 | Utilizator | |
| Fișier | numere1.cpp | Dimensiune | 536 B |
| Data încărcării | 28 Aprilie 2026, 10:54 | Scor/rezultat | 0 puncte |
numere1.cpp: In function ‘int main()’: numere1.cpp:12:17: warning: comparison of constant ‘1000’ with boolean expression is always true [-Wbool-compare] 12 | if (99<x<1000) | ~~~~^~~~~ numere1.cpp:12:15: warning: comparisons like ‘X<=Y<=Z’ do not have their mathematical meaning [-Wparentheses] 12 | if (99<x<1000) | ~~^~ numere1.cpp:17:12: warning: suggest explicit braces to avoid ambiguous ‘else’ [-Wdangling-else] 17 | if (gasit[i]==0) | ^ numere1.cpp:28:2: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 28 | else | ^~~~ numere1.cpp:31:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 31 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.002 secunde | Caught fatal signal 11 | 40 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere1 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ă.