Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: exoworldgd

Problemset: Base Converter

Language: cpp

Time: 0.002 second

Submitted On: 2025-05-24 17:16:34

#include <bits/stdc++.h>
using namespace std;
int main(void) {
    int n,m;
    cin >> n >> m;
    vector<int> a;
    while (n > 0) {
    	a.push_back(n%m);
    	n /= m;
    }
    reverse(a.begin(),a.end());
    for (int i : a) cout << i;
}