Submission

Status:

PPPPPPPPPP

Subtask/Task Score:

100/100

Score: 100

User: meme_boi2

Problemset: Base Converter

Language: cpp

Time: 0.002 second

Submitted On: 2026-03-19 09:39:06

#include <bits/stdc++.h>
using namespace std;

int32_t main(){
    cin.tie(nullptr)->sync_with_stdio(0);
    int n, b;
    cin >> n >> b;
    string ans = "";
    while(n > 0){
        ans =  to_string(n%b) + ans;
        n /= b;
    }
    cout << ans;
}
/*
c2_su65_baseconv

cd "c:\Users\RICOH-NB110\Desktop\Computer Programing\gchan\" ; if ($?) { g++ c2_su65_baseconv.cpp -o c2_su65_baseconv } ; if ($?) { .\c2_su65_baseconv}
*/