#1183
SuperPerfecte
Un număr natural se numește SuperPerfect dacă cifrele sale sunt pătrate perfecte și suma oricăror două cifre alăturate este pătrat perfect. Se cere să se afle câte numere SuperPerfecte cu N
cifre există.
Problema | SuperPerfecte | Operații I/O |
superperfecte.in /superperfecte.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #43452337 | Utilizator | |
Fișier | superperfecte.cpp | Dimensiune | 1.43 KB |
Data încărcării | 26 Aprilie 2023, 22:55 | Scor / rezultat | Eroare de compilare |
superperfecte.cpp: In function 'mat2x2 inmultire(mat2x2, mat2x2)': superperfecte.cpp:34:35: warning: narrowing conversion of '(((((long long int)x.mat2x2::a) * ((long long int)y.mat2x2::a)) + (((long long int)x.mat2x2::b) * ((long long int)y.mat2x2::c))) % 555557ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1ll*x.a*y.a + 1ll*x.b*y.c) % MOD, ^ superperfecte.cpp:35:35: warning: narrowing conversion of '(((((long long int)x.mat2x2::a) * ((long long int)y.mat2x2::b)) + (((long long int)x.mat2x2::b) * ((long long int)y.mat2x2::d))) % 555557ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1ll*x.a*y.b + 1ll*x.b*y.d) % MOD, ^ superperfecte.cpp:36:35: warning: narrowing conversion of '(((((long long int)x.mat2x2::c) * ((long long int)y.mat2x2::a)) + (((long long int)x.mat2x2::d) * ((long long int)y.mat2x2::c))) % 555557ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1ll*x.c*y.a + 1ll*x.d*y.c) % MOD, ^ superperfecte.cpp:37:35: warning: narrowing conversion of '(((((long long int)x.mat2x2::c) * ((long long int)y.mat2x2::b)) + (((long long int)x.mat2x2::d) * ((long long int)y.mat2x2::d))) % 555557ll)' from 'long long int' to 'int' inside { } [-Wnarrowing] (1ll*x.c*y.b + 1ll*x.d*y.d) % MOD ^ superperfecte.cpp: In function 'int main()': superperfecte.cpp:51:15: error: overloaded function with no contextual type information for (exp=n-1; exp>=1; exp/=2) ^ superperfecte.cpp:51:26: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>=' for (exp=n-1; exp>=1; exp/=2) ^ superperfecte.cpp:51:32: error: overloaded function with no contextual type information for (exp=n-1; exp>=1; exp/=2) ^ superperfecte.cpp:53:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%' if (exp%2==1) ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema SuperPerfecte 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ă.