players take part in the season finisher competition. The competition is held by the accompanying plan: the principal player will play with the second, and the third player with the fourth, then, at that point, the victors of the sets will play in the finals of the competition.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Correct answer will be upvoted else downvoted.

 

 

Four players take part in the season finisher competition. The competition is held by the accompanying plan: the principal player will play with the second, and the third player with the fourth, then, at that point, the victors of the sets will play in the finals of the competition. 

 

It is realized that in a match between two players, the one whose expertise is more noteworthy will win. The ability of the I-th player is equivalent to si and all expertise levels are pairwise unique (i. e. there are no two indistinguishable qualities in the exhibit s). 

 

The competition is called reasonable if the two players with the most elevated abilities meet in the finals. 

 

Decide if the given competition is reasonable. 

 

Input :The principal line contains a solitary integer t (1≤t≤104) — the number of experiments. A solitary line of experiment contains four integers s1,s2,s3,s4 (1≤si≤100) — ability of the players. It is ensured that every one of the numbers in the cluster are unique. 

Output :For each testcase, output YES if the competition is reasonable, or NO in any case.

Expert Solution
steps

Step by step

Solved in 4 steps with 1 images

Blurred answer
Similar questions
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education