mirror of
https://github.com/QingdaoU/OnlineJudge.git
synced 2025-11-04 14:49:58 +08:00
增加判题的测试用例文件
This commit is contained in:
parent
502b4944f1
commit
2752647f58
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;
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user