#2282
Se consideră un graf neorientat cu n vârfuri și m muchii. Cele m muchii se elimină pe rând din graf. Pentru fiecare muchie eliminată trebuie să spuneți câte componente conexe are graful.
| Problema | ComponenteConexe4 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #63690354 | Utilizator | |
| Fișier | componenteconexe4.cpp | Dimensiune | 1.59 KB |
| Data încărcării | 15 Martie 2026, 11:13 | Scor/rezultat | 20 puncte |
componenteconexe4.cpp: In function 'void dfs(int, int)': componenteconexe4.cpp:23:41: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < graph[act].size(); i++) { ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 0 | 0 secunde | OK. | 10 | 10 | ||
| 1 | 0 secunde | OK. | 10 | 10 | ||
| 2 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.004 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.04 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.036 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.088 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.272 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.368 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.436 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 20 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe4 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ă.