Problem 46573. Determine the winner of a goofy golf tournament
- The golfer with the best score must have cheated, so that person is eliminated.
- The golfer with the second-best score must have choked (definition, example), so that person is eliminated.
- Therefore, the golfer with the third-best score wins.
Solution Stats
Problem Comments
-
2 Comments
The problem description is a bit unclear. Suppose that x = [70 71 73 74 73 70 72]. Then golfer #7 has the third best score; but since there's two golfers tied for first place (#1 and #6) and we're supposed to imagine a play-off then, I would suspect that the correct answer here is actually 2 rather than 7. Would be nice to get a clarification.
Yes, that's correct. The order would be 70a, 70b, 71, so the golfer with 71 would be third and win.
Solution Comments
Show commentsProblem Recent Solvers20
Suggested Problems
-
Make the vector [1 2 3 4 5 6 7 8 9 10]
52337 Solvers
-
Project Euler: Problem 8, Find largest product in a large string of numbers
1290 Solvers
-
Relative ratio of "1" in binary number
1571 Solvers
-
414 Solvers
-
Sums of cubes and squares of sums
362 Solvers
More from this Author315
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!