#430
Izolate
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile izolate ale grafului.
Problema | Izolate | Operații I/O |
![]() izolate.in /izolate.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58048914 | Utilizator | |
Fișier | izolate.cpp | Dimensiune | 3.77 KB |
Data încărcării | 11 Mai 2025, 12:34 | Scor / rezultat | 100 puncte |
izolate.cpp: In function 'void ListaVecini()': izolate.cpp:65:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (idy==a[x].size()) a[x].push_back(y); ^ izolate.cpp:70:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (idx==a[y].size()) a[y].push_back(x); ^ izolate.cpp:79:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j<a[i].size(); j++) ^ izolate.cpp: In function 'bool check_adj(std::vector<std::vector<int> >&)': izolate.cpp:87:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i<v.size(); i++) ^ izolate.cpp:91:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i<v.size(); i++) ^ izolate.cpp: In function 'void grade()': izolate.cpp:122:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (idy==a[x].size()) a[x].push_back(y); ^ izolate.cpp:127:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (idx==a[y].size()) a[y].push_back(x); ^ izolate.cpp: In function 'void gradeK()': izolate.cpp:155:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (v[i].size()==goodk) good.push_back(i); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 60 | 60 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Izolate 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ă.