package be.mokarea.gcj.common;

public abstract class TestCaseReader<T extends TestCase> {
	public abstract T nextCase() throws Exception;

	public abstract int getMaxCaseNumber();
}



import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;

public abstract class TestCase {
	
	public abstract void readInput(BufferedReader in) throws IOException, MalformedInputFileException;
	
	public abstract void solve();
	
	public abstract void writeOutput(PrintWriter out);
	
}