Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Karatat007
Problemset: Base Converter
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-08 15:52:51
#include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int b10,base;
cin >> b10 >> base;
string ans = "";
while(b10 > 0){
ans += to_string(b10%base);
b10 /= base;
}
reverse(ans.begin(),ans.end());
cout << ans;
}