首页
DreamJudge
院校信息
考研初试
考研复试
保研专区
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
ZeroQi_404
2026年3月17日 17:18
八进制 题解:
P1417
回复 0
|
赞 2
|
浏览 183
#include <iostream> using namespace std; int main(){ int n; while(cin >> n){ cout << oct << n << endl; } return 0; }
彻底死去
2026年3月15日 23:18
八进制 题解:
P1417
回复 0
|
赞 4
|
浏览 170
#include<iostream> #include<cstdio> #include<cmath> #include<algorithm> #include<string> #include<cstring> using namespace std; int main() { int n; int a[100] = { 0 }; while (cin >> n) { int cnt = 0; if (n == 0)...
太一
2026年3月15日 22:12
八进制 题解:没有比我更简短的
P1417
回复 1
|
赞 2
|
浏览 207
#include<iostream> #include<cmath> #include<algorithm> #include<string> using namespace std; int main() { int n; while (cin >> n) { printf("%o\n", n); }...
王艺道
2026年3月10日 20:31
八进制 题解:
P1417
回复 0
|
赞 1
|
浏览 262
//输入一个整数,将其转换成八进制数输出。 #include<bits/stdc++.h> using namespace std; int main(){ int n; int s[20]; int len = 0; while(cin >> n){ len = 0;  ...
kkkkkkllll
2026年3月7日 11:50
八进制 题解:
P1417
回复 0
|
赞 1
|
浏览 177
#include<iostream> #include<algorithm> #include<vector> #include<set> #include<string> using namespace std; int main(){ int N; while(cin>>N){ string octStr; while(...
Cat111
2026年3月5日 11:40
八进制 题解:
P1417
回复 0
|
赞 0
|
浏览 203
#include <bits/stdc++.h> using namespace std; int main(){ int N; while(scanf("%d",&N)!=EOF){ char num[105]; int arc=0; while(N>0){ num[arc++]=N%8+'0'; N/=8; } for(int i=arc-1;i>=0;i--){ printf("%c",num[i]); } printf("\n"); } return ...
xsw
2026年2月1日 10:14
八进制 题解:
P1417
回复 0
|
赞 2
|
浏览 387
#include<iostream> #include<algorithm> #include<vector> using namespace std; void change(int x) { vector<int> q; while (x) { q.push_back(x % 8); x /= 8; } reverse(q.begin(),q.end()); for (auto c : q) cout << c; cout << endl; } in...
mlx
2026年1月30日 22:19
八进制 题解:
P1417
回复 0
|
赞 0
|
浏览 331
#include<iostream> #include<vector> #include<algorithm> using namespace std; int main() { int n; while(cin>>n) { vector<int> nums; while(n) { nums.push_back(n%8); n/=8; } reverse(nums.begin(),nums.end()); for(int i=0;i<nums...
曾不会
2026年1月24日 19:06
八进制 题解:
P1417
回复 0
|
赞 0
|
浏览 382
正常转换,后面翻转一下 #include<stdio.h> int main() { int n; while(scanf("%d",&n)!=EOF) { char s[10]; int i=0; while(n&...
曾不会
2026年1月24日 19:01
八进制 题解:
P1417
回复 0
|
赞 0
|
浏览 355
python很快 while(1): try: n=int(input()) s=oct(n) # print(s) s=s[2:] print(s) except: break
1
2
3
4
题目
八进制
题解数量
34
发布题解
在线答疑
热门题解
1
八进制 题解:
2
八进制 题解:为什么通过率只有百分之八十
3
八进制 题解:printf("%o\n",n);
4
八进制 题解:c++
5
八进制 题解:
6
八进制 (格式化输出)题解:
7
八进制 题解:孩子们,我秒了
8
“除x取余,逆序排列”
9
八进制 题解:
10
八进制 题解: