a simple offline judge