水题Conductors URAL1011
来源:互联网 发布:游戏官方网站源码 编辑:程序博客网 时间:2024/05/23 01:37
#include <stdio.h>
int main()
{
double a,b;
double aa,bb;
int fr,ed;
int i;
while(scanf("%lf%lf",&a,&b)!=-1)
{
for(i=1;;i++)
{
aa=i*a/100;
bb=i*b/100;
fr=(int)(aa);
ed=(int)(bb);
if((fr<ed)&&(bb-ed>1e-8)&&(aa-fr>1e-8)) //注意精度
break;
}
printf("%d\n",i);
}
return 0;
}
int main()
{
double a,b;
double aa,bb;
int fr,ed;
int i;
while(scanf("%lf%lf",&a,&b)!=-1)
{
for(i=1;;i++)
{
aa=i*a/100;
bb=i*b/100;
fr=(int)(aa);
ed=(int)(bb);
if((fr<ed)&&(bb-ed>1e-8)&&(aa-fr>1e-8)) //注意精度
break;
}
printf("%d\n",i);
}
return 0;
}
0 0
- URAL1011 - Conductors - 水题
- 水题Conductors URAL1011
- URAL1011:Conductors
- 1011. Conductors
- ural 1011 Conductors
- URAL 1011 Conductors
- ironic multi conductors realization
- URAL 1011|Conductors|暴力
- [解题报告]Ural 1011 Conductors
- ural 1011. Conductors 打表
- [TED] Lead Like a Great Conductors
- Caliburn Micro Part 6: Introduction to Screens and Conductors
- 算法艺术与信息学竞赛习题1.2.4——售货员(ural1011 )
- 水题
- 水题
- 水题
- 水题
- 【水题】
- android蓝牙4.0使用方法
- JAVA基础回顾1 遍历List Set 和Map集合的所有方法
- Jenkins控制台中乱码问题
- Informatica Update 机制详解
- C#中的多态性
- 水题Conductors URAL1011
- HDU 1856(求并查集里元素的个数)
- 树-堆结构练习——合并果子之哈夫曼树
- 利用MFC读取Excel文件
- 计算器(java)
- nformatica学习笔记
- hdu4923 Room and Moor 单调栈
- JAVA容器笔记
- 显示意图激活另外一个activity(检查用户的网络情况2.3.3)