对拍
#!/bin/bash
i=0
g++ a.cpp -o c
g++ b.cpp -o d
g++ data.cpp -o data
while true;do
./data > data.in
./c < data.in > c.out
./d < data.in > d.out
let "i = $i + 1"
printf $i
printf ": "
if diff -b -B -q c.out d.out;then
echo "AC"
else
echo "FUCK!!!!!!!!"
break
fi
done