chore: update default score_type
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-20 22:04:24 +08:00
parent 22655baad8
commit 167bc3f56f
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 2 additions and 2 deletions

View File

@ -1805,7 +1805,7 @@ void judger_init(int argc, char **argv) {
PointInfo::show_out = conf_str("show_out", "on") == "on";
PointInfo::show_res = conf_str("show_res", "on") == "on";
string score_type = conf_str("score_type", "int");
string score_type = conf_str("score_type", "real-2");
if (score_type == "int") {
score_t::mode = SM_INT;
} else {

View File

@ -75,7 +75,7 @@ class UOJProblemConfigure {
$this->simple_form->appendHTML(static::getCardHeader('基本信息'));
$this->addSelect($this->simple_form, 'use_builtin_judger', ['on' => '默认', 'off' => '自定义 Judger'], '测评逻辑', 'on');
$this->addSelect($this->simple_form, 'use_builtin_checker', self::$supported_checkers, '比对函数', 'ncmp');
$this->addSelect($this->simple_form, 'score_type', self::$supported_score_types, '测试点分数数值类型', 'int');
$this->addSelect($this->simple_form, 'score_type', self::$supported_score_types, '测试点分数数值类型', 'real-2');
$this->simple_form->appendHTML(static::getCardFooter());
$this->simple_form->appendHTML(static::getCardHeader('数据配置'));