From 3d15f2e71ca9f11c3c82e74f5adf79ba6e1c4cc4 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 22 Oct 2024 16:15:27 +0200 Subject: [PATCH] Auto stash before merge of "main" and "origin/main" --- README.md | 116 ++++++++++++++++++++------------------- scripts/update_readme.py | 10 ++-- 2 files changed, 66 insertions(+), 60 deletions(-) diff --git a/README.md b/README.md index 9d9d242..c2ecaf9 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,10 @@ # 🌟 Competitive Programming Repository + ## Table of Contents -- [🔗 [Kattis Profile](https://open.kattis.com/users/simon-winther-albertsen)](#-kattis-profilehttpsopenkattiscomuserssimonwintheralbertsen) + +- [🔗 [Kattis Profile](https://open.kattis.com/users/simon-winther-albertsen)](<#🔗-[kattis-profile](https//open.kattis.com/users/simon-winther-albertsen)>) - [Total problems solved: 53](#total-problems-solved-53) - [📂 Directory Structure](#-directory-structure) - [🔧 Setup: Auto Submit and Move](#-setup-auto-submit-and-move) @@ -18,65 +20,67 @@ - **Auto-updated Statistics**: + ## Total problems solved: 53 Note that the table below is auto-generated. There might be slight inaccuracies. -|Problem Name|Problem ID|Difficulty|Languages| -|:---|:---|:---|:---| -|[aleidibio.cpp](https://open.kattis.com/problems/aleidibio)| aleidibio | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/aleidibio.cpp)| -|[ameriskur.py](https://open.kattis.com/problems/ameriskur)| ameriskur | 1.3 | [![py](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/python/python_24x24.png)](solutions/ameriskur.py)| -|[autori.cpp](https://open.kattis.com/problems/autori)| autori | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/autori.cpp)| -|[avoidingtheabyss.cpp](https://open.kattis.com/problems/avoidingtheabyss)| avoidingtheabyss | 2.7 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/avoidingtheabyss.cpp)| -|[bergmal.cpp](https://open.kattis.com/problems/bergmal)| bergmal | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bergmal.cpp)| -|[bestagjofin.cpp](https://open.kattis.com/problems/bestagjofin)| bestagjofin | 1.2 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bestagjofin.cpp)| -|[bladra2.cpp](https://open.kattis.com/problems/bladra2)| bladra2 | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bladra2.cpp)| -|[blandadbest.cpp](https://open.kattis.com/problems/blandadbest)| blandadbest | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/blandadbest.cpp)| -|[coffeecupcombo.cpp](https://open.kattis.com/problems/coffeecupcombo)| coffeecupcombo | 1.5 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/coffeecupcombo.cpp)| -|[composedrhythms.cpp](https://open.kattis.com/problems/composedrhythms)| composedrhythms | 1.4 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/composedrhythms.cpp)| -|[convertingromans.cpp](https://open.kattis.com/problems/convertingromans)| convertingromans | 3.8 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/convertingromans.cpp)| -|[dagatal.cpp](https://open.kattis.com/problems/dagatal)| dagatal | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/dagatal.cpp)| -|[diehard.cpp](https://open.kattis.com/problems/diehard)| diehard | 3.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/diehard.cpp)| -|[digitswap.cpp](https://open.kattis.com/problems/digitswap)| digitswap | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/digitswap.cpp)| -|[dragafra.cpp](https://open.kattis.com/problems/dragafra)| dragafra | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/dragafra.cpp)| -|[echoechoecho.cpp](https://open.kattis.com/problems/echoechoecho)| echoechoecho | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/echoechoecho.cpp)| -|[fifa.cpp](https://open.kattis.com/problems/fifa)| fifa | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/fifa.cpp)| -|[findingana.cpp](https://open.kattis.com/problems/findingana)| findingana | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/findingana.cpp)| -|[flatbokuveisla.cpp](https://open.kattis.com/problems/flatbokuveisla)| flatbokuveisla | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/flatbokuveisla.cpp)| -|[heroesofvelmar.cpp](https://open.kattis.com/problems/heroesofvelmar)| heroesofvelmar | 2.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/heroesofvelmar.cpp)| -|[hipphipp.cpp](https://open.kattis.com/problems/hipphipp)| hipphipp | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hipphipp.cpp)| -|[hipphipphurra.cpp](https://open.kattis.com/problems/hipphipphurra)| hipphipphurra | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hipphipphurra.cpp)| -|[hradgreining.cpp](https://open.kattis.com/problems/hradgreining)| hradgreining | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hradgreining.cpp)| -|[infinitecash.py](https://open.kattis.com/problems/infinitecash)| infinitecash | 7.0 | [![py](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/python/python_24x24.png)](solutions/infinitecash.py)| -|[jackolanternjuxtaposition.cpp](https://open.kattis.com/problems/jackolanternjuxtaposition)| jackolanternjuxtaposition | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/jackolanternjuxtaposition.cpp)| -|[kikiboba.cpp](https://open.kattis.com/problems/kikiboba)| kikiboba | 1.1 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/kikiboba.cpp)| -|[knittingpattern.cpp](https://open.kattis.com/problems/knittingpattern)| knittingpattern | 3.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/knittingpattern.cpp)| -|[kvedja.cpp](https://open.kattis.com/problems/kvedja)| kvedja | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/kvedja.cpp)| -|[leggjasaman.cpp](https://open.kattis.com/problems/leggjasaman)| leggjasaman | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/leggjasaman.cpp)| -|[leynithjonusta.cpp](https://open.kattis.com/problems/leynithjonusta)| leynithjonusta | 1.1 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/leynithjonusta.cpp)| -|[lubbilaerir.cpp](https://open.kattis.com/problems/lubbilaerir)| lubbilaerir | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/lubbilaerir.cpp)| -|[metronome.cpp](https://open.kattis.com/problems/metronome)| metronome | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/metronome.cpp)| -|[millifaersla.cpp](https://open.kattis.com/problems/millifaersla)| millifaersla | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/millifaersla.cpp)| -|[nsum.cpp](https://open.kattis.com/problems/nsum)| nsum | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/nsum.cpp)| -|[oddecho.cpp](https://open.kattis.com/problems/oddecho)| oddecho | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/oddecho.cpp)| -|[ovissa.cpp](https://open.kattis.com/problems/ovissa)| ovissa | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/ovissa.cpp)| -|[palindromes-custom-bitwise-op.cpp](https://open.kattis.com/problems/palindromes-custom-bitwise-op)| palindromes-custom-bitwise-op | N/A | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/palindromes-custom-bitwise-op.cpp)| -|[quadrant.cpp](https://open.kattis.com/problems/quadrant)| quadrant | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/quadrant.cpp)| -|[reduplikation.cpp](https://open.kattis.com/problems/reduplikation)| reduplikation | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/reduplikation.cpp)| -|[scrollingsign.cpp](https://open.kattis.com/problems/scrollingsign)| scrollingsign | 3.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/scrollingsign.cpp)| -|[shortcuttowhat.cpp](https://open.kattis.com/problems/shortcuttowhat)| shortcuttowhat | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/shortcuttowhat.cpp)| -|[skak.cpp](https://open.kattis.com/problems/skak)| skak | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/skak.cpp)| -|[storafmaeli.cpp](https://open.kattis.com/problems/storafmaeli)| storafmaeli | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/storafmaeli.cpp)| -|[takkar.cpp](https://open.kattis.com/problems/takkar)| takkar | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/takkar.cpp)| -|[takkfyrirmig.cpp](https://open.kattis.com/problems/takkfyrirmig)| takkfyrirmig | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/takkfyrirmig.cpp)| -|[tilhamingju.cpp](https://open.kattis.com/problems/tilhamingju)| tilhamingju | 1.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/tilhamingju.cpp)| -|[tolvunarfraedingartelja.cpp](https://open.kattis.com/problems/tolvunarfraedingartelja)| tolvunarfraedingartelja | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/tolvunarfraedingartelja.cpp)| -|[triarea.cpp](https://open.kattis.com/problems/triarea)| triarea | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/triarea.cpp)| -|[twostones.cpp](https://open.kattis.com/problems/twostones)| twostones | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/twostones.cpp)| -|[twosum.cpp](https://open.kattis.com/problems/twosum)| twosum | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/twosum.cpp)| -|[umferd.cpp](https://open.kattis.com/problems/umferd)| umferd | 1.2 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/umferd.cpp)| -|[vidsnuningur.cpp](https://open.kattis.com/problems/vidsnuningur)| vidsnuningur | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/vidsnuningur.cpp)| -|[whichisgreater.cpp](https://open.kattis.com/problems/whichisgreater)| whichisgreater | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/whichisgreater.cpp)| +| Problem Name | Problem ID | Difficulty | Languages | +| :-------------------------------------------------------------------------------------------------- | :---------------------------- | :--------- | :-------------------------------------------------------------------------------------------------------------------------------------------------- | +| [aleidibio.cpp](https://open.kattis.com/problems/aleidibio) | aleidibio | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/aleidibio.cpp) | +| [ameriskur.py](https://open.kattis.com/problems/ameriskur) | ameriskur | 1.3 | [![py](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/python/python_24x24.png)](solutions/ameriskur.py) | +| [autori.cpp](https://open.kattis.com/problems/autori) | autori | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/autori.cpp) | +| [avoidingtheabyss.cpp](https://open.kattis.com/problems/avoidingtheabyss) | avoidingtheabyss | 2.7 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/avoidingtheabyss.cpp) | +| [bergmal.cpp](https://open.kattis.com/problems/bergmal) | bergmal | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bergmal.cpp) | +| [bestagjofin.cpp](https://open.kattis.com/problems/bestagjofin) | bestagjofin | 1.2 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bestagjofin.cpp) | +| [bladra2.cpp](https://open.kattis.com/problems/bladra2) | bladra2 | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/bladra2.cpp) | +| [blandadbest.cpp](https://open.kattis.com/problems/blandadbest) | blandadbest | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/blandadbest.cpp) | +| [coffeecupcombo.cpp](https://open.kattis.com/problems/coffeecupcombo) | coffeecupcombo | 1.5 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/coffeecupcombo.cpp) | +| [composedrhythms.cpp](https://open.kattis.com/problems/composedrhythms) | composedrhythms | 1.4 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/composedrhythms.cpp) | +| [convertingromans.cpp](https://open.kattis.com/problems/convertingromans) | convertingromans | 3.8 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/convertingromans.cpp) | +| [dagatal.cpp](https://open.kattis.com/problems/dagatal) | dagatal | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/dagatal.cpp) | +| [diehard.cpp](https://open.kattis.com/problems/diehard) | diehard | 3.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/diehard.cpp) | +| [digitswap.cpp](https://open.kattis.com/problems/digitswap) | digitswap | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/digitswap.cpp) | +| [dragafra.cpp](https://open.kattis.com/problems/dragafra) | dragafra | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/dragafra.cpp) | +| [echoechoecho.cpp](https://open.kattis.com/problems/echoechoecho) | echoechoecho | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/echoechoecho.cpp) | +| [fifa.cpp](https://open.kattis.com/problems/fifa) | fifa | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/fifa.cpp) | +| [findingana.cpp](https://open.kattis.com/problems/findingana) | findingana | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/findingana.cpp) | +| [flatbokuveisla.cpp](https://open.kattis.com/problems/flatbokuveisla) | flatbokuveisla | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/flatbokuveisla.cpp) | +| [heroesofvelmar.cpp](https://open.kattis.com/problems/heroesofvelmar) | heroesofvelmar | 2.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/heroesofvelmar.cpp) | +| [hipphipp.cpp](https://open.kattis.com/problems/hipphipp) | hipphipp | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hipphipp.cpp) | +| [hipphipphurra.cpp](https://open.kattis.com/problems/hipphipphurra) | hipphipphurra | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hipphipphurra.cpp) | +| [hradgreining.cpp](https://open.kattis.com/problems/hradgreining) | hradgreining | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/hradgreining.cpp) | +| [infinitecash.py](https://open.kattis.com/problems/infinitecash) | infinitecash | 7.0 | [![py](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/python/python_24x24.png)](solutions/infinitecash.py) | +| [jackolanternjuxtaposition.cpp](https://open.kattis.com/problems/jackolanternjuxtaposition) | jackolanternjuxtaposition | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/jackolanternjuxtaposition.cpp) | +| [kikiboba.cpp](https://open.kattis.com/problems/kikiboba) | kikiboba | 1.1 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/kikiboba.cpp) | +| [knittingpattern.cpp](https://open.kattis.com/problems/knittingpattern) | knittingpattern | 3.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/knittingpattern.cpp) | +| [kvedja.cpp](https://open.kattis.com/problems/kvedja) | kvedja | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/kvedja.cpp) | +| [leggjasaman.cpp](https://open.kattis.com/problems/leggjasaman) | leggjasaman | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/leggjasaman.cpp) | +| [leynithjonusta.cpp](https://open.kattis.com/problems/leynithjonusta) | leynithjonusta | 1.1 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/leynithjonusta.cpp) | +| [lubbilaerir.cpp](https://open.kattis.com/problems/lubbilaerir) | lubbilaerir | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/lubbilaerir.cpp) | +| [metronome.cpp](https://open.kattis.com/problems/metronome) | metronome | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/metronome.cpp) | +| [millifaersla.cpp](https://open.kattis.com/problems/millifaersla) | millifaersla | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/millifaersla.cpp) | +| [nsum.cpp](https://open.kattis.com/problems/nsum) | nsum | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/nsum.cpp) | +| [oddecho.cpp](https://open.kattis.com/problems/oddecho) | oddecho | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/oddecho.cpp) | +| [ovissa.cpp](https://open.kattis.com/problems/ovissa) | ovissa | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/ovissa.cpp) | +| [palindromes-custom-bitwise-op.cpp](https://open.kattis.com/problems/palindromes-custom-bitwise-op) | palindromes-custom-bitwise-op | N/A | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/palindromes-custom-bitwise-op.cpp) | +| [quadrant.cpp](https://open.kattis.com/problems/quadrant) | quadrant | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/quadrant.cpp) | +| [reduplikation.cpp](https://open.kattis.com/problems/reduplikation) | reduplikation | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/reduplikation.cpp) | +| [scrollingsign.cpp](https://open.kattis.com/problems/scrollingsign) | scrollingsign | 3.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/scrollingsign.cpp) | +| [shortcuttowhat.cpp](https://open.kattis.com/problems/shortcuttowhat) | shortcuttowhat | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/shortcuttowhat.cpp) | +| [skak.cpp](https://open.kattis.com/problems/skak) | skak | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/skak.cpp) | +| [storafmaeli.cpp](https://open.kattis.com/problems/storafmaeli) | storafmaeli | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/storafmaeli.cpp) | +| [takkar.cpp](https://open.kattis.com/problems/takkar) | takkar | 1.1 - 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/takkar.cpp) | +| [takkfyrirmig.cpp](https://open.kattis.com/problems/takkfyrirmig) | takkfyrirmig | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/takkfyrirmig.cpp) | +| [tilhamingju.cpp](https://open.kattis.com/problems/tilhamingju) | tilhamingju | 1.0 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/tilhamingju.cpp) | +| [tolvunarfraedingartelja.cpp](https://open.kattis.com/problems/tolvunarfraedingartelja) | tolvunarfraedingartelja | 1.1 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/tolvunarfraedingartelja.cpp) | +| [triarea.cpp](https://open.kattis.com/problems/triarea) | triarea | 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/triarea.cpp) | +| [twostones.cpp](https://open.kattis.com/problems/twostones) | twostones | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/twostones.cpp) | +| [twosum.cpp](https://open.kattis.com/problems/twosum) | twosum | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/twosum.cpp) | +| [umferd.cpp](https://open.kattis.com/problems/umferd) | umferd | 1.2 - 1.3 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/umferd.cpp) | +| [vidsnuningur.cpp](https://open.kattis.com/problems/vidsnuningur) | vidsnuningur | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/vidsnuningur.cpp) | +| [whichisgreater.cpp](https://open.kattis.com/problems/whichisgreater) | whichisgreater | 1.2 | [![cpp](https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/cpp/cpp_24x24.png)](solutions/whichisgreater.cpp) | + ## 📂 Directory Structure diff --git a/scripts/update_readme.py b/scripts/update_readme.py index b00f512..6188215 100644 --- a/scripts/update_readme.py +++ b/scripts/update_readme.py @@ -2,6 +2,7 @@ import requests from bs4 import BeautifulSoup import json +import re file_whitelist = {'bnn_accuracy.py', 'testing_tool.py', 'unununion_find.py'} image_src = 'https://github.com/abrahamcalf/programming-languages-logos/blob/master/src/' # hey this a credit! @@ -112,12 +113,13 @@ def get_problem_difficulty(pid, cache): ########################### THIS IS FOR TABLE OF CONTENTS ########################### -# Function to generate a slug from a heading def generate_slug(heading): - # Remove '##' and strip whitespace + # Remove '##', strip whitespace, and remove special characters (emojis, etc.) heading = heading.replace('##', '').strip() - # Replace spaces with hyphens and make lowercase - return heading.lower().replace(' ', '-').replace(':', '') + # Remove all non-alphanumeric characters except spaces (this removes emojis and symbols) + heading = re.sub(r'[^\w\s-]', '', heading) + # Replace spaces with hyphens, make it lowercase + return heading.lower().replace(' ', '-') # Function to create the table of contents based on ## headings def generate_table_of_contents(lines):