#3635
Arithmetic Equality
Dându-se un număr n
, se vrea aflarea numărului de numere de n
cifre există care au suma și produsul cifrelor egale.
IOIT 2020-21, Runda 1
Problema | Arithmetic Equality | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #56947177 | Utilizator | |
Fișier | arithmetic_equality.cpp | Dimensiune | 838 B |
Data încărcării | 11 Martie 2025, 14:07 | Scor / rezultat | Eroare de compilare |
arithmetic_equality.cpp: In function 'int main()': arithmetic_equality.cpp:15:20: error: expected unqualified-id before '[' token for (auto &[state, count] : dp_curr) { ^ arithmetic_equality.cpp:15:20: error: expected ';' before '[' token arithmetic_equality.cpp:15:21: error: 'state' was not declared in this scope for (auto &[state, count] : dp_curr) { ^ arithmetic_equality.cpp:15:28: error: 'count' was not declared in this scope for (auto &[state, count] : dp_curr) { ^ arithmetic_equality.cpp: In lambda function: arithmetic_equality.cpp:15:35: error: expected '{' before ':' token for (auto &[state, count] : dp_curr) { ^ arithmetic_equality.cpp: In function 'int main()': arithmetic_equality.cpp:15:35: error: expected ';' before ':' token arithmetic_equality.cpp:15:35: error: expected primary-expression before ':' token arithmetic_equality.cpp:15:35: error: expected ')' before ':' token arithmetic_equality.cpp:15:35: error: expected primary-expression before ':' token arithmetic_equality.cpp:15:35: error: expected ';' before ':' token arithmetic_equality.cpp:29:1: error: expected '}' at end of input } ^ arithmetic_equality.cpp:29:1: error: expected '}' at end of input
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Arithmetic Equality 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ă.