Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/qszhu/oj-cli


https://github.com/qszhu/oj-cli

Last synced: 2 days ago
JSON representation

Awesome Lists containing this project

README

        

# Requirements

* Node.js >= v14.1

# Caution

* \[USACO\] Use at your own risk:
> Submission of code must be done via the interface on the usaco.org website (i.e., by selecting your file and clicking "submit solution"); attempts to submit via other means (e.g., scripts that attempt to automate this process) are NOT permitted. - http://www.usaco.org/index.php?page=instructions

# Supported Sites

- [x] [アルゴ式](https://algo-method.com) (Mac only)
- [x] [AOJ](https://onlinejudge.u-aizu.ac.jp)
- [x] [AtCoder](https://atcoder.jp/)
- [x] [CodeChef](https://www.codechef.com) (Mac only)
- [x] [CodeForces](https://codeforces.com/)
- [x] [CSES](https://cses.fi/)
- [x] [HackerEarth](https://www.hackerearth.com) (Mac only)
- [x] [HDU](https://acm.hdu.edu.cn/)
- [x] [Kattis](https://open.kattis.com/)
- [x] [POJ](http://poj.org/)
- [x] [USACO](http://usaco.org/)
- [x] [UVa](https://onlinejudge.org/index.php)
- [x] [yukicoder](https://yukicoder.me/)
- [ ] [洛谷](https://www.luogu.com.cn/)
- [ ] [AcWing](https://www.acwing.com/)
- [ ] [CH](http://www.contest-hunter.org/)
- [ ] [GCJ](https://codingcompetitions.withgoogle.com/codejam)
- [ ] [SPOJ](https://www.spoj.com/)
- [ ] [Timus](https://acm.timus.ru/)
- [ ] [IPSC](https://ipsc.ksp.sk/)
- [ ] [Codility](https://app.codility.com/programmers/)
- [ ] [Prologin](https://prologin.org/)
- [ ] [LiveArchive](http://livearchive.onlinejudge.org/)
- [ ] [SDUT](https://acm.sdut.edu.cn/onlinejudge3/)
- [ ] [HackerRank](https://www.hackerrank.com)
- [ ] [beecrowd (uri)](https://www.beecrowd.com.br)

# Supported Languages and Required Compilers

- [x] TypeScript
* `esbuild`
- [x] Kotlin
* `kotlinc`
- [x] C++
* `g++`
- [ ] Python
- [ ] Go
- [ ] Java
- [ ] Rust
- [ ] Dart
- [ ] Haskell
- [ ] OCaml
- [ ] Elixir

# Usage

## Install

```bash
$ npm i -g ya-oj-cli
```

## Login to OJ

```bash
$ oj login --site=cf
```

## Create Solution

```bash
$ oj new 1A --lang=cpp
```

## Build Solution

```bash
$ oj build
```

## Test Solution

```bash
$ oj test
```

## Submit Solution

```bash
$ oj submit
```

# Known Issues

## USACO
* Problems before 2020 requires file IO.

## UVA
* No auto extraction of sample test case yet.
* Problem ID is in the page url, usually different from that on the page.

# Alternatives
* [Virtual Judge](https://vjudge.net/)

# Guide Books

## Chinese
* 刘汝佳, *算法竞赛入门经典 (第2版)*
* UVa
* 刘汝佳, 陈锋, *算法竞赛入门经典————训练指南*
* UVa
* POJ
* CodeForces
* SPOJ
* IPSC
* LA
* 牛客
* 陈锋, *算法竞赛入门经典————习题解答*
* UVa
* 陈锋, *算法竞赛入门经典————算法实现*
* UVa
* POJ
* HDU
* SPOJ
* CodeChef
* 牛客
* 李煜东, *算法竞赛进阶指南*
* CH
* AcWing
* POJ
* CodeForces
* HDU
* 陈小玉, *算法训练营*
* HDU
* POJ
* UVa
* 洛谷
* SDUT
* TOJ

## English
* Steven Halim, Felix Halim, *Competitive Programming 4*
* UVa
* Kattis
* Antti Laaksonen, *Guide to Competitive Programming*
* CSES
* Johan Sannemo, *Principles of Algorithmic Problem Solving*
* Kattis
* Darren Yao, *An Introduction to the USA Computing Olympiad*
* CSES
* USACO
* CodeForces

## Japanese
* 秋葉拓哉, 岩田陽一, 北川宜稔, *プログラミングコンテストチャレンジブック [第2版]*
* POJ
* GCJ
* 渡部 有隆, Ozy, 秋葉 拓哉, *プログラミングコンテスト攻略のためのアルゴリズムとデータ構造*
* AOJ
* Ozy, *Short Coding ~職人達の技法*
* POJ

## French
* M. Christoph Dürr, M. Jill-Jênn Vie, *Programmation efficace*
* SPOJ
* GCJ
* UVa
* Kattis
* Timus
* POJ
* CodeChef
* Codility
* Prologin

# Websites
* https://usaco.guide/
* CodeForces
* USACO
* https://www.vplanetcoding.com
* CodeForces