#1005
Se dă o listă cu numere naturale. Să se determine numerele naturale nenule cu cel mult patru cifre care nu apar în lista dată.
| Problema | Numere8 | Operații I/O |
numere8.in/numere8.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64204336 | Utilizator | |
| Fișier | numere8.cpp | Dimensiune | 365 B |
| Data încărcării | 22 Aprilie 2026, 20:17 | Scor/rezultat | 0 puncte |
numere8.cpp: In function ‘int main()’: numere8.cpp:12:13: warning: iteration 1000000 invokes undefined behavior [-Waggressive-loop-optimizations] 12 | a[i]=0; | ~~~~^~ numere8.cpp:11:13: note: within this loop 11 | for(i=0;i<=1000000;i++) | ~^~~~~~~~~ numere8.cpp:12:13: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ forming offset [4000000, 4000003] is out of the bounds [0, 4000000] of object ‘a’ with type ‘int [1000000]’ [-Warray-bounds=] 12 | a[i]=0; | ~~~~^~ numere8.cpp:7:12: note: ‘a’ declared here 7 | int n,i,a[1000000],x; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.004 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.005 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.004 secunde | Caught fatal signal 11 | 20 | 0 | ||
| 5 | 0.004 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Numere8 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ă.