#580
Roy-Warshall
Se dă lista arcelor unui graf orientat. Construiți matricea drumurilor, folosind algoritmul lui Roy-Warshall.
Problema | Roy-Warshall | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50379612 | Utilizator | |
Fișier | roy-warshall.cpp | Dimensiune | 872 B |
Data încărcării | 07 Aprilie 2024, 13:58 | Scor / rezultat | 60 puncte |
roy-warshall.cpp: In function 'int main()': roy-warshall.cpp:35:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int k = 1; k <= nodes; k++) { ^ roy-warshall.cpp:38:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= nodes; i++) { ^ roy-warshall.cpp:39:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 1; j <= nodes; j++) ^ roy-warshall.cpp:45:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 1; i <= nodes; i++) { ^ roy-warshall.cpp:46:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 1; j <= nodes; j++) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | OK. | 40 | 40 | ||
3 | Depășit | Limita de timp depășită | 40 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Roy-Warshall 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ă.