#!/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
时间: 2024-09-27 04:32:38