#3423
ctcmax
Se dă un graf orientat cu n
vârfuri și m
arce prin lista arcelor. Afișați componentele tare conexe formate din număr maxim de vârfuri.
Problema | ctcmax | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51308768 | Utilizator | |
Fișier | ctcmax.cpp | Dimensiune | 2.13 KB |
Data încărcării | 06 Iunie 2024, 08:46 | Scor / rezultat | 100 puncte |
ctcmax.cpp: In function 'int main()': ctcmax.cpp:36:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (CTC[i].size()>nrmaxvf) ^ ctcmax.cpp:18:12: warning: unused variable 'j' [-Wunused-variable] int i, j; ^ ctcmax.cpp: In function 'void DFSG(int)': ctcmax.cpp:72:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; i<G[x].size(); i++) ^ ctcmax.cpp: In function 'void DFSGT(int)': ctcmax.cpp:84:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; i<GT[x].size(); i++) ^ ctcmax.cpp: In function 'void sortare(std::vector<int>*, int)': ctcmax.cpp:95:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (i=0; i<a[ind].size()-1; i++) ^ ctcmax.cpp: In function 'void afisare()': ctcmax.cpp:108:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (CTC[poz[i]].size()==nrmaxvf) ^ ctcmax.cpp:110:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (j=0; j<CTC[poz[i]].size(); j++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ctcmax 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ă.