hdu 1701 ACMer
2015-07-17 14:05
323 查看
[code]#include <stdio.h> #include <string.h> #include <iostream> #include <algorithm> #include <vector> #include <queue> #include <set> #include <map> #include <string> #include <math.h> #include <stdlib.h> #include <time.h> using namespace std; int main() { int _,i; double n,m; scanf("%d",&_); while(_--) { scanf("%lf%lf",&n,&m); for(i=1;;i++) { if(((int)(1.0*m*i/100)-(int)(1.0*n*i/100))>=1) break; } printf("%d\n",i); } return 0; }
相关文章推荐
- hdu 1711 Number Sequence(kmp)
- awk中的NR FNR
- HDU 5090 Game with Pearls (贪心)
- Access操作类
- hdu 1711 Number Sequence(kmp)
- hdu 1701 ACMer
- win10家庭版升级专业版多少钱?win10家庭版升级专业版价格曝光
- Sublime Text 3 快捷键汇总
- 3个技巧让你正能量满满
- android:installLocation
- 虚拟机磁盘快照(vhd格式)
- 【工作日志】【asp】【05】err对象使用
- Eclipse Memory Analyzer简单使用笔记
- Windows主机端与自定义USB HID设备通信详解 .
- 给程序员第一天工作留下好印象的10个方式
- Chances Are,Your Biggest Problem Isn’t Technical
- crontab 定时任务
- mybatis There is no getter for property named 'xx' in 'class java.lang.String
- hadoop之MapReduce调用R的一次失败的总结~(续一)
- BP网络范例 MATLAB