mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
18 lines
264 B
C++
18 lines
264 B
C++
|
#include<iostream>
|
||
|
#include<cstdlib>
|
||
|
using namespace std;
|
||
|
int main()
|
||
|
{
|
||
|
int m;
|
||
|
__int64 A,B;
|
||
|
char ans[30];
|
||
|
while(cin>>m&&m)
|
||
|
{
|
||
|
cin>>A>>B;
|
||
|
A+=B;
|
||
|
itoa(A,ans,m);
|
||
|
cout<<ans<<endl;
|
||
|
}
|
||
|
return 0;
|
||
|
}
|