Golf Club

The upsolving of this problem will be available for the meantime. Try it at https://golf-club.midnightcodecup.org/.

This problem consists of two stages. The first stage closes at 19:00 (7 hours after the start of the contest). Just remember, don't try to bend the spoon at the very last minute!

You need to get 5 midnight coins from the sponsors and give them to your business partner to join the club by 19:00.

Already have an access code? Follow the link to join.

Scoring

You get 100100 points for successfully finishing the first stage.

Then you have an opportunity to participate in the Qualifier Round, where all teams solve the same problem. The best teams advance to the single-elimination tournament. Teams will be split into pairs, and the teams in each pair will compete with each other by solving one problem.

One solution is considered better than another if:

  • it passes more tests than the other,
  • it passes the same number of tests and uses fewer tokens, or
  • it passes the same number of tests, has the same length in tokens, and was submitted earlier.

At the end of the round, the best solution from each team is taken. If neither solution passes any test, the jury may decide to hold an additional round.

In the Qualifier Round, the best submission among all teams gets 100100 points. Other teams receive partial points:

  • 00 points if none of your solutions pass any test,
  • 50+50×best_tokensyour_tokens50 + 50 \times \frac{\texttt{best\_tokens}}{\texttt{your\_tokens}} points if your best solution passes the same number of tests as the best one,
  • 100×2your_testsbest_tests100 \times 2^{\texttt{your\_tests} - \texttt{best\_tests}} points if your best solution passes fewer tests than the best one.

In the duels, the team that submitted the better solution advances to the next round and gets 100100 points. The other team receives partial points according to the rules above, taking opponent submission as the best, and gets eliminated from the tournament.

Updated at Jul 4, 2026, 9:36 PM: The scoring rules for problem G and Qualifier Round results were published. Schedule of next rounds is published at https://golf-club.midnightcodecup.org/schedule. Note that among teams with 9 tokens, time of the best attempt was used as a tie-breaker. We start matches tomorrow at 7:30 AM. Check the schedule and come at your assigned time. Do not be late or you will lose automatically!