#437
Se dă lista muchiilor unui graf neorientat. Să se verifice dacă graful este sau nu conex.
| Problema | Conex | Operații I/O |
conex.in/conex.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64588308 | Utilizator | |
| Fișier | conex.cpp | Dimensiune | 947 B |
| Data încărcării | 16 Mai 2026, 22:36 | Scor/rezultat | 100 puncte |
conex.cpp: In function ‘int conex()’: conex.cpp:27:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 27 | for(int i = 1 ; i <= n ; ++i) | ^~~ conex.cpp:30:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 30 | return 1; | ^~~~~~ conex.cpp: In function ‘int main()’: conex.cpp:42:5: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 42 | else | ^~~~ conex.cpp:44:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 44 | return 0; | ^~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 30 | 30 | ||
| 3 | 0.001 secunde | OK. | 20 | 20 | ||
| 4 | 0.001 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Conex 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ă.