hdoj-5605-geometry
来源:互联网 发布:淘宝达人报名入口 编辑:程序博客网 时间:2024/05/16 20:29
Problem Description
There is a point P at coordinate (x,y) .
A line goes through the point, and intersects with the postive part ofX,Y axes at point A,B .
Please calculate the minimum possible value of|PA|∗|PB| .
A line goes through the point, and intersects with the postive part of
Please calculate the minimum possible value of
Input
the first line contains a positive integer T,means the numbers of the test cases.
the next T lines there are two positive integers X,Y,means the coordinates of P.
T=500 ,0<X,Y≤10000 .
the next T lines there are two positive integers X,Y,means the coordinates of P.
Output
T lines,each line contains a number,means the answer to each test case.
Sample Input
12 1
Sample Output
4
带入推个数学公式就好了
#include<cstdio> #include<cstring> #include<cstdlib> #include<iostream> #include<algorithm> #include<cmath> using namespace std; int main() { int x,y; int t; scanf("%d",&t); while(t--) { scanf("%d%d",&x,&y); printf("%d\n",x*y*2); } }
0 0
- HDOJ 5605 geometry
- HDOJ 5605-geometry【数学】
- hdoj-5605-geometry
- hdoj geometry 5605 (简单数学规律)
- HDOJ 5298 Solid Geometry Homework
- hdoj 4932 Miaomiao's Geometry 【暴力枚举】
- HDU 5605 geometry
- HDU 5605 geometry
- 杭电5605 geometry
- HDU 5605 geometry
- HDU 5605 geometry
- geometry
- geometry
- geometry
- Geometry
- HDOJ 1086 You can Solve a Geometry Problem too
- hdu/hdoj 1086 You can Solve a Geometry Problem too
- HDOJ HDU 1086 You can Solve a Geometry Problem too
- JAVA中ListIterator和Iterator详解与辨析
- 如何将天天模拟器连接到eclipse中
- Serializable和Parcelable的用法
- debian8安装完之后要做的N件事
- git基本使用
- hdoj-5605-geometry
- 安卓网络监听
- 模拟实现库函数——printf
- 回顾微软编程之美2016复赛
- String——count and say
- 大搬家
- 文章标题
- Java实验5 GUI编程
- WMWF