hdu-2099-整除的尾数
来源:互联网 发布:php判断是否为全空格 编辑:程序博客网 时间:2024/04/28 08:36
#include<stdio.h>
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)&&a+b)
{
int i,j,c[100];
for(j=0,i=0;i<=99;i++)
if((a*100+i)%b==0)
c[j++]=i;
for(i=0;i<j-1;i++)
if(c[i]<10)
printf("0%d ",c[i]);
else
printf("%d ",c[i]);
if(c[j-1]<10)
printf("0%d\n",c[j-1]);
else
printf("%d\n",c[j-1]);
}
return 0;
}
int main()
{
int a,b;
while(scanf("%d%d",&a,&b)&&a+b)
{
int i,j,c[100];
for(j=0,i=0;i<=99;i++)
if((a*100+i)%b==0)
c[j++]=i;
for(i=0;i<j-1;i++)
if(c[i]<10)
printf("0%d ",c[i]);
else
printf("%d ",c[i]);
if(c[j-1]<10)
printf("0%d\n",c[j-1]);
else
printf("%d\n",c[j-1]);
}
return 0;
}
- HDU 2099 整除的尾数
- HDU 2099 整除的尾数
- hdu 2099 整除的尾数
- hdu-2099-整除的尾数
- HDU 2099 整除的尾数
- 整除的尾数(HDU 2099)
- HDU 2099 整除的尾数
- hdu-2099-整除的尾数
- hdu 2099 整除的尾数
- hdu 2099整除的尾数
- HDU~2099 整除的尾数
- hdu 2099 整除的尾数
- HDU 2099 整除的尾数
- HDU 2099 整除的尾数
- HDU 2099 -- 整除的尾数
- HDU 2099 整除的尾数
- HDU 2099 整除的尾数
- hdu 2099 整除的尾数
- [C++] STL Map的简单用法
- 人临终前会后悔的25件事。。。
- 那些年曾经看过的电影之猛男系列
- MFC/C++/C中字符类型CString, int, string, char*之间的转换
- 1010 A+B for Input-Output Practice (I)
- hdu-2099-整除的尾数
- xml 添加xsi:schemaLocation 属性
- cocos2dx配置VS13开发环境问题
- Java正则表达式实现web端输入验证
- cocos2d-x 使用schedule实现倒计时
- 搜狐研发
- 1012 A + B的输入输出练习(三)
- jsp验证码
- 第十三周上机实践项目——最大公约数