#include "iostream"
#include "stdio.h"
#include <vector>
#include <cstring>
#include <algorithm>
#include <string>
#include <string.h>
#include <stack>
#include <ctype.h>
using namespace std;
//1194
int n;
vector<int> v;
int main(){
while(cin>>n){
v.clear();
do{
v.push_back(n%8);
n/=8;
}while(n);
reverse(v.begin(),v.end());
for(int i=0;i<v.size();i++)
cout<<v[i];
cout<<endl;
}
return 0;
}
/**************************************************************
Problem: 1194
User: cust123
Language: C++
Result: Accepted
Time:150 ms
Memory:1520 kb
****************************************************************/
题目1194:八进制
最新推荐文章于 2021-09-23 23:03:34 发布