mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 05:48:41 +00:00
chore: update default score_type
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
22655baad8
commit
167bc3f56f
@ -1805,7 +1805,7 @@ void judger_init(int argc, char **argv) {
|
|||||||
PointInfo::show_out = conf_str("show_out", "on") == "on";
|
PointInfo::show_out = conf_str("show_out", "on") == "on";
|
||||||
PointInfo::show_res = conf_str("show_res", "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") {
|
if (score_type == "int") {
|
||||||
score_t::mode = SM_INT;
|
score_t::mode = SM_INT;
|
||||||
} else {
|
} else {
|
||||||
|
@ -75,7 +75,7 @@ class UOJProblemConfigure {
|
|||||||
$this->simple_form->appendHTML(static::getCardHeader('基本信息'));
|
$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_judger', ['on' => '默认', 'off' => '自定义 Judger'], '测评逻辑', 'on');
|
||||||
$this->addSelect($this->simple_form, 'use_builtin_checker', self::$supported_checkers, '比对函数', 'ncmp');
|
$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::getCardFooter());
|
||||||
|
|
||||||
$this->simple_form->appendHTML(static::getCardHeader('数据配置'));
|
$this->simple_form->appendHTML(static::getCardHeader('数据配置'));
|
||||||
|
Loading…
Reference in New Issue
Block a user