Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xalanq committed Jul 19, 2019
1 parent 3a6bf8d commit 47c304a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ If you want to compete, the best command is "cf race 1111" where "1111" is the c
Usage:
cf config (login | add | del | default)
cf submit [<filename>]
cf submit [(<contest-id> <problem-id>)] [<filename>]
cf list [<contest-id>]
cf parse [<contest-id>] [<problem-id>]
Expand Down Expand Up @@ -178,18 +177,10 @@ Codeforces Tool is a command-line tool. You should run it in terminal.

### I cannot use `cf` command

You should put the `cf` program to a path (e.g. `/usr/bin` in Linux) which has been added to system environment variable PATH.
You should put the `cf` program to a path (e.g. `/usr/bin/` in Linux) which has been added to system environment variable PATH.

Or just google "how to add a path to system environment variable PATH".

### What's the `cp` command in the GIF above

`cp` is a system command, meaning copy a file.

In the GIF above, I just copied the file (already written) to current path. So I didn't need to write codes.

In fact, you can run `cf gen` to generate a code (named as "a.cpp" or otherelse) from a template into current path.

### How to add a new testcase

Create two extra testcase files `inK.txt` and `ansK.txt` (K is a string with 0~9).
11 changes: 1 addition & 10 deletions README_zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ $ go build -ldflags "-s -w" cf.go
支持的命令:
cf config (login | add | del | default)
cf submit [<filename>]
cf submit [(<contest-id> <problem-id>)] [<filename>]
cf list [<contest-id>]
cf parse [<contest-id>] [<problem-id>]
Expand Down Expand Up @@ -172,18 +171,10 @@ Codeforces Tool 是命令行界面的工具,你应该在终端里运行这个

### 我无法使用 `cf` 这个命令

你应该将 `cf` 这个程序放到一个已经加入到系统变量 PATH 的路径里 (比如说 Linux 里的 `/usr/bin` )。
你应该将 `cf` 这个程序放到一个已经加入到系统变量 PATH 的路径里 (比如说 Linux 里的 `/usr/bin/` )。

或者你直接去搜 "怎样添加路径到系统变量 PATH"。

### 你 GIF 里的 `cp` 命令是啥啊

`cp` 是一个系统命令,表示复制文件。

在上边的 GIF 里,我只是将我已经写好的代码复制到当前文件夹下,这样我就不用写代码了。

事实上,你可以执行 `cf gen` 生成模板代码到当前文件夹下。

### 如何加一个新的测试数据

新建两个额外的测试数据文件 `inK.txt``ansK.txt` (K 是包含 0~9 的字符串)。

0 comments on commit 47c304a

Please sign in to comment.