开学酒局subtask计分脚本
题目链接:开学酒局
Subtask #1(1~3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@num=0;
if @status1!=AC; then
@num=@num+1;
fi
if @status2!=AC; then
@num=@num+1;
fi
if @status3!=AC; then
@num=@num+1;
fi
@final_time=@time1+@time2+@time3;
@final_memory=@memory1+@memory2+@memory3;
if @num==0; then
@total_score=10;
@final_status=AC;
else
if @num==1;then
@total_score=6;
@final_status=UNAC;
else
@total_score=6-(@num-1)*3;
@final_status=UNAC;
fi
fi
1 | @num=0; |
Subtask #2(4~9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@num=0;
if @status4!=AC; then
@num=@num+1;
fi
if @status5!=AC; then
@num=@num+1;
fi
if @status6!=AC; then
@num=@num+1;
fi
if @status7!=AC; then
@num=@num+1;
fi
if @status8!=AC; then
@num=@num+1;
fi
if @status9!=AC; then
@num=@num+1;
fi
@final_time=@time4+@time5+@time6+@time7+@time8+@time9;
@final_memory=@memory4+@memory5+@memory6+@memory7+@memory8+@memory9;
if @num==0; then
@total_score=20;
@final_status=AC;
else
if @num<3;then
@total_score=20-@num*4;
@final_status=UNAC;
else
@total_score=20-8-(@num-2)*3;
@final_status=UNAC;
fi
fi
1 | @num=0; |
Subtask #3(10~18)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
@num=0;
if @status10!=AC; then
@num=@num+1;
fi
if @status11!=AC; then
@num=@num+1;
fi
if @status12!=AC; then
@num=@num+1;
fi
if @status13!=AC; then
@num=@num+1;
fi
if @status14!=AC; then
@num=@num+1;
fi
if @status15!=AC; then
@num=@num+1;
fi
if @status16!=AC; then
@num=@num+1;
fi
if @status17!=AC; then
@num=@num+1;
fi
if @status18!=AC; then
@num=@num+1;
fi
@final_time=@time10+@time11+@time12+@time13+@time14+@time15+@time16+@time17+@time18;
@final_memory=@memory10+@memory11+@memory12+@memory13+@memory14+@memory15+@memory16+@memory17+@memory18;
if @num==0; then
@total_score=30;
@final_status=AC;
else
if @num<4;then
@total_score=30-@num*4;
@final_status=UNAC;
else
@total_score=30-12-(@num-3)*3;
@final_status=UNAC;
fi
fi
1 | @num=0; |
Subtask #4(19~22)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@num=0;
if @status19!=AC; then
@num=@num+1;
fi
if @status20!=AC; then
@num=@num+1;
fi
if @status21!=AC; then
@num=@num+1;
fi
@final_time=@time19+@time20+@time21;
@final_memory=@memory19+@memory20+@memory21;
if @num==0; then
@total_score=10;
@final_status=AC;
else
if @num==1;then
@total_score=6;
@final_status=UNAC;
else
@total_score=6-(@num-1)*3;
@final_status=UNAC;
fi
fi
1 | @num=0; |
Subtask #5(23~30)
1 | @num=0; |