New round type - penalty-round
Review Request #193 - Created Feb. 15, 2012 and submitted
Information | |
---|---|
Adrian Budau | |
infoarena | |
Reviewers | |
hackers | |
Added a new round type called penalty-round. It works in the following way 1) Any user receives a percent of the task solved based on the number of submissions and elapsed time since the beginning of the contest. 2) By default a user looses 1% of his score every 2 minutes(can be changed) 3) A user looses 3% of his score per additional submission(can be changed) 4) For a solved task a user can not receive less than 50%(can be changed) The rest depends on the task configuration.
Looks good to me. I'm a bit worried about performance, but we should see how the site acts when in the first round.
Review request changed
Change Summary:
Users can now receive 100 points (and only on the first submit) Fixed score calculation(there was a real numbers division instead of integer) Added job detail for penalty-round tasks and updated the macro_tasks
Diff: |
Revision 2 (+225 -10) |
---|
The way you compute penalty score for submissions is still wrong. I was able to get a full score (100 pts) with my second submission for one task.
Review request changed
Change Summary:
Fixed the way the submission number was calculated for a job. Hopefuly it is done properly now
Diff: |
Revision 3 (+224 -10) |
---|
Can you please modify the Tasks macro so it shows a green tick for solved problems in penalty rounds?
We tested this diff on live. One problem that appeared was that it would crash for submissions without any round id. This happens for tasks that are currently being added by their authors and required changes in common/db/task.php and eval/eval. I've committed a fixed version of this diff, with some other small changes.