#1318
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 | Bipartit1mare | Operații I/O |
bipartit1mare.in/bipartit1mare.out
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64779657 | Utilizator | |
| Fișier | bipartit1mare.cpp | Dimensiune | 1.91 KB |
| Data încărcării | 30 Mai 2026, 09:38 | Scor/rezultat | 100 puncte |
bipartit1mare.cpp: In function ‘int main()’: bipartit1mare.cpp:36:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 36 | for(nd=1;nd<=n;nd++) | ^~~ bipartit1mare.cpp:65:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 65 | if(ok==0) | ^~ bipartit1mare.cpp:70:13: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 70 | for(int i=1;i<=n;i++) | ^~~ bipartit1mare.cpp:73:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 73 | g<<'\n'; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | ||
| 3 | 0.001 secunde | OK. | 5 | 5 | ||
| 4 | 0.001 secunde | OK. | 5 | 5 | ||
| 5 | 0.001 secunde | OK. | 10 | 10 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | OK. | 15 | 15 | ||
| 8 | 0.001 secunde | OK. | 15 | 15 | ||
| 9 | 0.001 secunde | OK. | 20 | 20 | ||
| Punctaj total | 100 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Bipartit1mare 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ă.