3 条题解
-
1
AC code:
#include<queue> #include<math.h> #include<stdio.h> #include<iostream> #include<vector> #include<iomanip> #include<string.h> #include<algorithm> #include<cmath> #include<cstdio> #include<utility> #include<cstring> #include<stack> #include<fstream> #include<string> using namespace std; typedef long long ll; const int MAX_N = 1e4 + 10; const int INF = 0x3f3f3f3f; string n[MAX_N]; string s = "01234567"; long long a , b , c , d , e , f , g; int main() { cin >> a; while ( a > 0 ) { n[++b] = s[ a % 8 ]; a /= 8; } for ( int i = b ; i >= 1 ; i-- ) { cout << n[i]; } return 0; }
请点赞再走😂
- 1
信息
- ID
- 1874
- 时间
- 1000ms
- 内存
- 256MiB
- 难度
- 5
- 标签
- (无)
- 递交数
- 191
- 已通过
- 70
- 上传者