3059 - I2P(I)2024_Yang_lab1 Scoreboard

Time

2024/09/10 22:00:00 2024/09/10 22:01:00

Clarification

# Problem Asker Description Reply Replier Reply Time For all team

# Problem Pass Rate (passed user / total user)
12872 Ruby and Sapphire
14393 Yorishige's Advanced Challenge

12872 - Ruby and Sapphire   

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




14393 - Yorishige's Advanced Challenge   

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(x, y1) and Q(x, 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 x, y.
The second line contains two integers x, y.

Constraints

  • x1, x2 ≠ 0, -10≤ 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.

Sample Input  Download

Sample Output  Download

Tags




Discuss