#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 | #64489247 | Utilizator | |
| Fișier | memory004.cpp | Dimensiune | 664 B |
| Data încărcării | 10 Mai 2026, 22:05 | Scor/rezultat | 0 puncte |
memory004.cpp: In function ‘int main()’: memory004.cpp:12:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 12 | for(int j=1;j<=m;j++) | ^~~ memory004.cpp:15:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | ciur[0]=ciur[1]=1; | ^~~~ memory004.cpp:16:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 16 | for(int i=2;i*i<=10000;i++) | ^~~ memory004.cpp:20:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 20 | int l=0,Max=0; | ^~~ memory004.cpp:9:27: warning: unused variable ‘i’ [-Wunused-variable] 9 | int n,m,a[1005][1005],i=0,x; | ^ memory004.cpp:9:31: warning: unused variable ‘x’ [-Wunused-variable] 9 | int n,m,a[1005][1005],i=0,x; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 3 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 4 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 5 | 0.002 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 6 | 0.002 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 7 | 0.003 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 8 | 0.001 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 9 | 0.002 secunde | Caught fatal signal 11 | 10 | 0 | ||
| 10 | 0.001 secunde | Caught fatal signal 11 | 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ă.