add test data
This commit is contained in:
21
test/testcases/array_test1.c
Normal file
21
test/testcases/array_test1.c
Normal file
@ -0,0 +1,21 @@
|
||||
#include "io.inc"
|
||||
|
||||
int a[4];
|
||||
int main() {
|
||||
int b[4];
|
||||
int i;
|
||||
for (i = 0; i < 4; i++) {
|
||||
a[i] = 0;
|
||||
b[i] = i + 1;
|
||||
}
|
||||
for (i = 0; i < 4; i++) {
|
||||
printInt(a[i]);
|
||||
}
|
||||
|
||||
int *p;
|
||||
p = b;
|
||||
for (i = 0; i < 4; i++) {
|
||||
printInt(p[i]);
|
||||
}
|
||||
return judgeResult % Mod; // 123
|
||||
}
|
Reference in New Issue
Block a user