Parallelogram
4 numbers a, b, c, d, defining lengths of pieces are set. Define, is it possible to form a parallelogram from these pieces.
Specifications
Input
In a unique line set 4 numbers through a blank.
Output
Deduce in a unique line a word "YES" if it is possible to form a parallelogram or "NO" (without inverted commas) otherwise.
Problem information
Time Limit: 0.5 secondsMemory Limit: 64 MB
Balls for the passed test: 1.66667
Complexity: 14% 831/963
Source: SFE-2010 Variant 29
Classes: Geometry, Beginners
Example
Example inputSample 1 2 4 2 4 Sample 2 2 4 2.5 4 |
Example outputSample 1 YES Sample 2 NO |
| ← The sum of the largest and smallest | Problems | Mobile Phone → |
