#3832
Dându-se N puncte laticiale, care este distanța Manhattan de buget minimă dintre două puncte de coordonate a b respectiv x y cu proprietatea că a-y >= x-b?
infoleague.net runda antrenament 2, problema A.
| Problema | A-ManhattanDeBuget | Operații I/O |
mman.in/mman.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 16 MB
/
Stivă 8 MB
|
| Id soluție | #46169183 | Utilizator | |
| Fișier | a-manhattandebuget.cpp | Dimensiune | 372 B |
| Data încărcării | 06 Noiembrie 2023, 10:34 | Scor/rezultat | 0 puncte |
a-manhattandebuget.cpp: In function 'int main()': a-manhattandebuget.cpp:15:13: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] vec[i] = x+y; ^ a-manhattandebuget.cpp:15:13: warning: 'y' may be used uninitialized in this function [-Wmaybe-uninitialized]
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0 secunde | Raspuns gresit. | 5 | 0 | Exemplu | |
| 2 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 3 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 6 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 7 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 8 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
| 11 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 12 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 13 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| 14 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema A-ManhattanDeBuget 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ă.