#!/bin/bash t=0; while true; do let "t = $t + 1" printf $t printf ": " ./rand > rand.txt ./AC < rand.txt > AC.out ./WA < rand.txt > WA.out if diff AC.out WA.out; then printf " " else printf "WA " gedit rand.txt break fi done
chmod +x bat.sh ./bat.sh