#!/bin/bash
# Generate all 60 tests for Task GT13 СКЛАД
set -e
mkdir -p tests

g++ -O2 -o gen_range gen_range.cpp

echo "Generating subtask 1 (1-10)..."
./gen_range 1 10 2>/dev/null

echo "Generating subtask 2 (11-20)..."
./gen_range 11 20 2>/dev/null

echo "Generating subtask 3 (21-30)..."
./gen_range 21 30 2>/dev/null

echo "Generating subtask 4 (31-45, includes 3 anti-Mo)..."
./gen_range 31 45 2>/dev/null

echo "Generating subtask 5 (46-60, includes 3 anti-Mo)..."
./gen_range 46 60 2>/dev/null

echo "Done! $(ls tests/*.in | wc -l) tests generated in tests/"
