#1450
Să se afle câte coloane ale unei matrice au produsul elementelor divizibil cu un număr dat p.
| Problema | Memory003 | Operații I/O |
memory003.in/memory003.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 0.3 MB
/
Stivă 0 MB
|
| Id soluție | #64275701 | Utilizator | |
| Fișier | memory003.cpp | Dimensiune | 763 B |
| Data încărcării | 27 Aprilie 2026, 16:09 | Scor/rezultat | 0 puncte |
memory003.cpp: In function ‘int main()’: memory003.cpp:26:42: warning: iteration 101 invokes undefined behavior [-Waggressive-loop-optimizations] 26 | for(int j=0; j<=100000; j++) a[j]=0; | ~~~~^~ memory003.cpp:26:23: note: within this loop 26 | for(int j=0; j<=100000; j++) a[j]=0; | ~^~~~~~~~ memory003.cpp:26:42: warning: ‘void* __builtin_memset(void*, int, long unsigned int)’ forming offset [404, 400003] is out of the bounds [0, 404] of object ‘a’ with type ‘int [101]’ [-Warray-bounds=] 26 | for(int j=0; j<=100000; j++) a[j]=0; | ~~~~^~ memory003.cpp:5:14: note: ‘a’ declared here 5 | int fv[101], a[101]; | ^
| 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.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory003 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ă.