从codeforces和其他在线评委那里获取输入和输出
cftool的Python项目详细描述
#cftool公司 获取[codeforces](https://www.codeforces.com)或[URI]上特定问题的输入和输出(www.urionlinejudge.com.br/)
啊![示例](http://i.imgur.com/ZDCb1po.png?1)
#安装
确保安装了python。 ` python -m pip install git+https://github.com/guilhermeleobas/cftool ` 或者 ` python -m pip install cftool `
#版本 1.0.5
#用法
###得到 ` cftool get cf550A # Download inputs and outputs for problem 550A cftool get cf600 # Download inputs and outputs for all problems on contest 600. cftool get uri1400 # URI ` 您还可以指定一个链接来获取输入和输出。 ` cftool get https://www.urionlinejudge.com.br/judge/pt/problems/view/1001 `
###编译 ` cftool compile code.cc # Compile code.cc using g++. cftool compile -lc++11 code.cc # Compile code.cc with g++ 11. cftool compile code.py # nothing will happen. `
运行/测试 使用620A输入运行code.cc并检查其输出是否正确。 ` cftool run code.cc cf620A `
或者可以运行cftool test uri1574.cc这是cftool run uri1574.cc uri1574的语法糖
要获取可用命令的完整列表,请使用–help标志运行cf
#许可证 麻省理工学院