#1270
Se dă un număr natural în baza 16
. Să se transforme acest număr în baza 10
.
Problema | b16 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #2701705 | Utilizator | |
Fișier | b16.cpp | Dimensiune | 323 B |
Data încărcării | 15 Iulie 2016, 19:38 | Scor / rezultat | 60 puncte |
b16.cpp:4:85: warning: narrowing conversion of '4294967296ll' from 'long long int' to 'const int' inside { } [-Wnarrowing] const int s[]={1,16,256,4096,65536,1048576,16777216,268435456,4294967296,68719476736}; ^ b16.cpp:4:85: warning: overflow in implicit constant conversion [-Woverflow] b16.cpp:4:85: warning: narrowing conversion of '68719476736ll' from 'long long int' to 'const int' inside { } [-Wnarrowing] b16.cpp:4:85: warning: overflow in implicit constant conversion [-Woverflow]
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 20 | 20 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | OK. | 20 | 20 | ||
4 | 0 secunde | OK. | 20 | 20 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 60 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema b16 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ă.