#334
Dreapta
Se dau coordonatele a două puncte diferite din plan. Să se stabilească dacă dreapta determinată de cele două puncte este orizontală, verticală sau oblică.
Problema | Dreapta | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50198652 | Utilizator | |
Fișier | dreapta.cpp | Dimensiune | 491 B |
Data încărcării | 31 Martie 2024, 13:20 | Scor / rezultat | 40 puncte |
dreapta.cpp: In function 'int main()': dreapta.cpp:14:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 < 0 and y1 > 0 or x1 > 0 and y1 < 0 or x2 > 0 and y2 < 0 or x2 < 0 and y2 > 0 ) ^ dreapta.cpp:14:59: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 < 0 and y1 > 0 or x1 > 0 and y1 < 0 or x2 > 0 and y2 < 0 or x2 < 0 and y2 > 0 ) ^ dreapta.cpp:14:80: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 < 0 and y1 > 0 or x1 > 0 and y1 < 0 or x2 > 0 and y2 < 0 or x2 < 0 and y2 > 0 ) ^ dreapta.cpp:17:17: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 > 0 and y1 > 0 or x1 < 0 and y1 < 0 or x2 < 0 and 2 < 0 or x2 > 0 and y2 > 0 ) ^ dreapta.cpp:17:49: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 > 0 and y1 > 0 or x1 < 0 and y1 < 0 or x2 < 0 and 2 < 0 or x2 > 0 and y2 > 0 ) ^ dreapta.cpp:17:79: warning: suggest parentheses around '&&' within '||' [-Wparentheses] if ( x1 > 0 and y1 > 0 or x1 < 0 and y1 < 0 or x2 < 0 and 2 < 0 or x2 > 0 and y2 > 0 ) ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
Punctaj total | 40 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Dreapta 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ă.