#4600
Se dau două numere naturale a și b. Calculați suma numerelor echilibrate din intervalul [a,b]. Un număr este echilibrat dacă are numărul de divizori pari egal cu numărul de divizori impari. De exemplu 10 este echilibrat, iar 24 nu este echilibrat.
| Problema | echilibrat_9 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #52480482 | Utilizator | |
| Fișier | echilibrat_9.cpp | Dimensiune | 1.28 KB |
| Data încărcării | 01 Octombrie 2024, 12:14 | Scor/rezultat | Eroare de compilare |
echilibrat_9.cpp:1:7: error: expected nested-name-specifier before 'System' using System; ^ echilibrat_9.cpp:1:7: error: 'System' has not been declared echilibrat_9.cpp:2:7: error: expected nested-name-specifier before 'System' using System.Collections.Generic; ^ echilibrat_9.cpp:2:7: error: 'System' has not been declared echilibrat_9.cpp:2:13: error: expected ';' before '.' token using System.Collections.Generic; ^ echilibrat_9.cpp:2:13: error: expected unqualified-id before '.' token echilibrat_9.cpp:3:7: error: expected nested-name-specifier before 'System' using System.Linq; ^ echilibrat_9.cpp:3:7: error: 'System' has not been declared echilibrat_9.cpp:3:13: error: expected ';' before '.' token using System.Linq; ^ echilibrat_9.cpp:3:13: error: expected unqualified-id before '.' token echilibrat_9.cpp:4:7: error: expected nested-name-specifier before 'System' using System.Text; ^ echilibrat_9.cpp:4:7: error: 'System' has not been declared echilibrat_9.cpp:4:13: error: expected ';' before '.' token using System.Text; ^ echilibrat_9.cpp:4:13: error: expected unqualified-id before '.' token echilibrat_9.cpp:5:7: error: expected nested-name-specifier before 'System' using System.Threading.Tasks; ^ echilibrat_9.cpp:5:7: error: 'System' has not been declared echilibrat_9.cpp:5:13: error: expected ';' before '.' token using System.Threading.Tasks; ^ echilibrat_9.cpp:5:13: error: expected unqualified-id before '.' token echilibrat_9.cpp:9:5: error: 'internal' does not name a type internal class Program ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema echilibrat_9 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ă.