题解畅畅2026-08-16 20:24:13发布于:广东0阅读0回复0点赞#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; //n是一个十进制数 string s; while(n){ s = char(n % 7 + '0') + s; n /= 7; } cout << s; return 0; } 有帮助,赞一个去预览0/2000发布这里空空如也
有帮助,赞一个