题解 | #八进制#
八进制
https://www.nowcoder.com/practice/eda051c1effc4dffa630bc8507f0c5f7
#include <iostream> #include <vector> using namespace std; int main() { long long n; while (cin >>n) { vector<int> ba; while(n) { ba.push_back(n%8); n/=8; } for(int i=ba.size()-1;i>=0;i--) { cout<<ba[i]; } cout<<endl; } }