#2890
Se dă numărul n
în baza b
, să se afișeze numărul n
în convertit în baza c
.
Problema | Base Converter | Operații I/O |
![]() base_converter.in /base_converter.out
|
---|---|---|---|
Limita timp | 0.6 secunde | Limita memorie |
Total: 64 MB
/
Stivă 64 MB
|
Id soluție | #57376736 | Utilizator | |
Fișier | base_converter.cpp | Dimensiune | 8.72 KB |
Data încărcării | 28 Martie 2025, 00:07 | Scor / rezultat | 35 puncte |
base_converter.cpp: In member function 'int BigInt::operator[](int) const': base_converter.cpp:114:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(digits.size() <= index || index < 0) ^ base_converter.cpp: In function 'BigInt& operator/=(BigInt&, const BigInt&)': base_converter.cpp:240:24: warning: unused variable 'm' [-Wunused-variable] int n = Length(a), m = Length(b); ^ base_converter.cpp: In function 'BigInt& operator%=(BigInt&, const BigInt&)': base_converter.cpp:271:24: warning: unused variable 'm' [-Wunused-variable] int n = Length(a), m = Length(b); ^ base_converter.cpp: In function 'int main()': base_converter.cpp:349:39: warning: array subscript has type 'char' [-Wchar-subscripts] base10 += (f * lookup[x[i]]); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | OK. | 5 | 5 | Exemplu | |
2 | 0 secunde | OK. | 5 | 5 | ||
3 | 0.004 secunde | OK. | 5 | 5 | ||
4 | 0.024 secunde | OK. | 5 | 5 | ||
5 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
6 | 0.072 secunde | Raspuns gresit. | 5 | 0 | ||
7 | 0.38 secunde | OK. | 5 | 5 | ||
8 | 0.008 secunde | Raspuns gresit. | 5 | 0 | ||
9 | Depășit | Limita de timp depășită | 5 | 0 | ||
10 | 0.04 secunde | Raspuns gresit. | 5 | 0 | ||
11 | 0.136 secunde | OK. | 5 | 5 | ||
12 | Depășit | Limita de timp depășită | 5 | 0 | ||
13 | 0 secunde | Raspuns gresit. | 5 | 0 | ||
14 | 0.224 secunde | OK. | 5 | 5 | ||
15 | Depășit | Limita de timp depășită | 5 | 0 | ||
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ă | 5 | 0 | ||
Punctaj total | 35 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Base Converter 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ă.