Skip to main content

View information on Kattis problems and download sample data.

Project description

kattis-problem-setup

Download the sample data for any problems from Kattis.

Requirements

The project is built in Python 3.

Installation

To install, simply clone the project:

git clone https://github.com/bradendubois/kattis-problem-setup
cd kattis-problem-setup

Usage

To run the project, simply run the main.py either directly, or in Python, with any number of problem IDs provided.

./main.py PROBLEM_1 PROBLEM_1

or

python main.py PROBLEM_1 PROBLEM_2

where PROBLEM would be the ID of a problem.

Example: If there were sample material for the problem Hello World!, where the ID is hello, usage would be:

pythom main.py hello

and output would be:

Parsing: hello 

Title: Hello World!
ID: hello
CPU Time Limit: 5 seconds
Memory Limit: 1024 MB
Difficulty: 1.2

Disclaimers

The description of each problem is not downloaded.

Kattis Terms of Service is clear (see 2. License for content); materials cannot be (a) copied or (b) publically displayed. This script gets uninformative information on memory limits / CPU time, etc. but does not represent materials concerning the problem itself. It would be a clear violation of the TOS to copy, or likely facilitate copying, the actual description of each problem.

Can it copy all the problems from Kattis?

It could be easily made to download a description of every problem from Kattis, but for the same reasons as above, it will not be implemented.

Acknowledgements

  • Kattis, for hosting fun competitive programming problems.
  • Beautiful Soup, still the best choice for web scraping in Python.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kattis-problem-setup-1.0.3.tar.gz (4.0 kB view hashes)

Uploaded Source

Built Distribution

kattis_problem_setup-1.0.3-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page