本蒟蒻在个人题库里面搞了一道题目,想弄个subtask出来却发现没有这个选项!!!
在膜拜了一两年前的各位大佬发的有关这个的帖子之后,本蒟蒻试着写了这样一个脚本,但是遗憾的是它UKE了!!!
求救各位大佬,该怎么写这个脚本啊!!!
@total_score = 0;
if ((@status1 == AC) and (@status2 == AC) and (@status3 == AC) and (@status4 == AC) and (@status5 == AC)); then
@total_score = @total_score + 25;
fi
if ((@status6 == AC) and (@status7 == AC) and (@status8 == AC) and (@status9 == AC) and (@status10 == AC)); then
@total_score = @total_score + 25;
fi
if ((@status11 == AC) and (@status12 == AC) and (@status13 == AC) and (@status14 == AC) and (@status15 == AC)); then
@total_score = @total_score + 25;
fi
if ((@status16 == AC) and (@status17 == AC) and (@status18 == AC) and (@status19 == AC) and (@status20 == AC)); then
@total_score = @total_score + 25;
fi
if (@status1 != AC) or (@status2 != AC) or (@status3 != AC) or (@status4 != AC) or (@status5 != AC) or (@status6 != AC) or (@status7 != AC) or (@status8 != AC) or (@status9 != AC) or (@status10 != AC) or (@status11 != AC) or (@status12 != AC) or (@status13 != AC) or (@status14 != AC) or (@status15 != AC) or (@status16 != AC) or (@status17 != AC) or (@status18 != AC) or (@status19 != AC) or (@status20 != AC); then
@final_status = UNAC;
else
@final_status = AC;
@final_time = @time1 + @time2 + @time3 + @time4 + @time5 + @time6 + @time7 + @time8 + @time9 + @time10 + @time11 + @time12 + @time13 + @time14 + @time15 + @time16 + @time17 + @time18 + @time19 + @time20;
@final_memory = @memory20;
fi
谢谢各位大佬昂~