#4374
La grădinița din orașul Matrix, copiii se joacă folosind matrici pătratice în loc de mașinuțe sau păpuși. Axel, fiind un copil foarte bun la informatică, s-a gândit să le propună colegilor un joc cel puțin interesant.
Acesta le oferă un număr natural N și apoi o matrice cu N linii şi N coloane, numerotate de la 1 la N. Matricea conţine numere naturale nenule. Asupra matricei se poate aplica un singur tip de operație, de oricâte ori:
i, cuprins între 1 şi N;i.Deoarece colegii lui Axel sunt totuși prea mici pentru a ști să rezolve astfel de probleme, aceștia vă cer ajutorul și vă roagă să rezolvați problema, oferindu-vă în schimb 100 de puncte.
CNER_CODE 2023
| Problema | Axel | Operații I/O |
axel.in/axel.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 256 MB
/
Stivă 64 MB
|
| Id soluție | #65018810 | Utilizator | |
| Fișier | axel.cpp | Dimensiune | 834 B |
| Data încărcării | 16 Iulie 2026, 10:15 | Scor/rezultat | 15 puncte |
axel.cpp: In function ‘int main()’: axel.cpp:8:33: warning: unused variable ‘k’ [-Wunused-variable] 8 | int n, a[1501][5101], i, j, k, count, minc = 1e9, elem; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.03 secunde | Raspuns gresit. | 3 | 0 | ||
| 2 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 3 | 0.021 secunde | OK. | 3 | 3 | ||
| 4 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 5 | 0.03 secunde | Raspuns gresit. | 3 | 0 | ||
| 6 | 0.022 secunde | Raspuns gresit. | 3 | 0 | ||
| 7 | 0.02 secunde | Raspuns gresit. | 3 | 0 | ||
| 8 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 9 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 10 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 11 | 0.031 secunde | Raspuns gresit. | 3 | 0 | ||
| 12 | 0.022 secunde | Raspuns gresit. | 3 | 0 | ||
| 13 | 0.023 secunde | Raspuns gresit. | 3 | 0 | ||
| 14 | 0.023 secunde | Raspuns gresit. | 3 | 0 | ||
| 15 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 16 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 17 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 18 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 19 | 0.039 secunde | Raspuns gresit. | 3 | 0 | ||
| 20 | 0.039 secunde | Raspuns gresit. | 3 | 0 | ||
| 21 | 0.041 secunde | Raspuns gresit. | 3 | 0 | ||
| 22 | 0.083 secunde | Raspuns gresit. | 3 | 0 | ||
| 23 | 0.02 secunde | Raspuns gresit. | 3 | 0 | ||
| 24 | 0.023 secunde | Raspuns gresit. | 3 | 0 | ||
| 25 | 0.03 secunde | Raspuns gresit. | 3 | 0 | ||
| 26 | 0.021 secunde | OK. | 3 | 3 | ||
| 27 | 0.021 secunde | OK. | 3 | 3 | ||
| 28 | 0.025 secunde | OK. | 3 | 3 | ||
| 29 | 0.025 secunde | OK. | 3 | 3 | ||
| 30 | 0.021 secunde | Raspuns gresit. | 3 | 0 | ||
| 31 | 0.022 secunde | Raspuns gresit. | 3 | 0 | ||
| 32 | 0.024 secunde | Raspuns gresit. | 3 | 0 | ||
| 33 | 0.02 secunde | Raspuns gresit. | 4 | 0 | ||
| Punctaj total | 15 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Axel 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ă.