题解 | 小乐乐与进制转换
#include <iostream>
#include <stack>
#include <vector>
using namespace std;
int main() {
int n;
cin>>n;
stack<int> res;//用栈,输出的就是结果
while(n){
int x = n%6;
res.push(x);
n = n / 6;
}
while(!res.empty()){
cout<<res.top();
res.pop();
}
}
// 64 位输出请用 printf("%lld")

