Blog

 

Normaloze (2010/preec/P): gen, eval, solver

normalize by Tibor 'Igor2' Palinkas on 2021-03-12

Tags: 2010, preec, 2010preec, eval, gen, solver

node source

 

 

Abstract: n/a

 

Datasheet

Task Normalize
When 2010 preec P
Description html
Input pack zip

Eval, generator, solver

The first task on a preec must be a real trivial task so that teams can try out the submission system without having to code much for a solver.

The generator, solver and an eval are all available. The eval reads the internal eval format: first line is the input file number in decimal, from 1 to 10, the second line is 0, then the submitted solution. Since there's an exact solution, the eval prints 1 when the solution is accepted and 0 otherwise. After the 0 it also prints the reason to help the organizers debug.

Note: the generator may not generate the same input files that we have in the input pack, because it does not implement a portable/reproducible random generator. Rationale: we knew we have to run it only once then the input files are published as static files.

The eval code is Copyright (C) 2010 Szabolcs Nagy and is licensed under the GNU GPL version 2.