[backend]将testdata/下的测例替换为了赛方测试用例,更新了测试脚本
This commit is contained in:
18
testdata/functional/67_reverse_output.sy
vendored
Normal file
18
testdata/functional/67_reverse_output.sy
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
void reverse(int n) {
|
||||
int next;
|
||||
if (n <= 1) {
|
||||
next=getint();
|
||||
putint(next);
|
||||
}
|
||||
else {
|
||||
next=getint();
|
||||
reverse(n-1);
|
||||
putint(next);
|
||||
}
|
||||
}
|
||||
|
||||
int main() {
|
||||
int i=200;
|
||||
reverse(i);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user