#1007
Se consideră o matrice cu n
linii şi m
coloane şi elemente numere naturale. Să se modifice matricea în felul următor: toate elementele egale cu valoarea maximă din matrice se înlocuiesc cu valoarea minimă de pe coloana lor.
Problema | Matrice7 | Operații I/O |
![]() matrice7.in /matrice7.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58513016 | Utilizator | |
Fișier | matrice7.cpp | Dimensiune | 824 B |
Data încărcării | 12 Iunie 2025, 20:15 | Scor / rezultat | 0 puncte |
matrice7.cpp: In function 'int main()': matrice7.cpp:13:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++){ ^ matrice7.cpp:14:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=1;j<=m;j++){ ^ matrice7.cpp:23:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=m;i++){ ^ matrice7.cpp:25:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=1;j<=n;j++){ ^ matrice7.cpp:32:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++){ ^ matrice7.cpp:33:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=1;j<=m;j++){ ^ matrice7.cpp:34:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(a[i][j]==maxi)a[i][j]=a[0][j]; ^ matrice7.cpp:39:20: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=1;i<=n;i++){ ^ matrice7.cpp:40:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j=1;j<=m;j++){ ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Matrice7 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ă.