3.5进制转换
#include <iostream>
#include<cstdio>
#include<vector>
using namespace std;
int main()
{
int a,b,c,d;
scanf("%d %d %d",&a,&b,&c);
int sum=a+b;
vector<int>ans;
while(sum/c!=0){
d=sum%c;
sum=sum/c;
ans.push_back(d);
}
ans.push_back(sum);
int len =ans.size();
for(int i=len;i>0;i--)
printf("%d",ans[i]);
}