poj 百练2734(基础题)
来源:互联网 发布:自动记账软件 编辑:程序博客网 时间:2024/05/21 16:56
#include <fstream>#include <string>#include <cstdio>#include <stack>using namespace std;#define _cdebbug//全局数据int main(){//重定向#ifdef _cdebbugfreopen("F:\\input.txt","r",stdin );#endif long shu;long temp;int yushu;stack<int> stk;scanf("%d",&shu);while (shu != 0){yushu = shu % 8;stk.push(yushu);shu = shu / 8;}while (!stk.empty()){printf("%d",stk.top());stk.pop();}printf("\n");//解除重定向关闭文件#ifdef _cdebbugfclose(stdin); #endifreturn 0 ;}
能有比这更基础的题目么
虽然基础,复习十进制转换任意进制方法:
除n取余到0,逆序排列
- poj 百练2734(基础题)
- poj 百练2972(基础题)
- poj 百练2973(基础题)
- poj 百练(2735)基础题
- poj 百练 2798(基础题)
- poj 百练 2742(基础题)
- poj 百练2974(基础题)
- poj 百练2744( 基础题)
- poj 百练2975(基础题)
- poj 百练 2743(基础题)
- poj 百练 2976(基础题)
- poj 百练 2819(基础题)
- poj 百练2820(基础题)
- poj 百练 2797(基础题)
- poj 百练2799(基础题)
- poj 百练 2765(基础题)有难度
- C语言I/O小结 poj百练2804字典(基础题)
- poj 百练 2818
- each
- DIV CSS设计时IE6、IE7、FF 与兼容性有关的特性
- 第八周任务二
- Aptana 如何修改新建的 HTML页面
- Office中同音字修改
- poj 百练2734(基础题)
- DIV 层被FLASH遮挡了,怎么调整?
- flash透明
- IE6 透明PNG图片BUG解决办法
- 网页转换时的过渡效果
- 百度面试
- 好乐买总裁李树斌:10亿,突破技术瓶颈
- js 取表格中的任意列值
- 防止空连接 “#“ 返回到页面顶端的5种方法