Skip to content

Latest commit

 

History

History
58 lines (48 loc) · 2.02 KB

README.md

File metadata and controls

58 lines (48 loc) · 2.02 KB

codeforces-api

Language GitHub license JitPack Repo

For the explanation of WHY this repository is needed, follow my blogpost.

codeforces-api is a thread-safe Codeforces API wrapper library written in Java. Checks the official design doc here.

Codeforces is a website that hosts competitive programming contests. It has almost 100000 registered users, and more than 35000 of them participate in at least one contest during last month.

Codeforces API was introduced over 7 years ago, but to this day there were no wrappers for it written in Java.

Installation

Currently, jitpack is used for the installation process.

The latest stable release is cc68c0543c.

Gradle

  1. Add the JitPack repository in your root build.gradle at the end of repositories:
allprojects {
    repositories {
        // other repositories //
        maven { url 'https://jitpack.io' }
    }
}
  1. Add the dependency (TAG is representing current version):
dependencies {
    implementation 'com.github.CovarianceMomentum:codeforces-api:TAG'
}

Maven

  1. Add the JitPack repository to your pom.xml:
<repositories>
  <repository>
    <id>jitpack.io</id>
    <url>https://jitpack.io</url>
  </repository>
</repositories>
  1. Add the dependency (TAG is representing current version):
<dependency>
  <groupId>com.github.CovarianceMomentum</groupId>
  <artifactId>codeforces-api</artifactId>
  <version>TAG</version>
</dependency>