萌新求助 自定义计分
  • 板块学术版
  • 楼主可爱
  • 当前回复11
  • 已保存回复11
  • 发布时间2020/7/13 14:34
  • 上次更新2023/11/6 23:12:18
查看原帖
萌新求助 自定义计分
322108
可爱楼主2020/7/13 14:34

我写了一个自定义计分,可是为什么一直 UKE 啊/kel

这个自定义计分应用于记录总分。

代码:

if @status1 == AC and @status2 == AC and @status3 == AC and @status4 == AC and @status5 == AC and @status6 == AC and @status7 == AC; then
    @total_score = 100;
    @final_status = AC;
    @final_time = @time7;
    @final_memory = @memory7;
else
    if @status3 == AC and @status7 == AC and (@status1 != AC and @status2 != AC and @status4 != AC and @status5 != AC and @status6 != AC); then
        @total_score = 40;
        @final_status = UNAC;
        @final_time = @time7;
        @final_memory = @time7;
    else
        if @status3 == AC and @status7 == AC and (@status1 == AC or @status2 == AC or @status4 == AC or @status5 == AC or @status6 == AC); then
            @total_score = 50;
            @final_status = UNAC;
            @final_time = @time7;
            @final_memory = @time7;
        else
            if @status3 == AC; then
                @total_score = 20;
                @final_status = UNAC;
                @final_time = @time3;
                @final_memory = @time3;
            else
                if @status7 == AC; then
                    @total_score = 25;
                    @final_status = UNAC;
                    @final_time = @time7;
                    @final_memory = @time7;
                else
                    @total_score = 0;
                    @final_status = UNAC;
                    @final_time = 0;
                    @final_memory = 0;
                fi
            fi
        fi
    fi
fi
2020/7/13 14:34
加载中...