#583
Tare conexitate
Se dă un graf orientat cu n
noduri. Să se determine câte componente tare conexe are graful dat.
Problema | Tare conexitate | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #38621322 | Utilizator | |
Fișier | tare_conexitate.cpp | Dimensiune | 1.74 KB |
Data încărcării | 14 Octombrie 2022, 16:34 | Scor / rezultat | 100 puncte |
tare_conexitate.cpp: In function 'void descopera(int)': tare_conexitate.cpp:36:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < liste[nod].size(); j++) ^ tare_conexitate.cpp:38:13: warning: unused variable 'ccc' [-Wunused-variable] int ccc = index[liste[nod][j]]; ^ tare_conexitate.cpp:34:9: warning: variable 'nodLeg' set but not used [-Wunused-but-set-variable] int nodLeg, nodInd; ^ tare_conexitate.cpp:34:17: warning: variable 'nodInd' set but not used [-Wunused-but-set-variable] int nodLeg, nodInd; ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:88:15: warning: unused variable 'conditie' [-Wunused-variable] int a, b, conditie = 0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 40 | 40 | ||
3 | 0 secunde | OK. | 40 | 40 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Tare conexitate 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ă.