
For the midtem you will participate in a Kattis programming contest.
Here are the instructions. Please follow carefully:
- When you create your account, you must set it to hide your username. Make sure the following boxes are not checked on the setting page. If you already sigened up, click on your name on the upper right corner, and select “profile settings”. The options below are at the bottom on the page.

- The contest is now published, and you can join anytime. You can start Oct 3 at 8:00 am.
- You must register with a team name that does not identify you (per FERPA rules). When you join the contest you will need to give a team name. This is the name that will show up on the standings page. Make sure no one knows it is you.
- You must turn in your team name here: MoodleLink before you start
- The contest can be found at this link.
- The contest starts: Tue Oct 07 2024 08:00:00 and ends: Sun Oct 13 2024 15:00:00
- Once you start the contest, you have 80 hours to complete
- You can use you text, notes, and online resources.
- You CANNOT use other people, AI, or websites that contain the complete solution.
- The contest is 5% of your overall grade.
- You grade will be determined by how many problems you solve (e.g. they pass the tests)
Bonus!
Players are ranks by how many problems they have right. If they have the same number right, then they are ranked by how soon they got them right. I will give the top three students full credit on 3, 2, or 1 quiz (for first, second and third place)!
Some hints:
How to get multiple inputs on a single line:
# taking three inputs at a time
x, y, z = input("Enter three values: ").split()
To input a set of intergers all on a line and get a list:
d = [int(x) for x in input().split()]
If the inputs are integers, you can use the int() function to convert each.
Some hints:
Conformity: Input numbers as list, sort, then turn into a string and store in dictionary. Use dictionary to keep track of number of students with same courses.
Also – you are to print the sum of all the students in courses that most popular. Another test case:
Input:
10
100 101 102 103 488
100 200 300 101 102
103 102 101 488 100
100 109 102 103 488
100 200 300 101 103
103 102 109 488 100
100 101 102 108 488
100 200 300 101 104
108 102 101 488 100
000 111 222 333 444
Output:
6
