#4635
Se dă un graf orientat cu n vârfuri și m arce. Să se determine toate circuitele elementare formate din vârfuri care au aceeași paritate.
| Problema | CircuiteParitate | Operații I/O |
circuiteparitate.in/circuiteparitate.out
|
|---|---|---|---|
| Limita timp | 0.4 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #65011864 | Utilizator | |
| Fișier | circuiteparitate.cpp | Dimensiune | 1.12 KB |
| Data încărcării | 14 Iulie 2026, 10:43 | Scor/rezultat | 40 puncte |
circuiteparitate.cpp: In function ‘void dfs(int)’: circuiteparitate.cpp:14:18: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 14 | for(int i=0;i<a[x].size();i++) | ~^~~~~~~~~~~~ circuiteparitate.cpp:22:30: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 22 | for(int j=0;j<rez.size();j++) | ~^~~~~~~~~~~ circuiteparitate.cpp: In function ‘int main()’: circuiteparitate.cpp:43:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare] 43 | for(int j=0;j<a[x].size();j++) | ~^~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| 2 | 0.001 secunde | OK. | 20 | 20 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | OK. | 20 | 20 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 40 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CircuiteParitate 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ă.