GitXplorerGitXplorer
j

oj-cli

public
3 stars
6 forks
2 issues

Commits

List of commits on branch master.
Verified
09ed1c5c2f952dcaebc64efa37d7b8d923bbbf65

Merge pull request #25 from dark9ive/master

jjosix committed 4 years ago
Unverified
d44aab151399c6dfc45481012c126c6e24b82555

add ex12

cchang861224 committed 4 years ago
Unverified
6fdf4d3cb556b42b3fb90b2073623ca41380d764

ex9-1 fixed

ddark9ive committed 4 years ago
Verified
4d672b2c5d68557cae9c1919de4f41377b8233d5

Merge pull request #24 from dark9ive/master

jjosix committed 4 years ago
Unverified
732b2c804719ed6abeca5226e92fd2b746e7fd57

ex10 fixed

ddark9ive committed 4 years ago
Verified
d918056bae6b140682cbb9fde32e4c67e56be6ca

Merge pull request #23 from dark9ive/master

jjosix committed 4 years ago

README

The README file for this repository.

oj-cli

Installation

Ghost Server

cd ~
echo 'export PATH="~f103207425/.local/bin:$PATH"' >> ~/.profile
source ~/.bashrc

Install from Source Code

  1. Clone this project
git clone https://github.com/josix/oj-cli.git
  1. Update HOST variable value in file oj-cli/constants.py to the OnlineJudge URL you accessing
  2. Update Shebang(#!/opt/csw/bin/python2.7) value to a suitable one in oj.py

Commands

oj login

About

Use oj login to login to the account in OnlineJudge. It required you to enter your account information so that oj-cli could access OnlineJudge service successfully. After entering your username and password. oj-cli will respond if you login successfully or not.

Usage

No argument required. Only enter oj login and fill the account information to login to OnlineJudge.

Example

$ oj login
Usernme:
Password:

oj get_assign <assign_no>

About

Use oj get_assign <assign_no> to download the latest assignment from contest. The downloaded files are stored in folder hwX or exX. The folder includes testing data, output data, and template C script, which are named as 1.in, 1.out, and hwX.c(or exX.c) separately.

Usage

oj get_assign only required one argument to execute.

assign_no

assign_no represents your assign number like hw1, ex1, etc. oj-cli will prompt Invalid Assign Number! if the input assign number has not opened.

Example

$ oj get_assign hw2
$ oj get_assign ex3

oj submit <assign_no> <code_file>

About

Use oj submit <assign_no> <code_file> to submit your code to contest.

Usage

oj get_assign required two arguments to execute.

assign_no

assign_no represents your assign number like hw1, ex1, etc. oj-cli will prompt Invalid Assign Number! if the input assign number has not opened.

code_file

code_file is the path to your script. oj will read the file then submit this answer to OnlineJudge Service.

Example

$ oj submit hw2 hw2.c
$ oj submit ex3 ../ex3.c