BestCoder Round #29 1001 GTY's math problem

网友投稿 207 2022-09-19

BestCoder Round #29 1001 GTY's math problem

GTY's math problem

Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 0    Accepted Submission(s): 0

Problem Description

a,b,c,d. The math teacher wants GTY to compare ab with cd. Because GTY never does his homework, he can't figure out this problem! If GTY can't answer this question correctly, he will have to do his homework. So help him!

Input

1≤a,b,c,d≤1000)separated by spaces. Please process to the end of file.

Output

ab>cd , print '>'. if ab

Sample Input

2 1 1 2 2 4 4 2 10 10 9 11

Sample Output

#include #include #include #include #include #include #include #include #include #include #include #include using namespace std;#define Max(a,b) a>b?a:b#define Min(a,b) a>b?b:a#define mem(a,b) memset(a,b,sizeof(a))int dir[4][2]= {{1,0},{-1,0},{0,1},{0,-1}};int main(){ int a,b,c,d; double ans1,ans2; while(scanf("%d %d %d %d",&a,&b,&c,&d) != -1) { ans1 = 1.0 * b * log10(a); ans2= 1.0 * d * log10(c); if(fabs(ans1 - ans2) < 1e-10) printf("=\n"); else if(ans1 - ans2 > 1e-10) printf(">\n"); else printf("<\n"); } return 0;}

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:家里旧电脑改造媒体中心打造最强播放器geexbox 转载
下一篇:NYOJ952--最大四边形--叉积分成三角形
相关文章

 发表评论

暂时没有评论,来抢沙发吧~