[backend]将testdata/下的测例替换为了赛方测试用例,更新了测试脚本
This commit is contained in:
34
testdata/h_functional/03_branch.sy
vendored
Normal file
34
testdata/h_functional/03_branch.sy
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
int main() {
|
||||
const int a = 1;
|
||||
const int b = 2;
|
||||
const int c = 3;
|
||||
const int d = 4;
|
||||
const int e = 5;
|
||||
const int f = 6;
|
||||
if (a * b + c < 6 && d != 0) {
|
||||
if (e || !a + 0) {
|
||||
if (c == 2 && d + e > 2) return 3;
|
||||
else {
|
||||
if (f % c && e) return 4;
|
||||
else {
|
||||
if (d / b + a >= 2) {
|
||||
if (e - f >= 0 || d > 4) return 6;
|
||||
else {
|
||||
if (c != f) {
|
||||
if (b + e * d > 10) {
|
||||
if (!f) return 9;
|
||||
else return 10;
|
||||
}
|
||||
else return 8;
|
||||
}
|
||||
else return 7;
|
||||
}
|
||||
}
|
||||
else return 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
else return 2;
|
||||
}
|
||||
else return 1;
|
||||
}
|
||||
Reference in New Issue
Block a user