Solutions are presented as using the least memory and the fastest execution time. It also takes the top
10 most recent solutions from each language. If you want to limit to a specific index, click the
"Solved" button and go to that problem.
Problems
B'Four players participate in the playoff tournament. The tournament is held according to the following scheme: the first player will play with the second, and the third player with the fourth, then the winners of the pairs will play in the finals of the tournament. It is known that in a match between two players, the one whose skill is greater will win. The skill of the i -th player is equal to s_i and all skill levels are pairwise different (i. xe2 x80 x89e. there are no two identical values in the array s ). The tournament is called fair if the two players with the highest skills meet in the finals. Determine whether the given tournament is fair. The first line contains a single integer t ( 1 <= t <= 10^4 ) -- the number of test cases. A single line of test case contains four integers s_1, s_2, s_3, s_4 ( 1 <= s_i <= 100 ) -- skill of the players. It is guaranteed that all the numbers in the array are different. For each testcase, output YES if the tournament is fair, or NO otherwise. Consider the example: '... |
Tutorials
Submissions
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
118437587 |
SAIANIL |
A |
June 4, 2021, 4:30 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118455806 |
abhinava_kv |
A |
June 4, 2021, 7:56 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118465793 |
milan_s1 |
A |
June 5, 2021, 2:52 a.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118435565 |
sravika_123 |
A |
June 4, 2021, 4:24 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118437052 |
deepthi004 |
A |
June 4, 2021, 4:28 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118437467 |
Shainitha |
A |
June 4, 2021, 4:29 p.m. |
OK |
GNU C11 |
TESTS |
2 |
31 |
0 |
|
|
118452604 |
Bhullar_cl |
A |
June 4, 2021, 6:58 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
118444092 |
murali_33 |
A |
June 4, 2021, 5:06 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
118442429 |
Sadir5 |
A |
June 4, 2021, 4:52 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
118456661 |
Aryan2020 |
A |
June 4, 2021, 8:18 p.m. |
OK |
GNU C11 |
TESTS |
2 |
46 |
0 |
|
|
118463349 |
andreslel |
A |
June 5, 2021, 1:37 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118463110 |
syk070531 |
A |
June 5, 2021, 1:24 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118462840 |
abaabaxxx |
A |
June 5, 2021, 1:11 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118461834 |
LinkZelda |
A |
June 5, 2021, 12:13 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118473766 |
CaiXY06 |
A |
June 5, 2021, 5:42 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118466557 |
fhq_treap |
A |
June 5, 2021, 3:14 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118466138 |
Tommy0103 |
A |
June 5, 2021, 3:02 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118465989 |
lhq_djuanlao |
A |
June 5, 2021, 2:57 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118465807 |
zhenweizhang |
A |
June 5, 2021, 2:53 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118463695 |
DJRzjl |
A |
June 5, 2021, 1:51 a.m. |
OK |
GNU C++11 |
TESTS |
2 |
15 |
0 |
|
|
118462499 |
Sagor_1703011 |
A |
June 5, 2021, 12:52 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
0 |
102400 |
|
|
118466927 |
sahooc_69 |
A |
June 5, 2021, 3:23 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118471367 |
swati1411 |
A |
June 5, 2021, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118467987 |
dintComeSoFarToStopHere |
A |
June 5, 2021, 3:50 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118467183 |
spacemonk |
A |
June 5, 2021, 3:30 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118471364 |
hardy_9795 |
A |
June 5, 2021, 5:02 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118470134 |
rashig123 |
A |
June 5, 2021, 4:39 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118469477 |
the112345prince22 |
A |
June 5, 2021, 4:25 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118469273 |
nidhishp1407 |
A |
June 5, 2021, 4:20 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118468139 |
preetham |
A |
June 5, 2021, 3:54 a.m. |
OK |
GNU C++14 |
TESTS |
2 |
15 |
0 |
|
|
118465213 |
coder_vedant |
A |
June 5, 2021, 2:40 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
0 |
0 |
|
|
118473607 |
harishkv11 |
A |
June 5, 2021, 5:39 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118474935 |
kaustubh.p16 |
A |
June 5, 2021, 6 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118474928 |
incogn1to |
A |
June 5, 2021, 6 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118474899 |
DEathkNIghtS |
A |
June 5, 2021, 5:59 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118474717 |
Moynul_Islam |
A |
June 5, 2021, 5:57 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118472822 |
lordronz |
A |
June 5, 2021, 5:27 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118472613 |
tthachbeo |
A |
June 5, 2021, 5:24 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118472391 |
SouLPegasuS |
A |
June 5, 2021, 5:20 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118471930 |
QZSRY |
A |
June 5, 2021, 5:13 a.m. |
OK |
GNU C++17 |
TESTS |
2 |
15 |
0 |
|
|
118457695 |
mohammad_reza |
A |
June 4, 2021, 8:49 p.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
118470850 |
Archi |
A |
June 5, 2021, 4:52 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
0 |
0 |
|
|
118470268 |
priyanshu_x |
A |
June 5, 2021, 4:42 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118470549 |
harsh639 |
A |
June 5, 2021, 4:47 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118470555 |
Ayu0809 |
A |
June 5, 2021, 4:47 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118472980 |
Arceus03 |
A |
June 5, 2021, 5:29 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118474771 |
NAMIKazE_13 |
A |
June 5, 2021, 5:57 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118474871 |
apurv001 |
A |
June 5, 2021, 5:59 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118469552 |
cosinechicken |
A |
June 5, 2021, 4:27 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118466531 |
Breaker-iwnL- |
A |
June 5, 2021, 3:13 a.m. |
OK |
GNU C++17 (64) |
TESTS |
2 |
15 |
0 |
|
|
118433170 |
naivesque |
A |
June 4, 2021, 4:17 p.m. |
OK |
Go |
TESTS |
2 |
30 |
0 |
|
|
118458126 |
rafee69029 |
A |
June 4, 2021, 9:03 p.m. |
OK |
Java 11 |
TESTS |
2 |
155 |
0 |
|
|
118442881 |
algothink |
A |
June 4, 2021, 4:56 p.m. |
OK |
Java 11 |
TESTS |
2 |
156 |
0 |
|
|
118468992 |
RegalBeast |
A |
June 5, 2021, 4:14 a.m. |
OK |
Java 11 |
TESTS |
2 |
170 |
0 |
|
|
118461903 |
rgoewedky |
A |
June 5, 2021, 12:17 a.m. |
OK |
Java 11 |
TESTS |
2 |
171 |
0 |
|
|
118443005 |
godfather9 |
A |
June 4, 2021, 4:57 p.m. |
OK |
Java 11 |
TESTS |
2 |
171 |
0 |
|
|
118443526 |
richikchanda1999 |
A |
June 4, 2021, 5:01 p.m. |
OK |
Java 11 |
TESTS |
2 |
186 |
0 |
|
|
118451703 |
PetrNguyen |
A |
June 4, 2021, 6:42 p.m. |
OK |
Java 11 |
TESTS |
2 |
186 |
0 |
|
|
118442143 |
tsaraf |
A |
June 4, 2021, 4:50 p.m. |
OK |
Java 11 |
TESTS |
2 |
186 |
0 |
|
|
118456560 |
L_MESSI_10 |
A |
June 4, 2021, 8:15 p.m. |
OK |
Java 11 |
TESTS |
2 |
186 |
7168000 |
|
|
118461358 |
_Body |
A |
June 4, 2021, 11:45 p.m. |
OK |
Java 11 |
TESTS |
2 |
187 |
0 |
|
|
118457704 |
bubnov |
A |
June 4, 2021, 8:50 p.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
118451655 |
LightSam |
A |
June 4, 2021, 6:41 p.m. |
OK |
Java 8 |
TESTS |
2 |
93 |
0 |
|
|
118435549 |
jagdish1998 |
A |
June 4, 2021, 4:24 p.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
118448211 |
RonWonWon |
A |
June 4, 2021, 5:52 p.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
118443395 |
Adi_7861 |
A |
June 4, 2021, 5 p.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
118467722 |
bsaiteja35 |
A |
June 5, 2021, 3:44 a.m. |
OK |
Java 8 |
TESTS |
2 |
109 |
0 |
|
|
118443460 |
bhavanas |
A |
June 4, 2021, 5 p.m. |
OK |
Java 8 |
TESTS |
2 |
155 |
0 |
|
|
118474244 |
nattu179 |
A |
June 5, 2021, 5:49 a.m. |
OK |
Java 8 |
TESTS |
2 |
155 |
0 |
|
|
118473031 |
dkakshay95 |
A |
June 5, 2021, 5:30 a.m. |
OK |
Java 8 |
TESTS |
2 |
171 |
0 |
|
|
118453564 |
harsh_03_m |
A |
June 4, 2021, 7:15 p.m. |
OK |
Java 8 |
TESTS |
2 |
171 |
0 |
|
|
118451297 |
Enerdgazer |
A |
June 4, 2021, 6:36 p.m. |
OK |
Kotlin |
TESTS |
2 |
218 |
102400 |
|
|
118458520 |
Potassium |
A |
June 4, 2021, 9:16 p.m. |
OK |
Kotlin |
TESTS |
2 |
233 |
1945600 |
|
|
118442338 |
TRR |
A |
June 4, 2021, 4:52 p.m. |
OK |
Mono C# |
TESTS |
2 |
93 |
2355200 |
|
|
118463922 |
AyushDaga |
A |
June 5, 2021, 2 a.m. |
OK |
MS C++ |
TESTS |
2 |
46 |
0 |
|
|
118460225 |
Sam03i09sh |
A |
June 4, 2021, 10:30 p.m. |
OK |
MS C++ |
TESTS |
2 |
61 |
0 |
|
|
118450839 |
kr_unik |
A |
June 4, 2021, 6:29 p.m. |
OK |
MS C++ |
TESTS |
2 |
62 |
0 |
|
|
118448613 |
Tiran_- |
A |
June 4, 2021, 5:57 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
46 |
0 |
|
|
118468333 |
Ke1 |
A |
June 5, 2021, 3:59 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
46 |
307200 |
|
|
118436258 |
quannguyen33 |
A |
June 4, 2021, 4:26 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
61 |
0 |
|
|
118447593 |
KuzminArtem |
A |
June 4, 2021, 5:44 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
61 |
0 |
|
|
118444494 |
yashsharma123 |
A |
June 4, 2021, 5:09 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
61 |
0 |
|
|
118467178 |
fjvzr |
A |
June 5, 2021, 3:29 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
62 |
0 |
|
|
118467909 |
NamaB12 |
A |
June 5, 2021, 3:49 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
77 |
0 |
|
|
118464808 |
bebaoboy |
A |
June 5, 2021, 2:29 a.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
77 |
0 |
|
|
118456112 |
sakshamchoudhary |
A |
June 4, 2021, 8:03 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
77 |
0 |
|
|
118439754 |
yashsharma123 |
A |
June 4, 2021, 4:34 p.m. |
OK |
MS C++ 2017 |
TESTS |
2 |
77 |
0 |
|
|
118441053 |
shad_kidwai |
A |
June 4, 2021, 4:43 p.m. |
OK |
.NET Core C# |
TESTS |
2 |
108 |
3072000 |
|
|
118453660 |
MinorMiracle |
A |
June 4, 2021, 7:17 p.m. |
OK |
.NET Core C# |
TESTS |
2 |
124 |
2969600 |
|
|
118447816 |
suhaibhusssain |
A |
June 4, 2021, 5:47 p.m. |
OK |
Node.js |
TESTS |
2 |
202 |
4915200 |
|
|
118467716 |
Liberator187 |
A |
June 5, 2021, 3:44 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
202 |
6144000 |
|
|
118447678 |
_V3NOM_ |
A |
June 4, 2021, 5:45 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
233 |
9420800 |
|
|
118443989 |
Munchy_1 |
A |
June 4, 2021, 5:05 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
233 |
202547200 |
|
|
118447057 |
The_Apurv_Rathore |
A |
June 4, 2021, 5:38 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
248 |
4608000 |
|
|
118466854 |
Mistaek |
A |
June 5, 2021, 3:21 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
264 |
5324800 |
|
|
118471468 |
yowq |
A |
June 5, 2021, 5:04 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
265 |
9420800 |
|
|
118468700 |
songtae |
A |
June 5, 2021, 4:08 a.m. |
OK |
PyPy 3 |
TESTS |
2 |
295 |
7475200 |
|
|
118457370 |
Zecx_troy-1 |
A |
June 4, 2021, 8:39 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
296 |
9011200 |
|
|
118448062 |
future_me |
A |
June 4, 2021, 5:50 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
312 |
9523200 |
|
|
118458885 |
iamsarvesh |
A |
June 4, 2021, 9:31 p.m. |
OK |
PyPy 3 |
TESTS |
2 |
342 |
6348800 |
|
|
118474861 |
sujwal |
A |
June 5, 2021, 5:59 a.m. |
OK |
Python 3 |
TESTS |
2 |
124 |
0 |
|
|
118463852 |
frostbyte2103 |
A |
June 5, 2021, 1:57 a.m. |
OK |
Python 3 |
TESTS |
2 |
124 |
0 |
|
|
118468470 |
Razorve |
A |
June 5, 2021, 4:02 a.m. |
OK |
Python 3 |
TESTS |
2 |
124 |
102400 |
|
|
118449948 |
The_KingSlayer_ |
A |
June 4, 2021, 6:16 p.m. |
OK |
Python 3 |
TESTS |
2 |
124 |
307200 |
|
|
118447661 |
The_KingSlayer_ |
A |
June 4, 2021, 5:45 p.m. |
OK |
Python 3 |
TESTS |
2 |
139 |
307200 |
|
|
118442266 |
ambarsariyaMadarchod |
A |
June 4, 2021, 4:51 p.m. |
OK |
Python 3 |
TESTS |
2 |
139 |
307200 |
|
|
118441239 |
Eagle_A_99 |
A |
June 4, 2021, 4:44 p.m. |
OK |
Python 3 |
TESTS |
2 |
139 |
307200 |
|
|
118468751 |
The_KingSlayer_ |
A |
June 5, 2021, 4:09 a.m. |
OK |
Python 3 |
TESTS |
2 |
139 |
307200 |
|
|
118435890 |
sumanth_64 |
A |
June 4, 2021, 4:25 p.m. |
OK |
Python 3 |
TESTS |
2 |
155 |
0 |
|
|
118469262 |
n4t4L |
A |
June 5, 2021, 4:20 a.m. |
OK |
Python 3 |
TESTS |
2 |
170 |
0 |
|
|
118469153 |
The_KingSlayer_ |
A |
June 5, 2021, 4:18 a.m. |
OK |
Python 3 + libs |
TESTS |
2 |
155 |
0 |
|
|
118442828 |
nurik90 |
A |
June 4, 2021, 4:55 p.m. |
OK |
Ruby 3 |
TESTS |
2 |
967 |
102400 |
|
|
118462273 |
nikgaevoy |
A |
June 5, 2021, 12:40 a.m. |
OK |
Rust |
TESTS |
2 |
109 |
0 |
|
|
remove filters
Back to search problems