标签:
#!/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
标签:
原文地址:http://www.cnblogs.com/qzqzgfy/p/5631759.html