文章
13
粉丝
76
获赞
5
访问
8.4k
#include <bits/stdc++.h>
using namespace std;
string division(string s, const int &from, const int &to, int &remain){
remain = 0;
for(int i = 0; i < s.size(); i++){
int temp = remain * from + s[i];
if(s[i] >= '0' && s[i] <= '9'){
temp -= '0';
}
else{
temp = temp + 10 - 'A';
}
remain = temp % to;
temp /= to;
if(temp >= 0 && temp <= 9){
s[i] = temp + '0';
}
else{
s[i] = temp - 10 + 'A';
&...
登录后发布评论
暂无评论,来抢沙发