Back

Competition Rules

Revision History

Contest overview

NYPC <CODE BATTLE/> is a competition where participants create a program (AI) that implements strategies according to provided game rules to compete against other participants' AIs.
The competition consists of an Online Round and a Final Round.

Online Round

Before the Online Round begins, you can test the environment used in the competition through the practice problems released on July 14.
Scores from practice problems are not reflected in the total score and do not affect the final Online Round score.

The Online Round runs freely for 10 days. One problem is revealed at the start of the competition, and participants can submit code until the designated deadline.

Final Round

The top 20 (or more) teams in the Online Round can participate in the final competition held at the Pangyo office on October 25 (Sat).

(All times are based on KST, Saturday, October 25, 2025.)

Problem Solving

Participants can check the problem description and conditions on the problem page and submit one code file and one binary file.

Online Round

Final Round

Please check the Evaluation Rules below for more details.

Execution and Grading Environment

Execution and grading of all submitted code take place in the following environment:

Please note that code that does not operate normally in this environment will not be graded.
For information on compilers and specific development environments used for each language, please refer to the [Development Tool Guide] page.
Time and memory limit exceedance are determined based on the resources used by the process in which the participant's submitted source code is executed.

Grading Results

One of the following results is displayed for each submission, with details as follows:

If cases belonging to the same category have different results, one of the results may be displayed arbitrarily. For example, if some cases in the same category are RE and others are TLE, the result may be displayed as either RE or TLE.

Inquiries about Problems

If there is incorrect content in a problem or an unknown internal error that hinders the competition, you can inquire through the "Ask a Question" feature within the problem.

Invalid Question Types

The following are representative examples of invalid question types:

"The program I wrote works well on my computer, but the results are abnormal when graded."

"It compiles well on my computer, but it says Compile Error when I submit it."

Answer Types

When the issue does not hinder the progress of the competition, the organizer's typical responses are as follows:

Evaluation Rules

Practice Problems

Pretest

Every day at 3:00 PM before the Online Round begins, evaluations are conducted based on the code selected as the Final Submission among the codes submitted by each team.
At least 20 rounds are conducted in a Swiss-system tournament, and rankings are provided based on the results. This can be checked in VS: Participants Nationwide.

Practice problems do not undergo final evaluation and are not reflected in the final grades.

Online Round

Pretest

Every day at 3:00 PM and 9:00 PM, evaluations are conducted based on the code selected as the Final Submission among the codes submitted by each team.
At least 20 rounds are conducted in a Swiss-system tournament, and rankings are provided based on the results. This can be checked in VS: Participants Nationwide.

Pretests are for reference only and do not affect the final evaluation.

System test

At least 50 rounds are conducted in a Swiss-system tournament to select at least the top 100 teams.
The selected teams will play at least 5 matches against every opponent in a Round-robin format, and the final ranking will be determined based on victory points.

Final Round

Pretest

Starting one hour after the competition begins, evaluations are conducted at least 10 times at designated points based on the code selected as the Final Submission. On the day of the competition, information about each mid-term evaluation can be checked at the venue.

Matches are played against all opponents in a Round-robin format, and rankings are provided based on the results. This can be checked in VS: Participants Nationwide.

Pretests are for reference only and do not affect the final evaluation.

System test

Matches are played at least 5 times with every opponent to calculate the number of wins against each opponent. When deciding winners, if the difference in points between two teams is marginal (if the null hypothesis that one team's points are superior cannot be adopted at a 5% significance level), additional matches may be conducted.

The evaluation proceeds as follows:

  1. Based on matches involving all final participants, the top 10 teams with the highest sum of wins against all other opponents are selected.
  2. Based on matches among the top 10 teams, the top 5 teams with the highest sum of wins against all other opponents are selected.
  3. Based on matches among the top 5 teams, the top 2 teams with the highest sum of wins against all other opponents are selected.
  4. Based on matches between the top 2 teams, the team that wins more against the opponent is selected as the final winner.

Tournament Progression

Tournaments are conducted in either a Swiss-system or Round-robin format. The Swiss-system proceeds for a fixed number of rounds, and the Round-robin involves a fixed number of matches against every opponent within a single round.

Seed Determination

Swiss-system Matchmaking

1. Bye Processing (If the number of participants is odd)

2. Opponent Matching

Round-robin Matchmaking

Match Progression

Point Allocation

Points are allocated according to match results as follows:

Final Ranking Determination

The final ranking is determined according to the following criteria:

  1. The participant with a higher total score gets a lower (better) rank.
  2. If scores are equal, tie-breaker criteria are applied in order.
  3. If still tied, the participant with the smaller seed gets a lower (better) rank.

Swiss-system Tie-breaker Criteria

  1. The participant with more rounds where their match points were higher than the opponent's gets a lower rank.
  2. The participant with a higher sum of all opponents' total scores gets a lower rank.
  3. The participant with a higher sum of weighted scores from early rounds gets a lower rank. (Score of the i-th round × (Total number of rounds - i + 1))
  4. The participant with a higher sum of weighted opponent scores from early rounds gets a lower rank. (Opponent's score of the i-th round × (Total number of rounds - i + 1))

Round-robin Tie-breaker Criteria

  1. The participant with a higher Sonneborn-Berger score gets a lower rank. (For all matches, the sum of [my match points in that match × opponent's total score])

Performance

Performance metrics are provided to gauge the skill level of the submitted code. Performance is for reference only and is not reflected in the evaluation.

For the performance calculation formula, please refer to the Performance Calculation Formula PDF.

Misconduct

The following actions are considered misconduct, and you may face disadvantages if caught.

The items above are examples, and other actions may be considered misconduct at the discretion of the organizers.
If misconduct occurs or is suspected, participation and award eligibility may be revoked at any time during the competition.
If interference with competition operations is caused, the organizers may take legal action and claim damages.

The following actions are NOT misconduct.

If you are unsure whether an action constitutes misconduct, do not judge arbitrarily and be sure to inquire with the organizers.