Rules and Eligibility

Read the ICPC Regional Rules (opens in a new tab)

Last updated:

General Rules

The following rules apply throughout the event:

  • Smoking is prohibited during all activities.
  • Contestants must attend all activities.
  • All participants must wear their badge for all activities.
  • Contestants must wear the official contest T-shirt during the contest. (You’re free to wear the T-shirt for any other activity.)

Rules Inside the Contest Hall

In addition to the General Rules listed above, the following rules apply during the contest:

  • Bring only printed materials; no electronics are allowed.
  • Mobile phones are strictly prohibited.
  • Bring all necessary printed material during the practice session.
  • Bags brought into the hall will be checked.
  • No communication with coaches during the contest.
  • Talking is limited to team members and designated personnel.
  • Disqualification may result from actions jeopardizing the contest.
  • Follow instructions regarding workstation setup.
  • Do not attempt to change your PC² password, or you may be disqualified.

Eligibility and Appeals

Eligibility, team registration, and complaints and appeals follow the official ICPC Regional Rules. The ICPC updates these rules every season, so please always check the latest version on the ICPC website before registering your team or filing an appeal.

Each team has three contestants and one coach. The coach registers the team, certifies that every contestant is eligible, and is the only one who may file a complaint or an appeal.

Read the ICPC Regional Rules (opens in a new tab)

Contest Format

Contest length
5h
Problems
8–16
Computer per team
1
  • The contest problem set consists of eight to sixteen problems. Each team attempts to solve as many problems as possible using a single computer.
  • The programming languages for ACPC are: C, C++, Java, or Python. Contestants are free to choose the programming language(s) they want to use.

Contest length, clarification requests, scoreboard notifications and the final say of the judges follow the ICPC Regional Rules.Learn more on the ICPC website (opens in a new tab)

Rejected Runs Are Further Classified into:

Syntax error
The program failed to compile.
Run-time error
The program crashed during run.
Time limit exceeded
The program failed to terminate within the allowable time period.
Wrong answer
The program terminated successfully, but the output wasn’t correct.
Presentation error
The program terminated successfully, but the output wasn’t formatted as expected.

Note: Getting this error doesn’t mean that the output is correct; it is possible for the output to be wrong too. Judges will return the first of the two errors they notice.

  • If a run is rejected, the team is free to try again and send as many runs as they wish until the problem is solved (but make sure you understand the scoring rules).

Problems Format

  • Each problem will require reading input from the standard input, and printing its output to the standard console.
  • Since judging is a semi-automatic process, it is mandatory for the program output to match the output format specified in the problem description.
  • The judges’ secret input will test the program on multiple cases (or datasets). The input format will be designed so that multiple datasets can be included in a single input.

General rules about contest problems follow the ICPC Regional Rules.Learn more on the ICPC website (opens in a new tab)

Each Problem in an ACPC Contest Is Specified in the Following Four Sections:

  1. DescriptionThis section specifies the problem contestants are supposed to solve.
  2. Input formatHere you’ll find a detailed description of how the input will be formatted.
  3. Output formatThis section specifies the format of the output of your program. Your program’s output must conform to the format specified.
  4. Sample Input/OutputHere you’ll find a sample Input/Output that has successfully passed the judges’ program.

Note: Your program will be tested on a different (and more complex) dataset. Just because your program passed the sample Input/Output doesn’t mean it is correct.

Solutions must read input from standard input and write results to standard output. Contestants must submit source code using the supported programming languages and follow the source-file and submission requirements specified in the official ACPC programming environment. Programs must run without interactive user intervention unless the problem explicitly specifies an interactive protocol.

Programming Your Solutions

  • Programs must be in a single source file; failure to meet this requirement is a “Syntax or Compilation Error”. A note to Java programmers: You can still have more than one top-level class in a single source file as long as only the main one is declared public while the rest are unqualified (i.e. just “class”, without “public”).
  • Output will be judged using a file comparison utility. Output must be exactly as specified in the output format section: spelling, punctuation, spacing, and case (uppercase/lowercase) are all significant (unless specified otherwise in the problem statement).
  • Your program cannot require any intervention from the user. All input must be read from the standard input. If you submit a program that requires user intervention, you’ll most probably receive a “Time-Limit Exceeded” error. Contestants who have the habit of placing a “press any key to continue” statement at the end of their program should pay attention to this point.
  • All test cases used in judging will conform to the input specifications. There is no point for your program to try to detect invalid input.
  • Make sure your program will compile and run using the judges’ environment. Use the PC² test button.

Teams Ranking

Teams are ranked by the number of problems solved, then by the lowest total time. For each solved problem, the time is the elapsed time until its first accepted submission, plus 20 penalty minutes for each previously rejected submission on that problem, excluding compilation errors. Unsolved problems contribute no penalty time. For awards and World Finals qualification, any remaining tie is broken by the earlier submission time of the team's last accepted solution.

The full scoring rules follow the ICPC Regional Rules.Learn more on the ICPC website (opens in a new tab)

Resolving Ties

Teams that solve the same number of problems are ranked by the lowest total time. If a tie remains, the team with the earlier submission time of its last accepted run ranks higher.

Any remaining ties affecting awards or qualification for the ICPC World Finals shall be resolved by the Regional Contest Director in consultation with the judges. Their decisions are final.

Awards

Following the ICPC World Finals tradition, ACPC honors teams with medals, regional championship titles and special awards.

Medals

  • Gold medals1st to 4th place winners
  • Silver medals5th to 8th place winners
  • Bronze medals9th to 12th place winners

Regional Champions

Presented to the highest-ranked eligible team from each ACPC sub-region on the final official scoreboard.

Champion of Maghreb
Morocco, Algeria, Tunisia, Libya, Mauritania
Champion of River Nile
Egypt, Sudan, South Sudan, Ethiopia, Uganda, Kenya, Tanzania, Rwanda, Burundi, Eritrea
Champion of Levant
Jordan, Lebanon, State of Palestine, Syria
Champion of Arabian Peninsula & Gulf
Bahrain, Iraq, Kuwait, Oman, Qatar, Saudi Arabia, United Arab Emirates, Yemen

Special Awards

Extreme Programmers
Presented to the team that achieves the earliest accepted solution during the official contest, demonstrating exceptional readiness, quick thinking, and the ability to solve problems accurately under pressure.

Selection: Earliest accepted solution minute.
Tie-breaker: Lowest total contest penalty.
Steadfast Gurus
Presented to the team that achieves the latest accepted solution before the official contest ends, demonstrating determination, endurance, and the ability to remain focused and productive until the final moments.

Selection: Latest accepted solution minute.
Tie-breaker: Lowest total contest penalty.
Relentless Programmers
Presented to the team that achieves an accepted solution after the highest number of unsuccessful submissions on a single problem, demonstrating extraordinary perseverance, resilience, and determination in overcoming repeated setbacks.

Selection: Highest number of unsuccessful submissions before successfully solving a single problem.
Tie-breaker: Latest accepted solution minute.
Solid Programmers
Presented to the team that solves the highest number of problems on the first attempt, demonstrating exceptional accuracy, careful reasoning, and strong problem-solving skills.

Selection: Highest number of first-attempt solves.
Tie-breaker: Lowest geometric mean of the solution times of those first-attempt solves.

Geometric mean: G = (t1 × t2 × ... × tk)1/k

Here, k is the number of first-attempt solves, and ti is the solution time in contest minutes for each qualifying problem.

Each Special Award is presented to exactly one team. If multiple teams satisfy the same criterion, the highest-ranked team on the final official scoreboard receives the award. No joint winners are declared.

Staff Awards

Mohamed Abdelwahab Coach Award
Presented to an individual who has made outstanding contributions to competitive programming through coaching, problem setting, contest development, technical innovation, or sustained support for regional competitions.
Mohamed Fouad Overcoming Challenges Award
Presented to an individual who has demonstrated exceptional resilience, determination, and dedication in overcoming significant challenges to ensure the continuity and success of competitive programming activities and competitions.
Ossama Ismail Distinguished Leadership Award
Presented to an individual who has demonstrated exceptional leadership, organizational excellence, and the ability to manage complex challenges while ensuring the successful delivery of competitive programming contests.
Yousry El-Gamal Community Service Award
Presented to an individual who has demonstrated outstanding dedication to developing, supporting, and sustaining the competitive programming community through educational initiatives, training activities, mentorship, and community engagement.
Ahmed M. El-Sayed System Leadership Award
Presented to an individual who has made exceptional technical contributions to the development, improvement, maintenance, or reliability of contest management systems and infrastructure, helping ensure successful and efficient competition operations.
Distinguished Service Award
Presented to individuals who have demonstrated exceptional dedication, professionalism, and commitment through significant contributions to ACPC and its regional competitions, including contest organization, judging, technical operations, institutional support, and the development of competitive programming communities. This award may be presented to multiple individuals in recognition of their distinct contributions.
Amin Gamal Leadership Award
Presented to an individual who has demonstrated outstanding leadership in establishing, developing, or strengthening a competitive programming community, inspiring students, fostering teamwork, and creating sustainable opportunities for learning and growth.

PC²

PC² (the Programming Contest Control System, pronounced “P-C-squared” or “P-C-Two” for short) is used during the contest as the only method of communication between teams and judges. Teams use it to submit their runs and to send clarification requests.

In addition, during a contest, PC² generates the scoreboard that is viewed by both contestants and spectators.

The full tutorial can be found here (opens in a new tab).