rt,测试点 11 至 15 属于同一个子任务,没通过的测试点的时间设置为 57 ms,空间设置为 27mb,设置成一个彩蛋。
下面的代码编译无误,但是无法正确运行,求大佬教学。
if(@status11==AC)and(@status12==AC)and(@status13==AC)and(@status14==AC)and(@status15==AC);
then
@total_score=20;
@final_status=AC;
@final_time=@time11;
@final_memory=@memory11;
else
if(@status11!=AC);
then
@status11=WA;
@score11=0;
@time11=57;
@memory11=27;
fi
if(@status12!=AC);
then
@status12=WA;
@score12=0;
@time12=57;
@memory12=27;
fi
if(@status13!=AC);
then
@status13=WA;
@score13=0;
@time13=57;
@memory13=27;
fi
if(@status14!=AC);
then
@status14=WA;
@score14=0;
@time14=57;
@memory14=27;
fi
if(@status15!=AC);
then
@status15=WA;
@score15=0;
@time15=57;
@memory15=27;
fi
@total_score=@score11+@score12+@score13+@score14+@score15;
@final_status=UNAC;
@final_time=@time11;
@final_memory=@memory11;
fi