我写了一个自定义计分,可是为什么一直 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