Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: IIIIIIIIIIII

Problemset: Base Converter

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-13 22:30:11

#include <iostream>
#include <string>
#include <algorithm>
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;
}