#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 | #64809450 | Utilizator | |
| Fișier | numere1.cpp | Dimensiune | 566 B |
| Data încărcării | 02 Iunie 2026, 18:35 | Scor/rezultat | 20 puncte |
numere1.cpp: In function ‘int main()’: numere1.cpp:13:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 13 | if( nr <= 999 && nr >= 100) | ^~ numere1.cpp:16:6: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 16 | for( ii = 999 ; ii >= 100; ii--) | ^~~ numere1.cpp:20:15: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 20 | if (b = 0){ | ~~^~~ numere1.cpp:23:20: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 23 | else if (a = 0) | ~~^~~
| 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.002 secunde | OK. | 20 | 20 | ||
| 4 | 0.252 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 20 | |||||
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ă.