版本比较
NOI Linux 常用 Bash 指令
正文
增加 14 行删除 10 行
44 行未改动454647484950515253495051525354555556575859596061626263636465666768697067717244 行未改动自动对拍脚本:
```shset -ec generator.cppc std.cppc sol.cppfor ((i=1; i<=100000; i++)); do ./generator "$i"n=5000g++ -std=c++14 -O2 gen.cpp -o geng++ -std=c++14 -O2 std.cpp -o stdg++ -std=c++14 -O2 sol.cpp -o solfor ((i=1; i<=n; i++)); do ./gen $i if ! timeout 2s ./std; then echo "Test $i: std RE/TLE!" echo "Test $i: std RE/TLE" exit 1 fi if ! timeout 2s ./sol; then echo "Test $i: sol RE/TLE!" echo "Test $i: sol RE/TLE" exit 1 fi if ! diff -w -q .ans .out > /dev/null; then echo "Test $i: Wrong Answer!" if ! diff -w .ans .out > /dev/null; then echo "Test $i: Wrong answer" exit 1 fi if ((i % (n / 10) == 0)); then echo "Passed $i tests"; fidoneecho "Accpet!"echo "Accept"```