GUPTA MECHANICAL

IN THIS WEBSITE I CAN TELL ALL ABOUT TECH. TIPS AND TRICKS APP REVIEWS AND UNBOXINGS ALSO TECH. NEWS .............

Tuesday, 14 June 2022

[Solution] Marathon Codeforces Solution | Codeforces Problem Solution 2022

A. Marathon
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output

You are given four distinct integers abcd.

Timur and three other people are running a marathon. The value a is the distance that Timur has run and bcd correspond to the distances the other three participants ran.

Solution Click Below:-  CLICK HERE

Output the number of participants in front of Timur.

Input

The first line contains a single integer t (1t104) — the number of test cases.

The description of each test case consists of four distinct integers abcd (0a,b,c,d104).


Output

For each test case, output a single integer — the number of participants in front of Timur.

No comments:

Post a Comment