class KnightTask(Task): id = 'knight' tests = [ Test(id='01', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='02', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='03', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='04', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='05', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='06', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='07', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='08', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='09', time=1.0, score=75.0/30.0, dat=None, chk=None), Test(id='10', time=1.0, score=75.0/30.0, dat=None, chk=None), ] def load_dat(self, stream): return Dat(N=self.read(stream, int)) def load_chk(self, stream): return Chk(X=self.read(stream, long)) def save_dat(self, stream, dat): self.write(stream, dat.N) def load_sol(self, stream): X = self.read(stream, long) self.read(stream, None) return Sol(X=X)