#583
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 | #31648155 | Utilizator | |
| Fișier | tare_conexitate.cpp | Dimensiune | 3.83 KB |
| Data încărcării | 19 Octombrie 2021, 17:36 | Scor/rezultat | 20 puncte |
tare_conexitate.cpp: In member function 'void Graph::printGraph()': tare_conexitate.cpp:76:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < adlist[i].size(); ++j) ^ tare_conexitate.cpp: In member function 'Graph Graph::transpose()': tare_conexitate.cpp:149:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j = 0; j < adlist[i].size(); ++j) ^ tare_conexitate.cpp: In member function 'void Graph::stronglyConnectedComponents()': tare_conexitate.cpp:174:9: warning: unused variable 'i' [-Wunused-variable] int i, j; ^ tare_conexitate.cpp:174:12: warning: unused variable 'j' [-Wunused-variable] int i, j; ^ tare_conexitate.cpp: In function 'int main()': tare_conexitate.cpp:186:9: warning: unused variable 'i' [-Wunused-variable] int i, first, n, m; ^ tare_conexitate.cpp:186:12: warning: unused variable 'first' [-Wunused-variable] int i, first, n, m; ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 40 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 40 | 0 | ||
| Punctaj total | 20 | |||||
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ă.