Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: syndrxme
Problemset: Base Converter
Language: cpp
Time: 0.002 second
Submitted On: 2026-03-14 14:36:35
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
string s;
while(a!=0){
s+=to_string(a%b);
a/=b;
}
reverse(s.begin(),s.end());
cout<<s;
return 0;
}