WIN和LIN環境下對拍程序

LIN:

while true;do

./gen//數據生成
./bf//暴力
./a//正解

if diff ./bf.out ./a.out ; then
continue
else break
fi

done

WIN:

loop
gen.exe > input.in
bf.exe < input.in > bf.out
yes.exe < input.in > yes.out
fc bf.out yes.out 
if not errorlevel 1 goto loop
pause
end 

生成一個.bat就好了

發佈了95 篇原創文章 · 獲贊 14 · 訪問量 4萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章