@The Structure Of Problems
the structure of the .tar.xz file
conf.json
http/cont.html or http/cont.pdf
res/testdata/[number].in
res/testdata/[number].out
If use Makefile
res/make/Makefile
res/make/[other files needed in make]
Note:
If cont.html exists, cont.pdf will be ignored.
Pack all data into one .tar.xz file, and don’t create any top level directory, just pack conf.json, res, http into .tar.xz directly.
CRLFs in testdata will be automatically converted to *nix format.
Challenger need to pass all testdata to get the testcase point.
The author of this document is bad at English.
tar -Jcvf dest_file_name.tar.xz conf.json res http
Some conf.json sample
clang++ with signle testcase
{
"timelimit":4000,
"memlimit":32768,
"compile":"g++",
"score":"rate",
"check":"diff",
"test":[
{
"data":[1],
"weight":100
}
]
}
clang++ with two testcase, first testcase has three testdata (1.in 2.in 3.in)
{
"timelimit":1000,
"memlimit":65536,
"compile":"g++",
"score":"rate",
"check":"diff",
"test":[
{
"data":[1,2,3],
"weight":50
},
{
"data":[4,5],
"weight":50
}
]
}
@#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
char in[25];
gets(in);
printf("Hello ,%s !\n",in);
return 0;
}