Phillips Andover Programming Competition

Help Gunga solve competitive programming problems

to
Starts in

About

The contest is over! The final leaderboard and editorials will be released later this week. Thank you to all competitors for participating in the first-ever Phillips Andover Programming Competition!

A contest designed for and by Andover students. Sign up no matter your experience in competitive programming!

Prizes

Amazon Gift Cards for top 5 scorers!

1st: $50

2nd: $40

3rd: $30

4th: $20

5th: $15

Rules

  • 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.
  • Be an Andover Student
  • You may use external resources, but no collaboration with others is allowed.
  • Only submissions within 90 minutes of opening the first problem will be considered. However, feel free to continue submitting after!

Some instructions for how to read inputs and print outputs Python

a = input()

reads a line of input and stores it as a string at "a" So if you want to read a input like

12 34 53

Just do

inp = input()
inp_split = inp.split(' ')
a = int(inp_split[0])
b = int(inp_split[1])
c = int(inp_split[2])

To output things, use

print(a)

to output a string "a" on a line.

Java There are multiple ways using System.in stream. My preferred method is:

BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
a = f.readLine();

"f.readLine()" reads a line of input as string and stores it in "a". To output, simply use

System.out.println(a);

to print a line of output "a"

C++

string value;
cin >> value; // takes in the value input
cout << value; 

You MAY look up ways to get inputs on the internet. You MAY use API references for your language. However, we trust you not to look up particular algorithms and problems.

Scoring

  • Each challenge has a pre-determined score.
  • A participant’s score depends on the number of test cases a participant’s code submission successfully passes.
  • If a participant submits more than one solution per challenge, then the participant’s score will reflect the highest score achieved. In a game challenge, the participant's score will reflect the last code submission.
  • Participants are ranked by score. If two or more participants achieve the same score, then the tie is broken by the total time taken to submit the last solution resulting in a higher score
  • Only submissions within 90 minutes of opening the first problem will be considered.

Sign up for Phillips Andover Programming Competition now.

Not a genuine coding contest?