OJ-Problems-Source/HDOJ/1877_autoAC.cpp
2016-08-17 15:13:51 +08:00

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;
}