#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 | #63254453 | Utilizator | |
| Fișier | circuiteparitate.cpp | Dimensiune | 3.12 KB |
| Data încărcării | 23 Februarie 2026, 18:29 | Scor/rezultat | 40 puncte |
circuiteparitate.cpp: In function 'void afisare()': circuiteparitate.cpp:63:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<ctc[i].size();j++){ ^ circuiteparitate.cpp:76:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<sol.size();i++){ ^ circuiteparitate.cpp:77:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(j=0;j<sol[i].size();j++){ ^ circuiteparitate.cpp:57:13: warning: unused variable 'q' [-Wunused-variable] int i,j,q,w; ^ circuiteparitate.cpp:57:15: warning: unused variable 'w' [-Wunused-variable] int i,j,q,w; ^ circuiteparitate.cpp:59:9: warning: unused variable 'p' [-Wunused-variable] int p; ^ circuiteparitate.cpp: In function 'void ciclu(int)': circuiteparitate.cpp:90:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<ctc[nr].size();i++){ ^ circuiteparitate.cpp: In function 'void dfs_ciclu(int)': circuiteparitate.cpp:100:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<g[x].size();i++){ ^ circuiteparitate.cpp: In function 'void dfs(int)': circuiteparitate.cpp:128:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<g[x].size();i++){ ^ circuiteparitate.cpp: In function 'void dfst(int)': circuiteparitate.cpp:140:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<gt[x].size();i++){ ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 2 | 0 secunde | OK. | 20 | 20 | ||
| 3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0 secunde | OK. | 20 | 20 | ||
| 5 | 0 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ă.