akraievoy / elw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New code criteria: "correctness" and "disregarded conventions"

divijan opened this issue · comments

commented

Some programs just pass tests but would obviously give wrong answer in some cases. Pretty serious penalty (15-40%) should ensue. This would be a T/F type criterion.
Disregarded conventions, like not saving $ra, but doing arithmetic with it in order to restore after procedure call, should produce mild penalties like 5% or even less per occurrence.

commented

The first criterion is called code.incorrect, it is from 0 to 1 and results in 35% penalty.
The second one is called code.nonconv, max. power is 5 and it costs 5% a pop.
Currently they are only added into aos course description.