[HdOJ]5170 GTY's math problem
来源:互联网 发布:淘宝泳衣女装连体 编辑:程序博客网 时间:2024/05/29 14:32
幂比较大小
取对数比较就好了log(ab)=b∗log(a),注意会有精度误差
#include <stdio.h>#include <math.h>int main(void){ double a,b,c,d; while(scanf("%lf %lf %lf %lf",&a,&b,&c,&d)!=EOF) { if(b*log(a)-d*log(c)>1e-10) { printf(">\n"); } else if(d*log(c)-b*log(a)>1e-10) { printf("<\n"); } else { printf("=\n"); } } return 0;}
0 0
- 【BestCoder】 HDOJ 5170 GTY's math problem
- [HdOJ]5170 GTY's math problem
- HDOJ——5170(GTY's math problem)
- HDU 5170 GTY's math problem
- HDU 5170 GTY's math problem
- HDU 5170 GTY's math problem
- HDU5170 GTY's math problem
- HDU5170 GTY's math problem
- HDU 5170 GTY's math problem (bsst code #29 1001)
- hdu 5170 GTY's math problem --精度控制
- HDU 5170 GTY's math problem 精度判断问题
- hdu 5170 GTY's math problem【精度控制】【思维】
- hdu 5170 GTY's math problem(数学)
- BestCoder #29 GTY's math problem
- 【CUGBACM15级BC第29场 A】hdu 5170 GTY's math problem
- BestCoder Round #29 1001GTY's math problem
- GTY's math problem (BestCoder Round #29 A)
- BestCoder Round#29 1001 GTY's math problem
- ROS, Pioneer, Multi-computer, interconnection
- TCP长连接与短连接的区别
- Android NDK 学习(4) 在eclipse中配置工具,方便开发
- ACM--steps--3.2.4--Humble Numbers
- dojo 跨域访问方法
- [HdOJ]5170 GTY's math problem
- YARN产生背景
- Gson 过滤字段的几种方法
- Longest Common Prefix - LeetCode
- VC 这个程序可能安装不正确,和***不兼容,既,和windows兼容性设置
- 【Java集合源码剖析】ArrayList源码剖析
- 1025_反转链表 (25)
- C语言学习三不同平台上的学习
- Android学习笔记 - ViewPager + Fragment实现滑动标签页