#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 | #64767546 | Utilizator | |
| Fișier | easyrow.cpp | Dimensiune | 255 B |
| Data încărcării | 28 Mai 2026, 19:20 | Scor/rezultat | 0 puncte |
easyrow.cpp: In function ‘int main()’: easyrow.cpp:5:17: warning: unused variable ‘v’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^ easyrow.cpp:5:19: warning: unused variable ‘d’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^ easyrow.cpp:5:23: warning: unused variable ‘x’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^ easyrow.cpp:5:27: warning: unused variable ‘fact’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^~~~ easyrow.cpp:5:32: warning: unused variable ‘p’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^ easyrow.cpp:5:34: warning: unused variable ‘s’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^ easyrow.cpp:5:36: warning: unused variable ‘s1’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^~ easyrow.cpp:5:39: warning: unused variable ‘c1’ [-Wunused-variable] 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^~ In file included from /usr/include/c++/13/istream:41, from /usr/include/c++/13/sstream:40, from /usr/include/c++/13/complex:45, from /usr/include/c++/13/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127, 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:7: /usr/include/c++/13/ostream:204:25: warning: ‘c’ may be used uninitialized [-Wmaybe-uninitialized] 204 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ easyrow.cpp: In function ‘int main()’: easyrow.cpp:5:15: note: ‘c’ was declared here 5 | long long a,b,c,v,d,n,x,i,fact,p,s,s1,c1; | ^
| 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ă.