@echo off

set n=0

:a
  set /a n=%n%+1

  echo Test %n%
  gen_random.exe 0 10 20 > a.in || exit
  a < a.in > a.out || exit
  a_slow < a.in > a.ans || exit
  fc  a.out a.ans || exit
goto a