#2532
cntcifsum
Se dă un număr N
și un număr S
. Să se determine câte numere de N
cifre au suma cifrelor S
.
Problema | cntcifsum | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #47133791 | Utilizator | |
Fișier | cntcifsum.cpp | Dimensiune | 343 B |
Data încărcării | 04 Decembrie 2023, 14:16 | Scor / rezultat | Eroare de compilare |
cntcifsum.cpp:1:1: error: stray '\' in program Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:1: error: stray '\' in program cntcifsum.cpp:1:1: error: stray '\' in program cntcifsum.cpp:1:1: error: 'Let' does not name a type cntcifsum.cpp:1:136: error: expected unqualified-id before '{' token Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:141: error: expected unqualified-id before '+' token Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:150: error: expected unqualified-id before '{' token Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:158: error: expected unqualified-id before '-' token Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:178: error: expected unqualified-id before '{' token Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:1:192: error: '$$' does not name a type Let $(a_n)$ be a sequence of positive integers greater or equal to 2. Also, consider the sequence with the general term$$b_n=1-\frac{1}{a_1}+\frac{1}{a_1a_2}-...+(-1)^n \frac{1}{a_1a_2...a_n}$$ ^ cntcifsum.cpp:3:1: error: 'b' does not name a type b) If the sequence $(a_n)$ is unbounded, prove that the limit of $(b_n)$ is an irrational number. ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema cntcifsum 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ă.