#4681
Se dă o matrice cu n linii și n coloane care memorează numere naturale nenule. Modificați valorile divizibile cu 5 din matrice astfel încât acestea să nu mai conțină factorul 5. Apoi modificați valorile divizibile cu 3 din matrice astfel încât acestea să nu mai conțină factorul 3.
| Problema | MatrixSqr | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64653661 | Utilizator | |
| Fișier | matrixsqr.cpp | Dimensiune | 703 B |
| Data încărcării | 20 Mai 2026, 17:45 | Scor/rezultat | 100 puncte |
matrixsqr.cpp: In function ‘int main()’: matrixsqr.cpp:10:13: warning: unused variable ‘k’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^ matrixsqr.cpp:10:15: warning: unused variable ‘l’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^ matrixsqr.cpp:10:17: warning: unused variable ‘m’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^ matrixsqr.cpp:10:21: warning: unused variable ‘z’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^ matrixsqr.cpp:10:26: warning: unused variable ‘cnt’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^~~ matrixsqr.cpp:10:33: warning: unused variable ‘ind’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^~~ matrixsqr.cpp:10:41: warning: unused variable ‘mx’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^~ matrixsqr.cpp:10:52: warning: unused variable ‘mn’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^~ matrixsqr.cpp:10:61: warning: unused variable ‘tmx’ [-Wunused-variable] 10 | int i,j,k,l,m,n,z=0, cnt=0, ind = 0,mx = -2e9, mn = 2e9,tmx; | ^~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0.002 secunde | OK. | 10 | 10 | ||
| 1 | 0.003 secunde | OK. | 10 | 10 | ||
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | OK. | 10 | 10 | ||
| 4 | 0.002 secunde | OK. | 10 | 10 | ||
| 5 | 0.003 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | OK. | 10 | 10 | ||
| 8 | 0.001 secunde | OK. | 10 | 10 | ||
| 9 | 0.002 secunde | OK. | 10 | 10 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema MatrixSqr 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ă.