#929
Se dau un punct și un segment în plan. Să se verifice dacă punctul se găsește pe segment.
| Problema | PunctSegment | Operații I/O |
punctsegment.in/punctsegment.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64456710 | Utilizator | |
| Fișier | punctsegment.cpp | Dimensiune | 3.31 KB |
| Data încărcării | 07 Mai 2026, 21:02 | Scor/rezultat | 60 puncte |
punctsegment.cpp: In function ‘int oawd()’: punctsegment.cpp:104:10: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] 104 | double a, b, c, s = 0, p; | ^ punctsegment.cpp:104:13: warning: variable ‘b’ set but not used [-Wunused-but-set-variable] 104 | double a, b, c, s = 0, p; | ^ punctsegment.cpp:104:16: warning: variable ‘c’ set but not used [-Wunused-but-set-variable] 104 | double a, b, c, s = 0, p; | ^ punctsegment.cpp:104:26: warning: unused variable ‘p’ [-Wunused-variable] 104 | double a, b, c, s = 0, p; | ^ punctsegment.cpp:116:1: warning: no return statement in function returning non-void [-Wreturn-type] 116 | } | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | OK. | 10 | 10 | ||
| 4 | 0.001 secunde | OK. | 10 | 10 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | OK. | 10 | 10 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | OK. | 10 | 10 | ||
| 10 | 0.001 secunde | OK. | 10 | 10 | ||
| Punctaj total | 60 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema PunctSegment 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ă.