#146
graph
Călinuţa tocmai a găsit o foaie de hârtie pe care este desenat un graf orientat aciclic cu N
noduri şi M
arce, fiecare arc având o distanţă de valoare întreagă. Dându-se N
, M
şi cele M
arce cu distanţele dintre ele, trebuie să calculaţi pentru Călinuţa distanţa minimă dintre fiecare două noduri.
Grigore Moisil 2013
Problema | graph | Operații I/O |
graph.in /graph.out
|
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #34913227 | Utilizator | |
Fișier | graph.cpp | Dimensiune | 1.27 KB |
Data încărcării | 17 Februarie 2022, 21:22 | Scor / rezultat | 5 puncte |
graph.cpp: In function 'int main()': graph.cpp:15:15: warning: unused variable 's' [-Wunused-variable] int n, m, s, u, v, w; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
2 | 0 secunde | OK. | 5 | 5 | ||
3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
5 | 0.004 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0.032 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0.06 secunde | Raspuns gresit. | 5 | 0 | ||
8 | 0.072 secunde | Raspuns gresit. | 5 | 0 | ||
9 | 0.104 secunde | Raspuns gresit. | 5 | 0 | ||
10 | 0.144 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0.192 secunde | Raspuns gresit. | 5 | 0 | ||
12 | 0.228 secunde | Raspuns gresit. | 5 | 0 | ||
13 | 0.268 secunde | Raspuns gresit. | 5 | 0 | ||
14 | 0.384 secunde | Raspuns gresit. | 5 | 0 | ||
15 | 0.432 secunde | Raspuns gresit. | 5 | 0 | ||
16 | 0.436 secunde | Raspuns gresit. | 5 | 0 | ||
17 | 0.456 secunde | Raspuns gresit. | 5 | 0 | ||
18 | 0.492 secunde | Raspuns gresit. | 5 | 0 | ||
19 | 0.508 secunde | Raspuns gresit. | 5 | 0 | ||
20 | 0.528 secunde | Raspuns gresit. | 5 | 0 | ||
Punctaj total | 5 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema graph 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ă.