XCPC rules
- 6 problems, 3 hours, teams of 2 or 3 with 3 computers.
- It is mandatory to submit solutions in C++.
- You can use Python for generating testcases, for example.
- Please create an account on Kattis.
-
You have to use the computers provided in the lab.
To get your AltGr key back, go to Settings > Keyboard > Alt/Compose > choose “Right Super” for example. To change layout, open a Terminal and dosetxkbmap us
orsetxkbmap fr
. - You have to use the provided KACTL notebook, that won’t be printed.
git clone https://github.com/kth-competitive-programming/kactl.git
It’s okay to copy-paste code from this repository only.
Template is in content/contest/template.cpp
.
- It’s okay to have a config file or macros but please show them to the coach.
- You cannot use Google, LLMs or anything else besides the notebook. But you can browse cppreference.com.
Advice
- Read the problem statements and check the constraints. Split the work with your team.
- Think on paper. You are encouraged to write on the problem statements (e.g. highlight constraints).
- Manage your time: solve the easy problem(s) as soon as possible.
- Every minute counts, so don’t give up. If it’s hard, it’s hard for everybody.
- Build some testcases yourself.
Common mistakes
- Do not forget
long long
- Your code should have upper bounds that are high enough.
- Do not forget to clear your structures between two consecutive testcases.