Rules and Guidelines


Find below the rules and guidelines applied for 2022’s edition of the HP CodeWars.

For any questions, please contact us at

Specific Guidelines

Virtual event

  • This year and due to the current pandemic situation, the HP CodeWars 2022 won’t be held at HP facilities to ensure the safety of all participants.
  • The event will be held virtually through a Zoom webinar. The coding contest will be performed using an internal HP platform. Links and details will be provided in advanced for the registered teams.
  • To ensure the best experience for the students, it is recommended that each school provides a space (classroom, library) for them to participate.
  • In case it is not possible to provide a space for the teams, each team will be allowed to connect from home.

Student Eligibility

  • The HP CodeWars is open to students in 3rd ESO, 4th ESO, Bachillerato or FP (CFGM). Always students born after 2004 (included).
  • A team sponsor must be a representative from the school, preferably a teacher.
  • You can register up to 3 teams per school. Please note this year the maximum of teams participating will be limited and you should register teams in order of preference.
  • HP reserves the right to disqualify a student/team in case they do not meet the eligibility criteria.


  • Each team/school is responsible to have their own computer and Internet connection. We recommend having a second PC as backup.
  • PCs must have an internet browser.
  • Some school laptops have security lockdowns that prevent wireless configuration, so please verify this before the event.

Development Software

Development software allowed for competition:

  • Java. Suggest Java 7u51, though any recent version should be fine.
  • Python 3. You will need a Python interpreter installed locally in your computer.
  • C/C++. You need an ANSI-compatible C/C++ compiler that can create a self-contained Windows command-line executable.

Competition Format

  • Teams must be composed by three students.
  • Teams need to solve around 30 problems in 3 hours.
  • Each problem carries a point value. Values increase as problems get more difficult.
  • The goal is to collect as many points as possible within the stipulated time (3 hours). At the end of the event, the team with more points is the winner!
  • The HP CodeWars judges might contact random teams to interview them and check the coding solutions.
  • Final classification will be validated by the HP CodeWars jury.

Competition Rules / Guidelines

  • The judges' rulings are final.
  • All solutions must programmatically determine the results. In other words, your solution cannot just print out a solution to a problem that you determined by hand. The judges will be using some different data sets for your programs at the judging table.
  • Your team will have several problems to choose. You might not be able to solve them all, so we recommend studying them and choose your problems wisely.
  • Each team will receive a unique team login and password for the competition.
  • The participant will have to set-up in the competition system using the provided username and password.
  • There is no limit to the number of submissions you can make to solve a given problem. However, note that in the case of a tie score, the winners will be determined by the fewest incorrect submissions.
  • Any necessary corrections to contest problems will be displayed to all competitors in the contest platform provided by HP.
  • It is advised the Team sponsors (teachers) help their students with the set up before the event, but once the competition starts leave the team by themselves.
  • Additional rules, modifications, and more details will be available to you in advanced the days before the event.
  • Kindly note that all the students must be punctual to setup their computers so that the contest begins on time.