-
Notifications
You must be signed in to change notification settings - Fork 0
v0.2 Basic Usage
陈鼫RWHTYFZ edited this page Jan 17, 2023
·
4 revisions
git clone https://github.com/CroMarmot/yxr-atcoder-core.git
cd yxr-atcoder-core
pip3 install -e .
git clone https://github.com/CroMarmot/oiTerminal -b He
cd oiTerminal
pip3 install -e .
# enable auto completion
./auto-completion/gen-ot-auto-completion.sh
source /tmp/ot-auto-completion.sh
oi init
.oiTerminal/CF_RCPC
, example:
ea139348c88a2cc70d700f898c8b0d0a
the RCPC
field in your browser's codeforces.com
's cookie
replace Cro-Marmot
with your handle
oi config account new Codeforces Cro-Marmot
oi config template new PLATFORM NAME PATH COMPILE EXECUTE LANGID
NAME
is nickname for this config
PATH
replace /mycode/template/Main.cpp
with your template code path
COMPILE
: Compile command
EXECUTE
: Execute command
LANGID
: 73
is for GNU G++20 11.2.0 (64 bit, winlibs)
in Codeforces
(different in different platforms, later will supported, supported in v0.1)`
Example:
oi config template new Codeforces C++20 "/mycode/template/Main.cpp" "clang++ -o Main Main.cpp -std=gnu++17 -O2 -g -Wall -Wcomma -Wextra -fsanitize=integer,undefined,null,alignment" "./Main" 73
oi contest fetch Codeforces 1713
in your code folder
oi test
in your code folder
oi submit
oi --help
oi config --help
oi contest --help