#934
Se dau în plan, un punct și un segment. Să se determine distanța minimă de la punctul dat la un punct aparținând segmentului.
| Problema | DistantaPunctSegment | Operații I/O |
distantapunctsegment.in/distantapunctsegment.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64457621 | Utilizator | |
| Fișier | distantapunctsegment.cpp | Dimensiune | 5.59 KB |
| Data încărcării | 07 Mai 2026, 22:15 | Scor/rezultat | 10 puncte |
distantapunctsegment.cpp: In function ‘int prob_929__90pcte()’: distantapunctsegment.cpp:135:1: warning: no return statement in function returning non-void [-Wreturn-type] 135 | } | ^ distantapunctsegment.cpp: In function ‘int prob_1921_100pcete()’: distantapunctsegment.cpp:147:1: warning: no return statement in function returning non-void [-Wreturn-type] 147 | } | ^ distantapunctsegment.cpp: In function ‘int prob_933_80pcte()’: distantapunctsegment.cpp:194:1: warning: no return statement in function returning non-void [-Wreturn-type] 194 | } | ^ distantapunctsegment.cpp: In function ‘int prob_930_80pcte()’: distantapunctsegment.cpp:183:1: warning: control reaches end of non-void function [-Wreturn-type] 183 | } | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Raspuns gresit. | 10 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.003 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | OK. | 10 | 10 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 10 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DistantaPunctSegment 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ă.