Skip to content

Commit 3d9b6d2

Browse files
authored
Update Fair Playoff.cpp
1 parent b630e20 commit 3d9b6d2

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Arrays/Fair Playoff.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
1-
/* Example:
1+
/* Problem Statement:
2+
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.
3+
4+
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 si and all skill levels are pairwise different (i. e. there are no two identical values in the array s).
5+
6+
The tournament is called fair if the two players with the highest skills meet in the finals.
7+
8+
Determine whether the given tournament is fair.
9+
10+
Example:
211
312
Input:
413
4

0 commit comments

Comments
 (0)