Submission

Status:
PPPPPPPPPP

Score: 100

User: Nightingale

Problemset: Base Converter

Language: cpp

Time: 0.002 second

Submitted On: 2025-03-30 17:55:07

#include <bits/stdc++.h>
using namespace std;
int main() 
{
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int a;
  int b;
  cin >> a >> b;
  vector<int> c;
  while(a!=0){
    c.push_back(a%b);
    a = a/b;
  }
  for(int i=c.size()-1;i>=0;i--){
    cout << c[i];
  }
}