4.1.1 • Published 2 years ago

cses-cli v4.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

npm

CSES problem set command-line interface npm.io

Installation

Install cses-cli via npm

npm i -g cses-cli

or yarn

yarn add --global cses-cli

Setup

Login

Run cses login to save credentials locally

Use same username and password as cses.fi

Setup

Run cses setup to set up default settings used for testing and submitting problems

The table below contains some common configurations used by cses (view more details here)

Language (option)Submission fileCompile StepRun stepVersion
Assemblymain.asmnasm -f elf main.asm && gcc main.o./a.outNASM 2.13.02
C++ (C++11)main.cppg++ -std=c++11 -O2 -Wall main.cpp./a.outg++ 7.5.0
C++ (C++17)main.cppg++ -std=c++17 -O2 -Wall main.cpp./a.outg++ 7.5.0
Haskellmain.hsghc main.hs./mainGHC 8.10.4
Javamain.javajavac main.javajava mainJava 11.0.10
Node.jsmain.jsN/Anode main.jsNode.js 8.10.0
Pascalmain.ppN/Afpc main.pp -O2FPC 3.0.4
Python 2 (CPython2)main.pyN/Apython2 main.pyCPython 2.7.17
Python 2 (Pypy2)main.pyN/Apypy main.pyPyPy 2.7.18
Python 3 (CPython3)main.pyN/Apython3 main.pyCPython 3.6.9
Python 3 (Pypy3)main.pyN/Apypy3 main.pyPyPy 3.7.10
Rubymain.rbN/Aruby main.rbruby 2.5.1
Rustmain.rsrustc main.rs./mainrustc 1.47.0

Usage

$ cses
Usage: index [options] [command]

Options:
  -h, --help      display help for command

Commands:
  login           store cses username and password for login
  select          set current cses problem
  setup           setup cses submission config
  status          check cses profile status
  submit          submit cses problem
  test [id]       run test case against active problem
  help [command]  display help for command
4.1.0

2 years ago

4.0.1

2 years ago

4.1.1

2 years ago

4.0.2

2 years ago

3.0.3

2 years ago

3.0.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

2.0.5

3 years ago

2.0.6

3 years ago

2.0.4

3 years ago

1.0.9

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago