@echo off
setlocal enabledelayedexpansion

:: --- Case 1-2: 签到小数据 ---
echo Generating Case 1-2: Small Random...
generator.exe 10 15 0 > 1.in
std.exe < 1.in > 1.out
generator.exe 100 200 0 > 2.in
std.exe < 2.in > 2.out

:: --- Case 3-4: 极端长链 (测试 Long Long 和 深度) ---
echo Generating Case 3-4: Long Chain...
generator.exe 200000 200000 1 > 3.in
std.exe < 3.in > 3.out
generator.exe 100000 150000 1 > 4.in
std.exe < 4.in > 4.out

:: --- Case 5-6: 菊花图 (测试大量入边) ---
echo Generating Case 5-6: Star Graph...
generator.exe 200000 200000 2 > 5.in
std.exe < 5.in > 5.out

:: --- Case 7-8: 不连通图 (测试 -1 情况) ---
echo Generating Case 7-8: Disconnected...
generator.exe 200000 100000 3 > 6.in
std.exe < 6.in > 6.out

:: --- Case 9-10: 大规模完全随机 ---
echo Generating Case 9-10: Huge Random...
generator.exe 200000 200000 0 > 7.in
std.exe < 7.in > 7.out
generator.exe 200000 200000 0 > 8.in
std.exe < 8.in > 8.out

echo All Done!
pause