cortex359 / md.wettbewerb2024

Programmierwettbewerb 2024 🏆 Team τ 🥉 Mathe-dual e.V.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🏆 Programmierwettbewerb 2024 (Mathe-dual e.V.)

License: GPL v3

scores.gif

🥉 Team τ


Mathe-dual e.V.

🇩🇪 Blog Post über die Siegerehrung, Finale Auswertung und Vergleichsübersicht, sowie allgemeine Informationen über den Wettbewerb auf mathe-dual.de.

Installation

In order to use the python scripts, some packages need to be installed in your environment.

pip install -r requirements.txt

Web crawler

Usage

Generate relative score tables:

Fetch snapshots with python webcrawler.py and extract current snapshot.zip:

snapshot="snapshot_060323_2300"
teams=( koeln coca-cola-und-nutella uka ets fabio-palmen bug-prevention horst )

for t in $teams; do
  mkdir "web/data/${t}/${snapshot}"
  unzip -d "web/data/${t}/${snapshot}" "web/data/${t}/${snapshot}.zip"
done

Enter the group directory and extract tables:

for t in ${teams}; do
  for i in {01..14} ; do
    pcre2grep -Me '(?:<pre>)([^<]+[\n\s]*)+(?:<\/pre>)' -m1 --output '$1' web/data/${t}/${snapshot}/forest${i}.txt.html >| web/data/${t}/${t}.forest${i}.table
  done
done

parse tables and save relative scores:

{
  for i in {01..14} ; do
    python web/score_webtable.py forest${i} ${teams};
  done
} >| web/relative_score_tables/overview-$(date +'%F_%H-%M').md

About

Programmierwettbewerb 2024 🏆 Team τ 🥉 Mathe-dual e.V.

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 59.4%Language:C++ 14.9%Language:Python 11.5%Language:Shell 6.6%Language:JavaScript 6.1%Language:HTML 1.3%Language:CMake 0.1%