Browse · MathNet
Print50th Mathematical Olympiad in Ukraine, Fourth Round (March 23, 2010)
Ukraine 2010 counting and probability
Problem
Andriy has cards which are the same from one side, and numbers are written on the other side. Lesya has the same cards but with numbers . Lesya places cards with numbers down (so we can not see them at the beginning), after that Andriy places his cards on the Lesya's (so, each Lesya's card is covered by exactly one Andriy's card). So we get pairs of cards. After that, we compare numbers in pairs and add point to the person, who has greater number. Andriy knows, that Lesya places cards in increasing order starting from some place and after she gets , Lesya starts placing cards in increasing order again, starting from the least number which has not appeared before. For example: . Andriy wants to get as many points as he can. What is the maximum number of points can he guarantee to get? Answer: points.
Solution
In order to get at least points Andriy can place his cards as follows, starting from the left: . We prove by induction, that he gets points in this case. Lesya has options to place her cards and we present all of them in the following table:
If we compare Andriy's variant with the first row, we obtain: and . Hence, Andriy gets exactly in the first columns. This is our base. Let us suppose, that in -th row Andriy gets points.
Let us prove that in -th row he gets the same number of points. We have that the number of points decreases by at the beginning of the row and increases by at the end, comparable to -th row.
We now show that Andriy can not get better result. Lesya knows the position of Andriy's cards, hence, she can choose the row which gives maximum points to her. So we now compute how many points can Andriy get over all Lesya's options. Let us place all Andriy's cards under our table.
We compute total number of points: when we have the number , Andriy will get points, Andriy's number will get points, and so on, number will get points. So our total number is points.
Hence, Andriy's average number of points over all Lesya's options is , which proves our result.
| 2 | 4 | 6 | 2008 | 2010 |
|---|---|---|---|---|
| 4 | 6 | 8 | 2010 | 2 |
| 6 | 8 | 10 | 2 | 4 |
| 2008 | 2010 | 2 | 2004 | 2006 |
| 2010 | 2 | 4 | 2006 | 2008 |
Let us prove that in -th row he gets the same number of points. We have that the number of points decreases by at the beginning of the row and increases by at the end, comparable to -th row.
We now show that Andriy can not get better result. Lesya knows the position of Andriy's cards, hence, she can choose the row which gives maximum points to her. So we now compute how many points can Andriy get over all Lesya's options. Let us place all Andriy's cards under our table.
We compute total number of points: when we have the number , Andriy will get points, Andriy's number will get points, and so on, number will get points. So our total number is points.
Hence, Andriy's average number of points over all Lesya's options is , which proves our result.
Final answer
502
Techniques
Counting two waysExpected valuesGames / greedy algorithmsInduction / smoothing