pku 2551 Ones
来源:互联网 发布:嵌入式软件安装 编辑:程序博客网 时间:2024/06/15 02:38
http://acm.pku.edu.cn/JudgeOnline/problem?id=2551
题意:有些数值时由全1组成的、给定一个数字n、求出是n的倍数的最小全1数字是几位数。
#include <stdio.h>int main(){__int64 number,a;int dig;while(scanf("%I64d",&number) != EOF){a = dig = 1;while(a){a = a*10 + 1;dig ++;a = a%number;}printf("%d/n",dig);}return 0 ;}
/*
3 7 9901
3612
*/
- pku 2551 Ones
- POJ 2551 Ones
- POJ 2551 Ones
- POJ 2551 ONES
- POJ 2551 ONES
- poj 2551 Ones
- poj 2551 Ones
- POJ 2551 ones
- poj 2551 Ones
- POJ 2551 Ones
- POJ - 2551 Ones
- POJ 2551 Ones
- Ones
- Ones
- Ones
- ones
- ones
- ones
- 关键字volatile的作用和三个不同的应用场合
- 手动创建数据失败,日志出如下错误ORA-00604,ORA-00406
- Database Abstraction with Zend_Db - Part 2
- Visual Studio 2008 Shell
- 6540和1457说明房价泡沫即将破灭
- pku 2551 Ones
- jqgrid实现客户端数组的CRUD
- LDD学习课程之二(2)
- MapReduce:超大机群上的简单数据处理
- Bigtable:一个分布式的结构化数据存储系统
- android:软件的安装和卸载源代码
- Intel多核编程培训小结
- [Python Challenge] - Q3
- 连续正整数的高次方的快速连加方法