Code Monkey home page Code Monkey logo

kattis-problem-setup's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.