#2420
Se consideră următorul șir de numere naturale: 1 3 5 8 10 14 16..., în care termenul de pe poziția i (i > 1) este egal cu cel precedent plus numărul de divizori ai lui i. Afișați al n-lea termen.
Imaginatie personala
| Problema | EasyRow | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
| Id soluție | #64867183 | Utilizator | |
| Fișier | easyrow.cpp | Dimensiune | 338 B |
| Data încărcării | 08 Iunie 2026, 13:53 | Scor/rezultat | 0 puncte |
easyrow.cpp: In function ‘int main()’: easyrow.cpp:8:17: warning: unused variable ‘a’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^ easyrow.cpp:8:19: warning: unused variable ‘b’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^ easyrow.cpp:8:21: warning: unused variable ‘t’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^ easyrow.cpp:8:23: warning: unused variable ‘aux’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^~~ easyrow.cpp:8:27: warning: unused variable ‘cifra’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^~~~~ easyrow.cpp:8:33: warning: unused variable ‘ogl’ [-Wunused-variable] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^~~ easyrow.cpp:8:41: warning: ‘k’ may be used uninitialized [-Wmaybe-uninitialized] 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^ In file included from /usr/include/c++/13/iostream:41, from easyrow.cpp:1: In member function ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]’, inlined from ‘int main()’ at easyrow.cpp:19:11: /usr/include/c++/13/ostream:204:25: warning: ‘i’ may be used uninitialized [-Wmaybe-uninitialized] 204 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ easyrow.cpp: In function ‘int main()’: easyrow.cpp:8:43: note: ‘i’ was declared here 8 | long long x,a,b,t,aux,cifra,ogl,c=0,k,i,d; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.002 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.001 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema EasyRow 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ă.