题解 | #八进制#
八进制
https://www.nowcoder.com/practice/eda051c1effc4dffa630bc8507f0c5f7
#include <iostream>
#include <string>
using namespace std;
int main() {
string b="";
int a , meter = 8;
while (cin >> a) {
int c;
while(a){
c = a%meter;
b = char(c + '0') + b ;
a /= meter;
}
cout<<b<<endl;
b="";
}
}
