As the time goes by,Orz Pandas' skill are improving.They found that if three Orz Pandas form a triangle, the person in the triangle will be orzed completely.So Orz Pandas want to know whether a person is in their formation.
1125: Judgement of Orz Pandas
时间限制:1000 ms 内存限制:128 MB提交:69 解决:29
[ 提交][ 状态][ 讨论版]
题目描述
输入
There are several test cases, process to EOF, about 20 test cases.
For each test case, one line contains eight real numbers x1,y1,x2,y2,x3,y3,x,y.
Orz pandas are at points (x1,y1),(x2,y2),(x3,y3);
The person are at point (x,y)
Every coordinate is bigger than -1001 and smaller than 1001.
输出
For each test case, output one line.If the person is in the triangle(include at the edge), output"Orz".Otherwise output"stO"(without quotation marks).
样例输入
0 0 0.2 0 0.1 0.3 0.1 0.2 0 0 0.2 0 0.1 0.3 0.1 0.4
样例输出
Orz stO
提示
来源
한국어中文فارسیEnglishไทย
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2024Xidian Programming Contest Online JudgeTEAM
GPL2.02003-2014HUSTOJ ProjectTEAM
Anything about the Problems, Please Contact Admin:admin
All Copyright Reserved 2010-2024Xidian Programming Contest Online JudgeTEAM
GPL2.02003-2014HUSTOJ ProjectTEAM