#417
Se dă lista muchiilor unui graf neorientat. Să se afișeze vârfurile de grad maxim.
| Problema | GradMax | Operații I/O |
gradmax.in/gradmax.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64447966 | Utilizator | |
| Fișier | gradmax.cpp | Dimensiune | 971 B |
| Data încărcării | 07 Mai 2026, 12:56 | Scor/rezultat | 0 puncte |
gradmax.cpp: In function ‘int main()’: gradmax.cpp:46:23: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 46 | for (int i = 0; i < maxNodes.size(); i++) { | ~~^~~~~~~~~~~~~~~~~ gradmax.cpp:47:35: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 47 | fout << maxNodes[i] << (i == maxNodes.size() - 1 ? "" : " "); | ~~^~~~~~~~~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 60 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema GradMax 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ă.