
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 21 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 21 2025 08:00:00 and ends: Sun Oct 28 2025 08:00:00
- Once you start the contest, you have 168 hours to complete
- You can use you text, notes, and online resources. NO AI.
- 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()
If the previous needs to have 3 integers:
x = int(x)
y = int(y)
z = int(z)
If the inputs are integers, you can use the int() function to convert each.
If you want to input a list of elements, use a list:
list = input().split()
# add for total
total = 0
for i in list:
total+=int(i)
print("Total:",total)Code language: PHP (php)
How to process a string one character at a time:
s=input("Enter a string: ")
for c in s:
print(c)
Output:
Enter a string: Kenyon K e n y o n
Have fun!
