提交时间:2023-03-16 22:09:43
运行 ID: 11801
#include<bits/stdc++.h> using namespace std; int a[110]; int main() { int num, cnt = 0; cin >> num; while(num != 0) { a[++cnt] = num % 8; num /= 8; } for (int i = cnt; i >= 1; i--) { cout << a[i]; } return 0; }