本文示範TOJ的投稿格式。
參考資料:By PZread
代碼:
- @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
- }
- ]
- }
難疑排解 FAQ
Q1. .tar.xz格式如何製作?
A.用7-zip把檔案先封成.tar格式後再壓縮成.xz格式
[範本]
投稿題目:Hello World!
題目來源:原創題
題幹:基本IO
題目敘述:
(完整敘述須放置於檔案之/html目錄下,僅接受cont.html及cont.pdf兩種,cont.html優先使用)
跟別人打招呼是一件有禮貌的事。來向大家打招呼吧!
輸入說明:
向他打個招呼吧!名子加上 Hello ,[name] ! 後輸出。
範例輸入:
(請用code標籤)
範例輸出:
(請用code標籤)
標程:
代碼:
- @#include<cstdio>
- #include<iostream>
- using namespace std;
- int main()
- {
- char in[25];
- gets(in);
- printf("Hello ,%s !\n",in);
- return 0;
- }
測試資料下載:
(請符合正確的檔案格式)
mega網頁範本:
http://pc2.twbbs.org:81/lfs/cont.html
欲投稿題目者,只需提供題目敘述、測資、標準程式,並發文至題目發表頁面。