对拍 a.sh 代码复制while true do ./mk ./a ./b if diff a.out a.ans -w -B then echo AC else echo WA read -n 1 fi done chmod +x a.sh ./a.sh 命令行 代码复制 ctrl+c ctrl+d 文件结束符(EOF) tab 自动补全 & 后台运行 ./a < a.in > a.out