TCFrame
A test case generation framework for competitive programming problems.
Define input/output formats
void InputFormat() {
LINE(N);
LINES(A) % SIZE(N);
}
void OutputFormat() {
LINE(answer);
}
Define constraints
void Constraints() {
CONS(1 <= N && N <= 1000);
CONS(eachElementBetween(A, 1, 1000000));
}
Define test cases
void TestCases() {
CASE(N = 1, A = {10});
CASE(N = 100, randomArray());
}