#438
ComponenteConexe
Se dă lista muchiilor unui graf neorientat. Să se afișeze componentele conexe ale acestui graf.
Problema | ComponenteConexe | Operații I/O |
componenteconexe.in /componenteconexe.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #20901701 | Utilizator | |
Fișier | componenteconexe.cpp | Dimensiune | 876 B |
Data încărcării | 13 Februarie 2020, 18:34 | Scor / rezultat | 100 puncte |
componenteconexe.cpp: In function 'int main()': componenteconexe.cpp:18:9: warning: unused variable 'm' [-Wunused-variable] int m,x,i,a,b,e=0,h=1,j=1; ^ componenteconexe.cpp:18:11: warning: variable 'x' set but not used [-Wunused-but-set-variable] int m,x,i,a,b,e=0,h=1,j=1; ^ componenteconexe.cpp:18:19: warning: unused variable 'e' [-Wunused-variable] int m,x,i,a,b,e=0,h=1,j=1; ^ componenteconexe.cpp:18:23: warning: unused variable 'h' [-Wunused-variable] int m,x,i,a,b,e=0,h=1,j=1; ^ componenteconexe.cpp:18:27: warning: unused variable 'j' [-Wunused-variable] int m,x,i,a,b,e=0,h=1,j=1; ^ componenteconexe.cpp:27:9: warning: unused variable 'p' [-Wunused-variable] int p=1,nod,coada[101],nc=1; ^ componenteconexe.cpp:27:13: warning: unused variable 'nod' [-Wunused-variable] int p=1,nod,coada[101],nc=1; ^ componenteconexe.cpp:27:17: warning: unused variable 'coada' [-Wunused-variable] int p=1,nod,coada[101],nc=1; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 60 | 60 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteConexe 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ă.