#4012
Pentru a evada din Matrix, Neo trebuie să străbată un labirint reprezentat de o matrice cu n linii și m coloane.
| Problema | Matrix XI | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64157698 | Utilizator | |
| Fișier | matrix_xi.cpp | Dimensiune | 1.45 KB |
| Data încărcării | 20 Aprilie 2026, 21:47 | Scor/rezultat | 60 puncte |
matrix_xi.cpp: In function ‘int verif()’: matrix_xi.cpp:18:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 18 | for(int j=1;j<=m;j++) | ^~~ matrix_xi.cpp:21:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 21 | return 1; | ^~~~~~ matrix_xi.cpp: In function ‘void back(int, int)’: matrix_xi.cpp:25:15: warning: unused variable ‘i’ [-Wunused-variable] 25 | int li,ci,i; | ^ matrix_xi.cpp: In function ‘int main()’: matrix_xi.cpp:51:6: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 51 | for(int j=1;j<=m;j++) | ^~~ matrix_xi.cpp:54:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 54 | cin>>x>>y; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.249 secunde | OK. | 20 | 20 | ||
| 4 | Depășit | Limita de timp depășită | 20 | 0 | ||
| 5 | Depășit | Limita de timp depășită | 20 | 0 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrix XI 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ă.