首页
DreamJudge
院校信息
考研初试
机试真题
讨论区
兑换中心
登录
注册
上岸
以下题解仅供学习参考使用。
抄袭、复制题解,以达到刷AC率/AC数量或其他目的的行为,在N诺是严格禁止的。
N诺非常重视学术诚信。此类行为将会导致您成为作弊者。具体细则请查看N诺社区规则。
阿灿
2025年3月18日 19:10
八进制 题解:printf("%o\n",n);
P1417
回复 0
|
赞 3
|
浏览 756
#include<bits/stdc++.h> using namespace std; int main(){ int n; while(cin>>n){ printf("%o\n",n); } return 0; }
清新的栀枝
2025年3月5日 11:39
八进制 题解:孩子们,我秒了
P1417
回复 0
|
赞 2
|
浏览 432
#include <stdio.h> int main(){ int n; while(scanf("%d",&n)!=EOF){ printf("%o\n",n); } return 0;}
ccccccyes
2024年8月26日 14:45
八进制 题解:
P1417
回复 0
|
赞 10
|
浏览 989
//分析:int够了 #include <iostream> #include <vector> using namespace std; int main(){ int n,num; vector<int> oct; while(cin>>n){ //oct没清空,影响下轮输出 oct.clear(); while(n!=0){ num = n%8; oct.push_back(num); n /= 8; } for(int i = oct.size()-1...
myming
2024年7月20日 20:34
八进制 题解:
P1417
回复 0
|
赞 2
|
浏览 840
#include<bits/stdc++.h> using namespace std; void f(int x){ char y[66] = {0}; int i = 0; while(x){ y[i++] = x % 8 + '0';  ...
Candour
2024年4月28日 00:15
八进制 (格式化输出)题解:
P1417
回复 0
|
赞 3
|
浏览 811
#include <bits/stdc++.h> using namespace std; int n; int main() { while(cin >> n) { printf("%o\n", n); } return 0; }
Amberqwe
2024年3月25日 15:09
八进制 题解:
P1417
回复 2
|
赞 1
|
浏览 987
只有80%,为什么啊 #include<stdio.h> int main() { int n,x; int a[1000000]; int m=0; while(scanf("%d",&n)!=EOF){ while(n > 0) { x = n % 8; &n...
八千
2024年3月10日 16:46
八进制 题解:为什么通过率只有百分之八十
P1417
回复 7
|
赞 6
|
浏览 1.2k
#include<bits/stdc++.h> using namespace std; int main(){ int n, a; scanf("%d", &n); int b[10]; int c = 0; while(n > 0){ a = n % 8; &...
Liinsy
2024年2月28日 21:32
八进制 题解:
P1417
回复 2
|
赞 0
|
浏览 771
为什么vs可以通过家人们? #include<stdio.h> int main() { int n; int a[100]; while(scanf_s("%d",&n)){ int i = 0; while(n > 0) { ...
光明守护神
2024年3月14日 21:27
把2进制那题的2改成8就搞定了!
P1417
回复 0
|
赞 1
|
浏览 1.5k
#include <iostream> #include <vector> using namespace std; int main() { auto n = 1000000; while (cin >> n) { vector<int> r(0); while (n) { r.push_back(n % 8); n /= 8; } for (auto i = r.rbegin(); i != r.rend(); i++) { cout <<...
小酒
2024年3月11日 15:36
八进制 题解:
P1417
回复 0
|
赞 0
|
浏览 632
1417解题思路 #include <iostream> using namespace std; int main() { int a[105]={0}; int n;//输入的十进制 while(cin>>n) { int y; &nbs...
1
2
3
题目
八进制
题解数量
21
发布题解
在线答疑
热门题解
1
八进制 题解:
2
八进制 题解:为什么通过率只有百分之八十
3
八进制 (格式化输出)题解:
4
八进制 题解:printf("%o\n",n);
5
八进制 题解:孩子们,我秒了
6
“除x取余,逆序排列”
7
八进制 题解:
8
八进制 题解:C++实现
9
常规进制转换
10
十进制转八进制