WIN和LIN环境下对拍程序

来源:互联网 发布:win32多线程编程 编辑:程序博客网 时间:2024/06/05 20:11

LIN:

while true;do./gen//数据生成./bf//暴力./a//正解if diff ./bf.out ./a.out ; thencontinueelse breakfidone

WIN:

loopgen.exe > input.inbf.exe < input.in > bf.outyes.exe < input.in > yes.outfc bf.out yes.out if not errorlevel 1 goto looppauseend 

生成一个.bat就好了