ubuntu下对拍
#!bin/bash
while true;
do
./gen
./std
./xx
if diff test.out test.ans;then
echo AC
else
echo WA
exit 0
fi
while true;
do
./gen
./std
./xx
if diff test.out test.ans;then
echo AC
else
echo WA
exit 0
fi
done
其中gen是数据生成器,std是标程,xx是要对拍的程序,要写文件读入输出