#1495
Parcurgând o matrice oarecare pe coloane, să se determine cea mai lungă secvenţă de elemente care sunt numere prime.
| Problema | Memory004 | Operații I/O |
memory004.in/memory004.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0 MB
|
| Id soluție | #64280365 | Utilizator | |
| Fișier | memory004.cpp | Dimensiune | 1.11 KB |
| Data încărcării | 27 Aprilie 2026, 19:35 | Scor/rezultat | 0 puncte |
memory004.cpp: In function ‘int prim(int)’: memory004.cpp:6:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 6 | if(x<2) | ^~ memory004.cpp:8:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 8 | int d; | ^~~ memory004.cpp: In function ‘int main()’: memory004.cpp:26:9: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 26 | else | ^~~~ memory004.cpp:28:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 28 | if(l==0) | ^~ memory004.cpp:38:3: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 38 | for(i=1;i<=m;i++) | ^~~ memory004.cpp:41:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 41 | for(j=m-1;j>=0;j--) | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | Depășit | Limita de timp depășită | 10 | 0 | Exemplu | |
| 2 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 3 | Depășit | Limita de timp depășită | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory004 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ă.