关于自定义计分脚本的一则求助
  • 板块学术版
  • 楼主zhjzhmh
  • 当前回复0
  • 已保存回复0
  • 发布时间2024/7/27 22:16
  • 上次更新2024/7/28 08:41:55
查看原帖
关于自定义计分脚本的一则求助
233815
zhjzhmh楼主2024/7/27 22:16
@a = @score1 + @score2 + @score5;
@b = @time1 + @time2 + @time5;
if @c < @memory1; then
    @c = @memory1;
fi
if @c < @memory2; then
    @c = @memory2;
fi
if @c < @memory5; then
    @c = @memory5;
fi
if @status3 == AC and @status2 == AC; then
    @a = @a + @score3;
    @b = @b  + @time3;
    if @c < @memory3; then
        @c = @memory3;
    fi
fi	
if @status3 == AC and @status2 == AC and @status4 == AC; then
    @a = @a + @score4;
    @b = @b  + @time4;
    if @c < @memory4; then
        @c = @memory4;
    fi
fi
if @status3 == AC and @status2 == AC and @status4 == AC and @status1 == AC and @status5 == AC and @status6 == AC; then
    @a = @a + @score6;
    @b = @b  + @time6;
    if @c < @memory6; then
        @c = @memory6;
    fi
fi
if @status3 == AC and @status2 == AC and @status4 == AC and @status1 == AC and @status5 == AC and @status7 == AC; then
    @a = @a + @score7;
    @b = @b  + @time7;
    if @c < @memory7; then
        @c = @memory7;
    fi
fi
if @a == 100; then
    @final_status = AC;
    @total_score = @a;
    @final_time = @b;
    @final_memory = @c; 
else
    @final_status = UNAC;
    @total_score = @a;
    @final_time = @b;
    @final_memory = @c; 
fi

RT,如上是本人写的实现子任务依赖的自定义计分脚本,但是不知道哪里写挂了,导致测试点显示全为AC,但是最终显示 UKE,0

2024/7/27 22:16
加载中...