#3666
Se dă n
, număr natural nenul. Să se testeze dacă n
are număr impar de divizori.
Problema | vernrimpdiv | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57700387 | Utilizator | |
Fișier | vernrimpdiv.cpp | Dimensiune | 606 B |
Data încărcării | 10 Aprilie 2025, 22:18 | Scor / rezultat | 100 puncte |
vernrimpdiv.cpp: In function 'int main()': vernrimpdiv.cpp:9:40: warning: unused variable 'first_div' [-Wunused-variable] int n, div = 1, contor, nrdiv = 0, first_div, divmax = 0, nrdivmax = 0, i, nrmax; ^ vernrimpdiv.cpp:9:51: warning: unused variable 'divmax' [-Wunused-variable] int n, div = 1, contor, nrdiv = 0, first_div, divmax = 0, nrdivmax = 0, i, nrmax; ^ vernrimpdiv.cpp:9:63: warning: unused variable 'nrdivmax' [-Wunused-variable] int n, div = 1, contor, nrdiv = 0, first_div, divmax = 0, nrdivmax = 0, i, nrmax; ^ vernrimpdiv.cpp:9:77: warning: unused variable 'i' [-Wunused-variable] int n, div = 1, contor, nrdiv = 0, first_div, divmax = 0, nrdivmax = 0, i, nrmax; ^ vernrimpdiv.cpp:9:80: warning: unused variable 'nrmax' [-Wunused-variable] int n, div = 1, contor, nrdiv = 0, first_div, divmax = 0, nrdivmax = 0, i, nrmax; ^ vernrimpdiv.cpp:10:15: warning: unused variable 'S' [-Wunused-variable] long long S = 0; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | ||
2 | 0 secunde | OK. | 20 | 20 | ||
3 | 0 secunde | OK. | 10 | 10 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | OK. | 20 | 20 | ||
6 | 0 secunde | OK. | 10 | 10 | ||
Punctaj total | 100 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema vernrimpdiv 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ă.