#4130
Dându-se numerele X
și K
determinaţi:
1) Produsul dintre ultima cifră a numărului X * X * X * … * X
(de K
ori) şi prima cifră a lui X
.
2) Numărul rezultat după aplicarea celor K
transformări.
ONI 2022, clasa a V-a
Problema | rotire25 | Operații I/O |
![]() rotire25.in /rotire25.out
|
---|---|---|---|
Limita timp | 0.2 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #57726842 | Utilizator | |
Fișier | rotire25.cpp | Dimensiune | 1.04 KB |
Data încărcării | 12 Aprilie 2025, 13:45 | Scor / rezultat | 15 puncte |
rotire25.cpp: In function 'int og(int)': rotire25.cpp:13:12: warning: 'o' may be used uninitialized in this function [-Wmaybe-uninitialized] return o; ^ rotire25.cpp: In function 'int main()': rotire25.cpp:38:5: warning: 'x_lsm.147' may be used uninitialized in this function [-Wmaybe-uninitialized] int main() ^ rotire25.cpp:10:15: warning: 'o' may be used uninitialized in this function [-Wmaybe-uninitialized] o = o * 10 + uc; ^ rotire25.cpp:6:13: note: 'o' was declared here int uc, o; ^ rotire25.cpp:10:15: warning: 'o' may be used uninitialized in this function [-Wmaybe-uninitialized] o = o * 10 + uc; ^ rotire25.cpp:6:13: note: 'o' was declared here int uc, o; ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
0 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
1 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
2 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
6 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
7 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
8 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
9 | 0 secunde | Raspuns gresit. | 2 | 0 | ||
10 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
11 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
12 | 0 secunde | Raspuns gresit. | 3 | 0 | ||
13 | 0 secunde | OK. | 5 | 5 | ||
14 | 0 secunde | OK. | 5 | 5 | ||
15 | 0 secunde | OK. | 5 | 5 | ||
16 | Depășit | Limita de timp depășită | 5 | 0 | ||
17 | Depășit | Limita de timp depășită | 5 | 0 | ||
18 | Depășit | Limita de timp depășită | 5 | 0 | ||
19 | Depășit | Limita de timp depășită | 5 | 0 | ||
20 | Depășit | Limita de timp depășită | 6 | 0 | ||
21 | Depășit | Limita de timp depășită | 6 | 0 | ||
22 | Depășit | Limita de timp depășită | 6 | 0 | ||
23 | Depășit | Limita de timp depășită | 6 | 0 | ||
24 | Depășit | Limita de timp depășită | 6 | 0 | ||
25 | Depășit | Limita de timp depășită | 6 | 0 | ||
Punctaj total | 15 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema rotire25 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ă.