在程序对应文件夹下存为.sh文件
在终端命令中进入相应文件夹,用 sh XXX.sh 调用
while true; do ./datamaker>tmp.in ./baoli<tmp.in>dui.out ./test<tmp.in>pai.out if diff dui.out pai.out; then printf "AC " elif diff -B -b dui.out pai.out; then printf "PE " else printf "WA " exit 0 fi done