Time limit: 1 second Memory limit: 50 MB Write a program that takes n n and coordinates…
- User
Time limit: 1 second Memory limit: 50 MB Write a program that takes n n and coordinates n n points (respectively x and y) declare to which of the graphs all these points can belong and print the number of the graph and if it does not belong to any of them, print the statement No ones. In order for a group of points to belong to a graph, it is enough for each of the n points that the difference between the y point and the y graph at that point is less than or equal to 0.2. Define a separate function for each of the following equations.
y
x
[ x ] y=x−[x] y
x 2 + x y=x 2 +x y
∣
x 3 + 1 ∣ + x 3 y=∣−x 3 +1∣+x 3
input In the first line of input number n n has come.
in n n next line, in each line there are 2 rational numbers that specify the coordinates of the points. (The absolute value of all the length and width of the points is not more than 10. 1 ≤ n ≤ 10 1≤n≤10
output Print the requested information in the output.
Example Sample entry 1 3 0.5 0.6 0.4 0.5 1.1 2.4 Plain text Sample output 1 2 Plain text Sample input 2 2 0.0 1.1.3 1.0 0.7 Plain text Sample output 2 No ones write in java
- Assistant