#4096
Un palilindrom este un număr natural pentru care există o bâlbâială a regelui care îl transformă într-un palindrom. Spre exemplu, 25373552
este un palilindrom, pentru că după o bâlbâială poate deveni 255373552
, acesta fiind un număr palindrom. Fiind dat un număr natural nenul X
să se determine:
X
după o bâlbâială și câte numere diferite pot deveni X
după o bâlbâială.X
. Nu este obligatoriu să se folosească toate cifrele lui X
.OJI 2022 clasa a IX-a
Problema | balba | Operații I/O |
![]() balba.in /balba.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #56994049 | Utilizator | |
Fișier | balba.cpp | Dimensiune | 595 B |
Data încărcării | 12 Martie 2025, 16:21 | Scor / rezultat | 36 puncte |
balba.cpp: In function 'int main()': balba.cpp:13:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(c=1) ^ balba.cpp:8:49: warning: unused variable 'b' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:53: warning: unused variable 'k' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:57: warning: unused variable 'mij' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:64: warning: unused variable 'par' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:70: warning: unused variable 'd' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:75: warning: unused variable 'minim' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:81: warning: unused variable 'fv' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^ balba.cpp:8:89: warning: unused variable 'cif' [-Wunused-variable] long long n, v[1000001], i, c=0, k1=0, k2=0,b=0,k=0,mij=-1,par=1,d=-1,minim,fv[12], cif; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | OK. | 4 | 4 | ||
1 | 0 secunde | OK. | 4 | 4 | ||
2 | 0 secunde | OK. | 4 | 4 | ||
3 | 0 secunde | OK. | 4 | 4 | ||
4 | 0 secunde | OK. | 4 | 4 | ||
5 | 0.008 secunde | OK. | 4 | 4 | ||
6 | 0.008 secunde | OK. | 4 | 4 | ||
7 | 0.008 secunde | Raspuns gresit. | 4 | 0 | ||
8 | 0.008 secunde | OK. | 4 | 4 | ||
9 | 0.008 secunde | OK. | 4 | 4 | ||
10 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
14 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
15 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
16 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
17 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
18 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
19 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
20 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
21 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
22 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
23 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
24 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
25 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
26 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
27 | 0.008 secunde | Raspuns gresit. | 2 | 0 | ||
28 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
29 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
30 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
31 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
32 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
33 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
34 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
35 | 0.008 secunde | Raspuns gresit. | 3 | 0 | ||
Punctaj total | 36 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema balba 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ă.