#933
DistantaPunctDreapta
Se dau în plan, un punct și o dreaptă. Să se determine distanța de la punct la dreaptă.
Problema | DistantaPunctDreapta | Operații I/O |
distantapunctdreapta.in /distantapunctdreapta.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #46648319 | Utilizator | |
Fișier | distantapunctdreapta.cpp | Dimensiune | 867 B |
Data încărcării | 19 Noiembrie 2023, 21:12 | Scor / rezultat | 50 puncte |
distantapunctdreapta.cpp:2:0: warning: "M_PI" redefined [enabled by default] #define M_PI 3.141592653589793238462643383279502884L ^ In file included from /usr/include/c++/4.8/cmath:44:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:41, from distantapunctdreapta.cpp:1: /usr/include/math.h:372:0: note: this is the location of the previous definition # define M_PI 3.14159265358979323846 /* pi */ ^ distantapunctdreapta.cpp: In function 'int main()': distantapunctdreapta.cpp:38:8: warning: unused variable 'minDist' [-Wunused-variable] db minDist = min({l1, l2, h}); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 10 | 10 | Exemplu | |
2 | 0 secunde | OK. | 10 | 10 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
7 | 0 secunde | OK. | 10 | 10 | ||
8 | 0 secunde | OK. | 10 | 10 | ||
9 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 10 | 0 | ||
Punctaj total | 50 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DistantaPunctDreapta 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ă.