#3803
Se dă un poligon regulat cu n laturi cu l lungimea unei laturi. Aflați aria poligonului.
matematică
| Problema | AriePoligonRegulat | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64808978 | Utilizator | |
| Fișier | ariepoligonregulat.cpp | Dimensiune | 265 B |
| Data încărcării | 02 Iunie 2026, 18:12 | Scor/rezultat | 30 puncte |
In file included from /usr/include/c++/13/iostream:41, from ariepoligonregulat.cpp:1: In member function ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(double) [with _CharT = char; _Traits = std::char_traits<char>]’, inlined from ‘int main()’ at ariepoligonregulat.cpp:14:35: /usr/include/c++/13/ostream:223:25: warning: ‘a’ may be used uninitialized [-Wmaybe-uninitialized] 223 | { return _M_insert(__f); } | ~~~~~~~~~^~~~~ ariepoligonregulat.cpp: In function ‘int main()’: ariepoligonregulat.cpp:8:16: note: ‘a’ was declared here 8 | double n,l,a; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | OK. | 10 | 10 | Exemplu | |
| 2 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 3 | 0.001 secunde | OK. | 10 | 10 | Exemplu | |
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.002 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 30 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema AriePoligonRegulat 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ă.