HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Geometry > problem:


50667 - Intersecting Line Segments

Guest
• Discussion of problem (1)

Section problems

• 51034 - Area of 3 Shapes
• 50349 - Area of a Triangle
• 50348 - Area and Perimeter of a Rec...
• 50354 - Intersecting Rectangles
• 50560 - Max Distance
• 50660 - Triangle and the point
• 50665 - Intersecting rectangles
• 50666 - The card and envelope
• 50667 - Intersecting Line Segm...
• Problem 2

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Автор: Фёдор Меньшиков, ВГПУ. Difficulty Gamma

Intersecting Line Segments

English translation is by Google Russian

Four points (integer coordinates) in a plane are given which represent the tips of two lines in a Cartesian coordinate system. You are asked to determine whether these lines intersect or not.

Input specification
The first line contains the coordinates of the first tip of the first line segment, the second - the second end of the first line segment. The third and fourth points- the coordinates of the ends of the second line segment.

Output specification
Display the word "Yes", followed by an end of line, if the two lines intersect; or the word "No" followed by an end of line - otherwise.
Restrictions coordinates are integers and do not exceed 10.000.


Sample Input 1 Sample Input 2
0 0
1 0
1 0
1 1
0 0
1 0
2 0
3 0
Sample Output 1 Sample Output 1
Yes
No

Для отправки решений необходимо выполнить вход.

www.contester.ru