编辑
2025-09-29
XCPC
00
请注意,本文编写于 112 天前,最后修改于 80 天前,其中某些信息可能已经过时。

目录

初始化init.sh
运行run.sh
对拍pai.sh

初始化init.sh

sh
for i in {a..m} do rm -rf $i mkdir $i touch $i/$i.cpp $i/$i.in $i/$i.out done

运行run.sh

sh
file=$1/$1.cpp g++ -o ./temp/main $file ./temp/main < $1/$1.in > $1/$1.out cat $1/$1.out

对拍pai.sh

sh
g++ -o ./temp/gen gen.cpp g++ -o ./temp/std std.cpp g++ -o ./temp/tle tle.cpp while true; do ./temp/gen > in.txt ./temp/tle < in.txt > tleout.txt ./temp/std < in.txt > out.txt diff tleout.txt out.txt done
如果对你有用的话,可以打赏哦
打赏
ali pay
wechat pay