#3635
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 |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
| Id soluție | #62604579 | Utilizator | |
| Fișier | arithmetic_equality.cpp | Dimensiune | 955 B |
| Data încărcării | 27 Ianuarie 2026, 12:57 | Scor/rezultat | Eroare de compilare |
arithmetic_equality.cpp: In function 'int main()': arithmetic_equality.cpp:39:25: error: expected initializer at end of input int np ^ arithmetic_equality.cpp:39:25: error: expected '}' at end of input arithmetic_equality.cpp:38:25: warning: unused variable 'ns' [-Wunused-variable] int ns = sum + d; ^ arithmetic_equality.cpp:39:25: error: expected '}' at end of input int np ^ arithmetic_equality.cpp:39:25: error: expected '}' at end of input arithmetic_equality.cpp:39:25: error: expected '}' at end of input arithmetic_equality.cpp:39:25: 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ă.