acmoj v0.1.3
ACM Online Judge CLI Helper
This is a simple script to help you submit code to ACM Class Online Judge right in your terminal, within a single command.
Installation
acmoj runs on Node. You need to install that first.
sudo apt install nodejs # if you haven't yet
sudo npm i acmoj -gSigning in
Run acmoj login to sign in, acmoj logout to sign out. acmoj login -r (or --remember) will save your password on local disk, so you will not need to enter the password again after the session has expired.
Submitting C++ files
acmoj submit <problemId> [sourceFile]. If sourceFile is omitted, for example, acmoj submit 1000, then it would try to find a file in these locations:
1000.hppsrc/1000.hpp1000.hsrc/1000.h1000.cppsrc/1000.cppmain.cpp
Submitting git repositories
First configure the problem ID with acmoj git <problemId>. This command will create a .acmojrc file in the root directory of your git repository containing the problem ID.
When you are ready to submit, run acmoj submit with no additional parameters.