增加判题的测试用例文件
This commit is contained in:
12
judge/tests/c/cpu_time_timeout.c
Normal file
12
judge/tests/c/cpu_time_timeout.c
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a = 0;
|
||||||
|
int i = 0;
|
||||||
|
for(i = 0; i < 9999999999;i++)
|
||||||
|
{
|
||||||
|
a += i;
|
||||||
|
}
|
||||||
|
printf("%d", a);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
6
judge/tests/c/real_time_timeout.c
Normal file
6
judge/tests/c/real_time_timeout.c
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include <stdio.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
8
judge/tests/c/success.c
Normal file
8
judge/tests/c/success.c
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
# include <stdio.h>
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
int a, b;
|
||||||
|
scanf("%d %d", &a, &b);
|
||||||
|
printf("%d", a + b);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user