首页
题库
面试
求职
学习
竞赛
More+
所有博客
搜索面经/职位/试题/公司
搜索
我要招人
去企业版
登录 / 注册
首页
>
试题广场
>
八进制
[编程题]八进制
热度指数:32453
时间限制:C/C++ 1秒,其他语言2秒
空间限制:C/C++ 64M,其他语言128M
算法知识视频讲解
输入一个整数,将其转换成八进制数输出。
输入描述:
输入包括一个整数N(0<=N<=100000)。
输出描述:
可能有多组测试数据,对于每组数据, 输出N的八进制表示数。
示例1
输入
7 8 9
输出
7 10 11
马上挑战
算法知识视频讲解
提交运行
算法知识视频讲解
添加笔记
求解答(27)
邀请回答
收藏(81)
分享
提交结果有问题?
261个回答
45篇题解
开通博客
小朱666
发表于 2023-09-22 19:11:18
#include <cstdio> #include <iostream> using namespace std; int main() { int n; while(scanf("%d", &n) != EOF) printf
展开全文
Huster水仙
发表于 2023-01-14 15:55:44
#include<iostream> #include<stack> using namespace std; stack<int>s; int main(){ int n; while(scanf("%d",&n)!=EOF){
展开全文
友人帐在逃妖怪
发表于 2021-02-22 10:37:02
#include #include #include using namespace std; char IntToChar(int target) { if (target < 10) { return target + '0'; } else {
展开全文
牛烘烘
发表于 2022-04-01 14:50:42
#include<iostream> #include<cstdio> #include<string> #include<vector> using namespace std; string str; char inttochar(int x){
展开全文
在考古的小鱼干很有气魄
发表于 2023-03-08 09:14:17
#include <bits/stdc++.h> #define MAX 100 using namespace std; void conv(int n,int mod){ int data[MAX],len = 0; while(n){ data[len+
展开全文
牛客440904392号
发表于 2024-10-06 22:10:24
//正常写法 #include <iostream> #include <vector> #include <algorithm> using namespace std; int main() { int n; while (cin >&g
展开全文
燃烧的橘子
发表于 2023-02-26 21:16:43
#include <iostream> #include<vector> using namespace std; int main() { int n; vector<int>v; while(cin>>n) {
展开全文
能干的小白练习时长两年半
发表于 2024-03-17 10:55:20
#include<iostream> using namespace std; int bajinzhi(int n){ int sum=0,p=1; while(n>0){ int t=n%8; sum=sum+t*p; p=p*10; n=n/8; }
展开全文
也不容易的小白菜很怕黑
发表于 2023-03-23 00:21:24
//输入一个整数,将其转换成八进制数输出。 #include<stdio.h> int main() { int n; while (scanf("%d", &n) != EOF) { int a[100], i = 0; while (n
展开全文
窝在小角落里刷题
发表于 2023-02-07 16:34:56
#include <iostream> #include <cstdio> #include <string> #include <algorithm> #include <vector> using namespace std; /
展开全文
问题信息
位运算
基础数学
难度:
261条回答
81收藏
20515浏览
热门推荐
通过挑战的用户
查看代码
CITYHUA
2023-03-14 09:12:39
牛客76993...
2023-03-11 17:26:44
你的生活我的梦a
2023-03-09 11:23:36
牛客43854...
2023-03-08 17:18:28
刷了100道题...
2023-03-04 22:12:49
相关试题
牛牛的超市
动态规划
基础数学
评论
(5)
线段树编号问题
基础数学
评论
(2)
Primary Arithmetic
字符串
基础数学
位运算
评论
(39)
关于 defer 语句的参数求值时...
Go
评论
(1)
Spring容器启动时,BeanF...
Spring
评论
(1)
八进制
扫描二维码,关注牛客网
意见反馈
下载牛客APP,随时随地刷题
7 8 9
7 10 11