Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simonsejse/competitive-programming
https://simonsejse.github.io/competitive-programming/
https://github.com/simonsejse/competitive-programming
Last synced: about 2 months ago
JSON representation
https://simonsejse.github.io/competitive-programming/
- Host: GitHub
- URL: https://github.com/simonsejse/competitive-programming
- Owner: simonsejse
- Created: 2024-10-08T11:28:42.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-09T20:12:05.000Z (about 2 months ago)
- Last Synced: 2024-11-09T21:19:50.964Z (about 2 months ago)
- Language: C++
- Homepage:
- Size: 171 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🌟 Competitive Programming Repository
## Table of Contents
- [🔗 Kattis Profile](#-kattis-profile)
- [Total problems solved: 79](#total-problems-solved-79)
- [📂 Directory Structure](#-directory-structure)
- [🔧 Setup: Auto Submit and Move](#-setup-auto-submit-and-move)
- [🔧 Setup: Auto-Create Problem Set](#-setup-auto-create-problem-set)
- [🔧 Setup: Folding for Template Files](#-setup-folding-for-template-files)
- [🔧 Setup: Auto CPH Judge with Competitive Companion](#-setup-auto-cph-judge-with-competitive-companion)## 🔗 Kattis Profile
[Visit my Kattis profile](https://open.kattis.com/users/simon-winther-albertsen)
- **Repository Purpose**: This repository contains solutions to competitive programming problems, primarily from Kattis.
- **Language Used**: C++ and Python (could add this to CI/CD later)
- **Auto-updated Statistics**:## Total problems solved: 79
Note that the table below is auto-generated. There might be slight inaccuracies.
|Problem Name|Problem ID|Difficulty|Languages|
|:---|:---|:---|:---|
|[aleidibio.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/aleidibio.cpp)| [aleidibio](https://open.kattis.com/problems/aleidibio) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/aleidibio.cpp)|
|[ameriskur.py](https://github.com/simonsejse/competitive-programming/tree/main/solutions/ameriskur.py)| [ameriskur](https://open.kattis.com/problems/ameriskur) | 1.3 | [![py](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/python/python_24x24.png)](solutions/ameriskur.py)|
|[autori.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/autori.cpp)| [autori](https://open.kattis.com/problems/autori) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/autori.cpp)|
|[avoidingtheabyss.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/avoidingtheabyss.cpp)| [avoidingtheabyss](https://open.kattis.com/problems/avoidingtheabyss) | 2.7 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/avoidingtheabyss.cpp)|
|[bela.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/bela.cpp)| [bela](https://open.kattis.com/problems/bela) | 1.4 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/bela.cpp)|
|[bergmal.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/bergmal.cpp)| [bergmal](https://open.kattis.com/problems/bergmal) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/bergmal.cpp)|
|[bestagjofin.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/bestagjofin.cpp)| [bestagjofin](https://open.kattis.com/problems/bestagjofin) | 1.2 - 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/bestagjofin.cpp)|
|[bijele.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/bijele.cpp)| [bijele](https://open.kattis.com/problems/bijele) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/bijele.cpp)|
|[bladra2.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/bladra2.cpp)| [bladra2](https://open.kattis.com/problems/bladra2) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/bladra2.cpp)|
|[blandadbest.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/blandadbest.cpp)| [blandadbest](https://open.kattis.com/problems/blandadbest) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/blandadbest.cpp)|
|[carrots.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/carrots.cpp)| [carrots](https://open.kattis.com/problems/carrots) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/carrots.cpp)|
|[chanukah.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/chanukah.cpp)| [chanukah](https://open.kattis.com/problems/chanukah) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/chanukah.cpp)|
|[coffeecupcombo.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/coffeecupcombo.cpp)| [coffeecupcombo](https://open.kattis.com/problems/coffeecupcombo) | 1.5 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/coffeecupcombo.cpp)|
|[cold.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/cold.cpp)| [cold](https://open.kattis.com/problems/cold) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/cold.cpp)|
|[composedrhythms.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/composedrhythms.cpp)| [composedrhythms](https://open.kattis.com/problems/composedrhythms) | 1.4 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/composedrhythms.cpp)|
|[convertingromans.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/convertingromans.cpp)| [convertingromans](https://open.kattis.com/problems/convertingromans) | 3.8 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/convertingromans.cpp)|
|[countthevowels.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/countthevowels.cpp)| [countthevowels](https://open.kattis.com/problems/countthevowels) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/countthevowels.cpp)|
|[dagatal.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/dagatal.cpp)| [dagatal](https://open.kattis.com/problems/dagatal) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/dagatal.cpp)|
|[decimaldeletion.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/decimaldeletion.cpp)| [decimaldeletion](https://open.kattis.com/problems/decimaldeletion) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/decimaldeletion.cpp)|
|[detaileddifferences.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/detaileddifferences.cpp)| [detaileddifferences](https://open.kattis.com/problems/detaileddifferences) | 1.4 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/detaileddifferences.cpp)|
|[dicecup.py](https://github.com/simonsejse/competitive-programming/tree/main/solutions/dicecup.py)| [dicecup](https://open.kattis.com/problems/dicecup) | 1.4 | [![py](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/python/python_24x24.png)](solutions/dicecup.py)|
|[diehard.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/diehard.cpp)| [diehard](https://open.kattis.com/problems/diehard) | 3.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/diehard.cpp)|
|[digitswap.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/digitswap.cpp)| [digitswap](https://open.kattis.com/problems/digitswap) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/digitswap.cpp)|
|[dragafra.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/dragafra.cpp)| [dragafra](https://open.kattis.com/problems/dragafra) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/dragafra.cpp)|
|[echoechoecho.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/echoechoecho.cpp)| [echoechoecho](https://open.kattis.com/problems/echoechoecho) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/echoechoecho.cpp)|
|[everywhere.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/everywhere.cpp)| [everywhere](https://open.kattis.com/problems/everywhere) | 1.4 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/everywhere.cpp)|
|[fifa.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/fifa.cpp)| [fifa](https://open.kattis.com/problems/fifa) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/fifa.cpp)|
|[findingana.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/findingana.cpp)| [findingana](https://open.kattis.com/problems/findingana) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/findingana.cpp)|
|[flatbokuveisla.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/flatbokuveisla.cpp)| [flatbokuveisla](https://open.kattis.com/problems/flatbokuveisla) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/flatbokuveisla.cpp)|
|[fyi.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/fyi.cpp)| [fyi](https://open.kattis.com/problems/fyi) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/fyi.cpp)|
|[greetings2.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/greetings2.cpp)| [greetings2](https://open.kattis.com/problems/greetings2) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/greetings2.cpp)|
|[heroesofvelmar.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/heroesofvelmar.cpp)| [heroesofvelmar](https://open.kattis.com/problems/heroesofvelmar) | 2.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/heroesofvelmar.cpp)|
|[hipphipp.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/hipphipp.cpp)| [hipphipp](https://open.kattis.com/problems/hipphipp) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/hipphipp.cpp)|
|[hipphipphurra.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/hipphipphurra.cpp)| [hipphipphurra](https://open.kattis.com/problems/hipphipphurra) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/hipphipphurra.cpp)|
|[hissingmicrophone.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/hissingmicrophone.cpp)| [hissingmicrophone](https://open.kattis.com/problems/hissingmicrophone) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/hissingmicrophone.cpp)|
|[hradgreining.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/hradgreining.cpp)| [hradgreining](https://open.kattis.com/problems/hradgreining) | 1.1 - 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/hradgreining.cpp)|
|[infinitecash.py](https://github.com/simonsejse/competitive-programming/tree/main/solutions/infinitecash.py)| [infinitecash](https://open.kattis.com/problems/infinitecash) | 7.0 | [![py](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/python/python_24x24.png)](solutions/infinitecash.py)|
|[isithalloween.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/isithalloween.cpp)| [isithalloween](https://open.kattis.com/problems/isithalloween) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/isithalloween.cpp)|
|[jackolanternjuxtaposition.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/jackolanternjuxtaposition.cpp)| [jackolanternjuxtaposition](https://open.kattis.com/problems/jackolanternjuxtaposition) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/jackolanternjuxtaposition.cpp)|
|[jumbojavelin.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/jumbojavelin.cpp)| [jumbojavelin](https://open.kattis.com/problems/jumbojavelin) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/jumbojavelin.cpp)|
|[keysphonewallet.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/keysphonewallet.cpp)| [keysphonewallet](https://open.kattis.com/problems/keysphonewallet) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/keysphonewallet.cpp)|
|[kikiboba.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/kikiboba.cpp)| [kikiboba](https://open.kattis.com/problems/kikiboba) | 1.1 - 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/kikiboba.cpp)|
|[knittingpattern.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/knittingpattern.cpp)| [knittingpattern](https://open.kattis.com/problems/knittingpattern) | 3.0 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/knittingpattern.cpp)|
|[kvedja.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/kvedja.cpp)| [kvedja](https://open.kattis.com/problems/kvedja) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/kvedja.cpp)|
|[leggjasaman.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/leggjasaman.cpp)| [leggjasaman](https://open.kattis.com/problems/leggjasaman) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/leggjasaman.cpp)|
|[leynithjonusta.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/leynithjonusta.cpp)| [leynithjonusta](https://open.kattis.com/problems/leynithjonusta) | 1.1 - 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/leynithjonusta.cpp)|
|[lubbilaerir.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/lubbilaerir.cpp)| [lubbilaerir](https://open.kattis.com/problems/lubbilaerir) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/lubbilaerir.cpp)|
|[metronome.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/metronome.cpp)| [metronome](https://open.kattis.com/problems/metronome) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/metronome.cpp)|
|[millifaersla.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/millifaersla.cpp)| [millifaersla](https://open.kattis.com/problems/millifaersla) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/millifaersla.cpp)|
|[nastyhacks.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/nastyhacks.cpp)| [nastyhacks](https://open.kattis.com/problems/nastyhacks) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/nastyhacks.cpp)|
|[nsum.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/nsum.cpp)| [nsum](https://open.kattis.com/problems/nsum) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/nsum.cpp)|
|[oddecho.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/oddecho.cpp)| [oddecho](https://open.kattis.com/problems/oddecho) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/oddecho.cpp)|
|[oddities.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/oddities.cpp)| [oddities](https://open.kattis.com/problems/oddities) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/oddities.cpp)|
|[ovissa.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/ovissa.cpp)| [ovissa](https://open.kattis.com/problems/ovissa) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/ovissa.cpp)|
|[palindromes-custom-bitwise-op.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/palindromes-custom-bitwise-op.cpp)| [palindromes-custom-bitwise-op](https://open.kattis.com/problems/palindromes-custom-bitwise-op) | N/A | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/palindromes-custom-bitwise-op.cpp)|
|[qaly.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/qaly.cpp)| [qaly](https://open.kattis.com/problems/qaly) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/qaly.cpp)|
|[quadrant.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/quadrant.cpp)| [quadrant](https://open.kattis.com/problems/quadrant) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/quadrant.cpp)|
|[r2.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/r2.cpp)| [r2](https://open.kattis.com/problems/r2) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/r2.cpp)|
|[reduplikation.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/reduplikation.cpp)| [reduplikation](https://open.kattis.com/problems/reduplikation) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/reduplikation.cpp)|
|[reversebinary.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/reversebinary.cpp)| [reversebinary](https://open.kattis.com/problems/reversebinary) | 1.4 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/reversebinary.cpp)|
|[scrollingsign.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/scrollingsign.cpp)| [scrollingsign](https://open.kattis.com/problems/scrollingsign) | 3.0 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/scrollingsign.cpp)|
|[shortcuttowhat.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/shortcuttowhat.cpp)| [shortcuttowhat](https://open.kattis.com/problems/shortcuttowhat) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/shortcuttowhat.cpp)|
|[skak.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/skak.cpp)| [skak](https://open.kattis.com/problems/skak) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/skak.cpp)|
|[sorttwonumbers.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/sorttwonumbers.cpp)| [sorttwonumbers](https://open.kattis.com/problems/sorttwonumbers) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/sorttwonumbers.cpp)|
|[spritt.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/spritt.cpp)| [spritt](https://open.kattis.com/problems/spritt) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/spritt.cpp)|
|[storafmaeli.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/storafmaeli.cpp)| [storafmaeli](https://open.kattis.com/problems/storafmaeli) | 1.1 - 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/storafmaeli.cpp)|
|[takkar.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/takkar.cpp)| [takkar](https://open.kattis.com/problems/takkar) | 1.1 - 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/takkar.cpp)|
|[takkfyrirmig.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/takkfyrirmig.cpp)| [takkfyrirmig](https://open.kattis.com/problems/takkfyrirmig) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/takkfyrirmig.cpp)|
|[tilhamingju.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/tilhamingju.cpp)| [tilhamingju](https://open.kattis.com/problems/tilhamingju) | 1.0 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/tilhamingju.cpp)|
|[tilhamingju.py](https://github.com/simonsejse/competitive-programming/tree/main/solutions/tilhamingju.py)| [tilhamingju](https://open.kattis.com/problems/tilhamingju) | 1.0 | [![py](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/python/python_24x24.png)](solutions/tilhamingju.py)|
|[timeloop.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/timeloop.cpp)| [timeloop](https://open.kattis.com/problems/timeloop) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/timeloop.cpp)|
|[tolvunarfraedingartelja.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/tolvunarfraedingartelja.cpp)| [tolvunarfraedingartelja](https://open.kattis.com/problems/tolvunarfraedingartelja) | 1.1 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/tolvunarfraedingartelja.cpp)|
|[triarea.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/triarea.cpp)| [triarea](https://open.kattis.com/problems/triarea) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/triarea.cpp)|
|[twostones.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/twostones.cpp)| [twostones](https://open.kattis.com/problems/twostones) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/twostones.cpp)|
|[twosum.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/twosum.cpp)| [twosum](https://open.kattis.com/problems/twosum) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/twosum.cpp)|
|[umferd.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/umferd.cpp)| [umferd](https://open.kattis.com/problems/umferd) | 1.2 - 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/umferd.cpp)|
|[vedurheidar.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/vedurheidar.cpp)| [vedurheidar](https://open.kattis.com/problems/vedurheidar) | 1.3 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/vedurheidar.cpp)|
|[vidsnuningur.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/vidsnuningur.cpp)| [vidsnuningur](https://open.kattis.com/problems/vidsnuningur) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/vidsnuningur.cpp)|
|[whichisgreater.cpp](https://github.com/simonsejse/competitive-programming/tree/main/solutions/whichisgreater.cpp)| [whichisgreater](https://open.kattis.com/problems/whichisgreater) | 1.2 | [![cpp](https://raw.githubusercontent.com/abrahamcalf/programming-languages-logos/master/src/cpp/cpp_24x24.png)](solutions/whichisgreater.cpp)|## 📂 Directory Structure
- **`.github/workflows/`**: Contains automation scripts for CI/CD.
- **`README.md`**: Contains project description and auto-generated stats.## 🔧 Setup: Auto Submit and Move
To automate Kattis submissions and organize accepted files:
### 🛠️ Steps
1. **Install Prerequisites**:
- Python: [Download Python](https://www.python.org/downloads/)
- Kattis CLI: [Kattis CLI](https://github.com/kattis/kattis-cli)
- Python Packages: `pip install requests beautifulsoup4`
- Ensure you have a valid `.kattisrc` file in your home directory with your credentials. You can get it from [here](https://open.kattis.com/info/submit).2. **Add `submit_and_move.py`**:
- The script is in [`scripts/submit_and_move.py`](https://github.com/simonsejse/competitive_programming/blob/main/scripts/submit_and_move.py).
3. **Configure VSCode Task**:
Add this to `.vscode/tasks.json`:```json
{
"version": "2.0.0",
"tasks": [
{
"label": "Submit to Kattis",
"type": "shell",
"command": "python",
"args": ["${workspaceFolder}/scripts/submit_and_move.py", "${file}"],
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "shared",
"showReuseMessage": false,
"clear": false,
"close": true
},
"problemMatcher": []
}
]
}
```4. **Setup Keybinding**:
Add to `keybindings.json`:```json
[
{
"key": "numpad0",
"command": "workbench.action.tasks.runTask",
"args": "Submit to Kattis",
"when": "editorTextFocus"
}
]
```5. **Create `solutions` Folder**:
Manually create the folder or the script will create it automatically.6. **Submit Solution**:
- Keep unfinished solutions in the root directory. Open the solution file (e.g., `kattisexercise.cpp`), press `numpad0`, and it will automatically upload the solution to Kattis. If accepted, the script moves the file to the `solutions` folder.### 📚 Resources
- **Kattis CLI Documentation:** [Kattis CLI GitHub](https://github.com/kattis/kattis-cli)
## 🔧 Setup: Auto-Create Problem Set
Automate the creation of problem sets using Competitive Companion. You can add it as a Google Chrome extension from the Chrome Web Store [here](https://chromewebstore.google.com/detail/competitive-companion/cjnmckjndlpiamhfimnnjmnckgghkjbl).
## 🔧 Setup: Folding for Template Files
1. **Install the Extension**:
Download the [Auto Region Folder](https://marketplace.visualstudio.com/items?itemName=DNEK.auto-region-folder) extension.2. **Configure Settings**:
Add this to your `settings.json` to enable import folding by default:```json
"editor.foldingImportsByDefault": true
```Now the template.cpp file will automatically fold the imports and core library definitions for a cleaner view.
## 🔧 Setup: Auto CPH Judge with Competitive Companion
1. **Install Competitive Companion** extension for Google Chrome.
2. **Configure `settings.json`**:```json
"cph.general.defaultLanguage": "cpp",
"cph.general.defaultLanguageTemplateFileLocation": "C:\\Users\\simon\\dev\\GitHub\\competetive-programming\\templates\\template.cpp"
```3. Usage:
Automatically fetch problems and use your custom C++ template.