#include <iostream>
#include <cstdio>
using namespace std;
int buf[50];
int bufsize=0;
int main(int argc, char** argv) {
int a,b;
scanf("%d%d",&a,&b);
int ans=a+b;
int d;
scanf("%d",&d);
do{
buf[bufsize++]=ans%d;
ans/=d;
}while(ans!=0);
for(int i=bufsize-1;i>=0;i--){
printf("%d",buf[i]);
}
return 0;

}


patB1022D进制的A+B

相关文章:

  • 2021-08-20
  • 2021-12-09
  • 2021-12-29
  • 2021-05-25
  • 2022-01-07
  • 2021-09-17
  • 2021-11-26
猜你喜欢
  • 2021-10-07
  • 2021-09-01
  • 2021-08-22
  • 2022-02-22
  • 2021-12-27
相关资源
相似解决方案