Online Programming Challenge in Political Science Topic Areas for Pre-College Students

Starts in


Please follow @scienceconnectorg on Instagram for updates; we will be posting all updates on both Hackerrank and Instagram.

Science Connect's AMACS Project is hosting civiCode, a challenge with programming problems in the context of political science. No prior experience in CS or political science is necessary, as the contest includes questions of varying difficulty levels.

Contact with any questions.


UPDATE AS OF 11/27: At the beginning of the contest, we had stated that we would hold tiebreaker rounds and/or give multiple prizes if multiple students achieve exceptionally high scores.

We have decided to hold a tiebreaker final round. ALL HIGH SCHOOL STUDENTS WHO EARN A PERFECT SCORE of 35 points before the end of this contest are finalists invited to compete. The top 3 winners of the tiebreaker round will be awarded $25 Amazon gift cards each. All finalists will be recognized on our website. We will contact all finalists directly with further information regarding final round logistics on December 1.

Middle Schoolers - we will award $25 to 1 top scorer in this contest only. There will not be a middle school final round.


$25 Amazon gift cards for top scorer(s) in middle school and high school each (specifics are subject to change). All participants and top scorers will be recognized on our website,

If multiple students achieve exceptionally high scores, we will hold smaller tiebreaker rounds after December 1 and/or give multiple prizes.


  • The creator of this contest is solely responsible for setting and communicating the eligibility requirements associated with prizes awarded to participants, as well as for procurement and distribution of all prizes. The contest creator holds HackerRank harmless from and against any and all claims, losses, damages, costs, awards, settlements, orders, or fines.
  • Code directly from our platform, which supports over 30 languages. Learn more here.

Submit as many times as you would like before the submission date.

Internet access is permitted; cite all sources used (url, name of website etc) as comments. You may also import libraries. However, all code written must be your own; you may not collaborate or discuss problems with other individuals (apart from emailing in case of questions/clarifications).

You may attempt as many of the problems as you would like to any extent. You can also solve/work on problems over time; you do not need to do them all in one sitting. We will consider final scores on the leaderboard for all usernames/participants after the contest has ended.

Please email with the following information after you have finished submitting.

  • Full name
  • School
  • Grade Level
  • Hackerrank Username


  • Each problem has a pre-determined score.
  • A participant’s score depends on the number of test cases a participant’s code submission successfully passes. This includes both the sample test cases available in the problem description and several other hidden test cases (for which participants can see results upon submitting that problem, but cannot see the inputs themselves).
  • If a participant submits more than one solution per problem, then the participant’s score will reflect the highest score achieved.
  • Important: scoring will not depend on time of submission or number of submissions. The times of submission/rankings on the Hackerrank leaderboard are not necessarily a reflection of the final rankings we will use for determining top scorers.

Sign up for civiCode now.

Not a genuine coding contest?