# | Problem | Pass Rate (passed user / total user) |
---|---|---|
12872 | Ruby and Sapphire |
|
14393 | Yorishige's Advanced Challenge |
|
Description
The prices of ruby and sapphire are 5$, 7$ respectively.
The total numbers of rubies and sapphires is N, and the overall value is M$.
How many rubies and how many sapphires are there?
Input
Two integers N, M, where 10,000 ≤ N, M ≤ 10,000
Output
Number of rubies and sapphires.
Note that there is a newline character at the end of the output.
Sample Input Download
Sample Output Download
Tags
Discuss
Description
Suwa Yorishige, excited by Tokiyuki's success in solving the assignment, decided to give him a more challenging task. Unsurprisingly, Tokiyuki couldn't solve it on his own and came back to seek your help.
Given two points P(x1 , y1) and Q(x2 , y2) on a plane, output the slopes between each point and the origin O(0, 0).
If the slopes of the two points are the same, output "yes"; otherwise, output "no".
Input
The first line contains two integers x1 , y1 .
The second line contains two integers x2 , y2 .
Constraints
-
x1, x2 ≠ 0, -109 ≤ x1, x2, y1, y2 ≤ 109.
Output
The first line outputs two floating-point numbers representing the slopes of P and Q with respect to O, separated by a space, rounded to three decimal places.
The second line outputs whether the slopes of the two points are the same. If they are the same, output "yes"; otherwise, output "no".
Please remember to print "\n" at the end.