对拍

#!/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
posted @ 2020-09-04 20:00  goote~  阅读(168)  评论(3编辑  收藏  举报
Live2D