搞了一上午终于弄好了一个对拍,估计以后调试会方便很多。
#!/bin/bash while true; do ./makedate>tmp.in ./XXXXX<tmp.in>tmp.out ./XXXXX<tmp.in>tmp2.out if diff tmp.out tmp2.out; then printf AC else echo WA exit 0 fi sleep 1 done
时间: 2024-10-04 07:34:04
搞了一上午终于弄好了一个对拍,估计以后调试会方便很多。
#!/bin/bash while true; do ./makedate>tmp.in ./XXXXX<tmp.in>tmp.out ./XXXXX<tmp.in>tmp2.out if diff tmp.out tmp2.out; then printf AC else echo WA exit 0 fi sleep 1 done