#644
DetDrum2
Se dă vectorul de tați al unui arbore cu rădăcină cu n
noduri și doua noduri p q
. Determinați drumul elementar de la nodul p
la nodul q
.
Problema | DetDrum2 | Operații I/O |
detdrum2.in /detdrum2.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #20717571 | Utilizator | |
Fișier | detdrum2.cpp | Dimensiune | 1.74 KB |
Data încărcării | 08 Februarie 2020, 11:27 | Scor / rezultat | 0 puncte |
detdrum2.cpp: In function 'void dfs(int)': detdrum2.cpp:23:32: warning: array subscript is above array bounds [-Warray-bounds] for(int j=1;j<=dr[2][0];++j) ^ detdrum2.cpp: In function 'int main()': detdrum2.cpp:49:28: warning: array subscript is above array bounds [-Warray-bounds] if(dr[1][i]==dr[2][j]) ^ detdrum2.cpp:48:28: warning: array subscript is above array bounds [-Warray-bounds] for(int j=1;j<=dr[2][0];++j) ^ detdrum2.cpp:58:20: warning: array subscript is above array bounds [-Warray-bounds] g<<dr[2][j]<<' '; ^ detdrum2.cpp:72:19: warning: array subscript is above array bounds [-Warray-bounds] if(dr[2][i]==com[1]) ^ detdrum2.cpp:70:27: warning: array subscript is above array bounds [-Warray-bounds] for(int i=1;i<=dr[2][0];++i) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DetDrum2 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ă.