1 条题解
-
0
C++ :
#include<bits/stdc++.h> using namespace std; long long n; string a = "0123456789ABCDEF"; void print(int i) { cout << a[i / 16] << a[i % 16] << " "; } int main() { cin >> n; if (n == 0) { cout << "00"; return 0; } while (n > 0) { int k = n % 128; n /= 128; if (n > 0) print(k + 128); else print(k); } return 0; }
信息
- ID
- 5535
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- (无)
- 标签
- 递交数
- 0
- 已通过
- 0
- 上传者