#1693
Transform
O matrice pătratică de dimensiuni N x N
cu liniile și coloanele indexate de la 1
la N
se numește matrice șmecheră de Calafat dacă pe fiecare linie și fiecare coloană există exact două valori de 1
, restul elementelor fiind 0
.
Având două matrice șmechere de Calafat notate cu A
și B
, se cere ca prin interschimbări de linii și coloane să se transforme matricea B
în matricea A
.
Problema | Transform | Operații I/O |
transform.in /transform.out
|
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 128 MB
/
Stivă 128 MB
|
Id soluție | #35597337 | Utilizator | |
Fișier | transform.cpp | Dimensiune | 4.37 KB |
Data încărcării | 15 Martie 2022, 15:56 | Scor / rezultat | 0 puncte |
transform.cpp: In function 'int32_t main()': transform.cpp:140:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < cycles[0].size(); i++) { ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
1 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
2 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
3 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
4 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
5 | 0 secunde | Raspuns incorect! | 4 | 0 | ||
6 | 0.004 secunde | Raspuns incorect! | 4 | 0 | ||
7 | 0.004 secunde | Raspuns incorect! | 4 | 0 | ||
8 | 0.004 secunde | Raspuns incorect! | 4 | 0 | ||
9 | 0.004 secunde | Raspuns incorect! | 4 | 0 | ||
10 | 0.116 secunde | Raspuns incorect! | 4 | 0 | ||
11 | 0.18 secunde | Raspuns incorect! | 4 | 0 | ||
12 | 0.308 secunde | Raspuns incorect! | 4 | 0 | ||
13 | 0.364 secunde | Raspuns incorect! | 4 | 0 | ||
14 | 0.376 secunde | Raspuns incorect! | 4 | 0 | ||
15 | 0.412 secunde | Raspuns incorect! | 4 | 0 | ||
16 | 0.472 secunde | Raspuns incorect! | 4 | 0 | ||
17 | 0.476 secunde | Raspuns incorect! | 4 | 0 | ||
18 | 0.52 secunde | Raspuns incorect! | 4 | 0 | ||
19 | 0.544 secunde | Raspuns incorect! | 4 | 0 | ||
20 | 0.544 secunde | Raspuns incorect! | 4 | 0 | ||
21 | 0.568 secunde | Raspuns incorect! | 4 | 0 | ||
22 | 0.54 secunde | Raspuns incorect! | 4 | 0 | ||
23 | 0.54 secunde | Raspuns incorect! | 4 | 0 | ||
24 | 0.54 secunde | Raspuns incorect! | 4 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Transform 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ă.