#1572
ComponenteBiconexe
Dându-se un graf conex, să se determine componentele biconexe, punctele de articulaţie şi muchiile critice ale acestuia.
Problema | ComponenteBiconexe | Operații I/O |
componentebiconexe.in /componentebiconexe.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #18554603 | Utilizator | |
Fișier | componentebiconexe.cpp | Dimensiune | 2.44 KB |
Data încărcării | 09 Noiembrie 2019, 18:13 | Scor / rezultat | 100 puncte |
componentebiconexe.cpp: In function 'void dfs(int, int, int)': componentebiconexe.cpp:26:32: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0; i<g[nod].size(); i++){ ^ componentebiconexe.cpp: In function 'int main()': componentebiconexe.cpp:76:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0; j<sol[i].size(); j++) ^ componentebiconexe.cpp:93:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<muchie.size(); i++) ^ componentebiconexe.cpp:58:49: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] { freopen("componentebiconexe.in", "r", stdin); ^ componentebiconexe.cpp:59:51: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("componentebiconexe.out", "w", stdout); ^ componentebiconexe.cpp:61:32: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d", &p, &n, &m); ^ componentebiconexe.cpp:63:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &x, &y); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Corect! | 4 | 4 | ||
1 | 0.064 secunde | Corect! | 4 | 4 | ||
2 | 0.032 secunde | Corect! | 4 | 4 | ||
3 | 0.108 secunde | Corect! | 4 | 4 | ||
4 | 0.004 secunde | Corect! | 4 | 4 | ||
5 | 0.008 secunde | Corect! | 4 | 4 | ||
6 | 0.016 secunde | Corect! | 4 | 4 | ||
7 | 0 secunde | Corect! | 4 | 4 | ||
8 | 0 secunde | Corect! | 4 | 4 | ||
9 | 0 secunde | Corect! | 4 | 4 | ||
10 | 0 secunde | Corect! | 3 | 3 | ||
11 | 0.052 secunde | Corect! | 3 | 3 | ||
12 | 0.028 secunde | Corect! | 3 | 3 | ||
13 | 0.088 secunde | Corect! | 3 | 3 | ||
14 | 0.004 secunde | Corect! | 3 | 3 | ||
15 | 0.004 secunde | Corect! | 3 | 3 | ||
16 | 0.02 secunde | Corect! | 3 | 3 | ||
17 | 0 secunde | Corect! | 3 | 3 | ||
18 | 0 secunde | Corect! | 3 | 3 | ||
19 | 0 secunde | Corect! | 3 | 3 | ||
20 | 0 secunde | Corect! | 3 | 3 | ||
21 | 0.052 secunde | Corect! | 3 | 3 | ||
22 | 0.028 secunde | Corect! | 3 | 3 | ||
23 | 0.092 secunde | Corect! | 3 | 3 | ||
24 | 0.004 secunde | Corect! | 3 | 3 | ||
25 | 0.004 secunde | Corect! | 3 | 3 | ||
26 | 0.016 secunde | Corect! | 3 | 3 | ||
27 | 0 secunde | Corect! | 3 | 3 | ||
28 | 0 secunde | Corect! | 3 | 3 | ||
29 | 0 secunde | Corect! | 3 | 3 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ComponenteBiconexe 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ă.