Far from origin Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution
This post is all about the solution of the Far from origin Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution.
Problem Statement:
On the coordinate plane, Alice, Bob, and Chef are standing. Chef is at the origin (coordinates (0, 0)(0, 0)), while Alice and Bob are at (X 1, Y 1)(X), respectively.
Determine who is farther away from Chef among Alice and Bob, or whether both are the same distance away from Chef.
Format of Input
The number of test cases will be indicated by a single integer TT in the first line of input.
Each test case's first and only line contains four space-separated integers X 1, Y 1, X 2,X, and Y 2Y 2 — Alex and Bob's coordinates.
Format of Input :
The number of cases will be indicated by a single integer TT in the first line of input.
Each test case's first and only line includes 2 space-separated integers NN and MM — the number of apples and oranges, respectively.
Format of the Output :
For every test case, output YES if the group is perfect and NO or else on a new line.
Each character can be printed in either uppercase or lowercase. The strings YES, yes, Yes, and yES, for example, are all considered identical.
Also Check this out:-
Overspeeding Fine Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution, Click Here
Negative Product Codechef January Long 2022 (Rated for Divs 3 & 4) problem solution, Click Here
0 Comments