对拍 For Linux
#!/bin/sh
g++ -g gene.cpp -o gene
g++ -g a.cpp -o a
g++ -g b.cpp -o b
while true; do
./gene > input
./a < input > output
./b < input > answer
if diff output answer; then
echo AC
else
echo WA
break
fi
done
命名:pat.sh