#472
Se dă lista muchiilor unui graf neorientat cu n vârfuri, etichetate de la 1 la n. Să se verifice dacă graful este bipartit.
| Problema | Bipartit1 | Operații I/O |
bipartit1.in/bipartit1.out
|
|---|---|---|---|
| Limita timp | 0.5 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64779563 | Utilizator | |
| Fișier | bipartit1.cpp | Dimensiune | 1.90 KB |
| Data încărcării | 30 Mai 2026, 09:13 | Scor/rezultat | 100 puncte |
bipartit1.cpp: In function ‘int main()’: bipartit1.cpp:37:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 37 | for(nd=1;nd<=n;nd++) | ^~~ bipartit1.cpp:66:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 66 | if(ok==0) | ^~ bipartit1.cpp:71:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 71 | for(int i=1;i<=n;i++) | ^~~ bipartit1.cpp:74:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 74 | g<<'\n'; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 20 | 20 | Exemplu | |
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | OK. | 30 | 30 | ||
| 4 | 0.002 secunde | OK. | 30 | 30 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bipartit1 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ă.