题目:
输入样例:
123 456 8
输出样例:
1103
#include<bits/stdc++.h>
using namespace std;
int main()
{
int A = 0, B = 0, D = 0, C = 0;
cin >> A >> B >> D;
C = A + B;
vector<int> v;
do {
v.push_back(C % D);
C /= D;
} while (C);
for (int i = v.size() - 1; i >= 0; --i) { cout << v[i]; }
return 0;
}