Since 2023, JTH/JU has been participating in programming competitions/contests:
mainly in the Nordic Collegiate Programming Contest (NCPC).
The NCPC format:
How are the problems?
e.g.: NCPC 2022 Problems
An example problem:
Highest Hill from NCPC 2022. (CC-BY-SA)
Some not-so-relevant text/story:
Sweden may not have a particularly impressive mountain range compared to other NCPC countries such as Norway and Iceland, but at least it beats the flatlands of Denmark. The situation is not so clear when comparing other member countries though. For example, is Estonia more mountainous than Lithuania1? To settle this question, you want to determine which of the two countries has the most impressive mountain peak.
A mountain range is defined by sampling the heights hi of n equidistant points. Within a mountain range, we call a triple of indices 1 ≤ i < j < k ≤ n a peak if hi ≤ ⋯ ≤ hj ≥ ⋯ ≥ hk. The height of a peak is defined as the smaller of hj − hi and hj − hk.
Given a mountain range, can you find the height of its highest peak?
11
0 1 2 3 4 5 4 3 2 1 0
5
10
29 85 88 12 52 37 19 86 7 44
67
Can you solve this?
n, the number of samples, may go up to 200000!
Solutions not only have to produce the correct output ✅,
but also be in the optimal/expected time complexity ✅✅.
It’s often easy to get the correct output through brute-force simulation (no points ❌),
but not so easy to do it in an optimal time complexity ✅.
There’s an intricate web of competitions worldwide…
When?
Where?
In 2023 and 2024, we drove to Linköping and competed there;
For 2025, we have a plan to host it at JTH.
Why participate?
For NWERC, there’s even a livestream with live scoreboard, a narrator, a commentator and whatnot:
Would you like to participate?
… not necessarily in the above order…
For CSE/AIE students: Rudy Matela (rudy.matela@ju.se) can be your coach if you like. (with Masoumeh Taromirad as the co-coach)
For students of other programmes: find a coach within your programme/department.
How to practice?
Join the JU Kod study group.
We have a mailing list and a Discord server. We have occasional meetups and practice sessions. You can find more information on our website.
The mailing list is maintained by Rudy Matela. Let me know if you want in and you’ll be informed of when we hold practice sessions, contests or meetups.
The Discord server is maintained by students (Rudy is not there).
https://jukod.github.io/
On the JU Kod website, you’ll find a list of interesting problems to start practicing:
They’re all from past editions of NCPC.
They are hosted on open.kattis.com, you can submit your solutions to be graded automatically as if you were in the competition/contest.
You can find all problems for the past decade on open.kattis.com: NCPC 2024; NCPC 2023; NCPC 2022; NCPC 2021; NCPC 2020; NCPC 2019; NCPC 2018; NCPC 2017.
https://jukod.github.io/
NCPC | #-solved ps. | 🇸🇪-rank | 🇸🇪% | rank | % |
---|---|---|---|---|---|
NCPC 2023 | 5 🎈🎈🎈🎈🎈 | 24th / 36 | top 66% | 89th / 160 | top 55% |
NCPC 2024 | 4 🎈🎈🎈🎈 | 9th / 23 | top 40% | 39th / 139 | top 30% |
… also: 3 problems solved at NWERC 2024!
Think you can do better? Join next time.
NCPC | #-teams | #-students |
---|---|---|
NCPC 2023 | 👥 (1) | 🎓🎓🎓 (3) |
NCPC 2024 | 👥👥👥👥 (4) | 🎓🎓🎓🎓🎓🎓🎓🎓🎓🎓🎓 (11) |
NCPC 2025 | 👥👥👥👥👥… (¿≥5?) | 🎓🎓🎓🎓🎓🎓🎓🎓🎓🎓🎓🎓… (¿≥12?) |
We want to increase our participation in future contests.
Would you like to participate?
… not necessarily in the above order…
For CSE/AIE students: Rudy Matela (rudy.matela@ju.se) can be your coach if you like. (with Masoumeh Taromirad as the co-coach)
For students of other programmes: find a coach within your programme/department.
.
To compile this document from source run:
You need pandoc
installed.
This slide set can be found on:
https://jukod.github.io/slides
.