Skip to content

Problem Format

Kevin Lu edited this page Nov 18, 2024 · 1 revision

In pzoj, problems should be stored inside a folder named problems in the root directory (the one with web-backend, judging-backend, etc.)

Each problem should be a folder, containing the following files:

  • judge.txt - specifies the time limit, memory limit, etc. for judging
  • meta.txt - specifies the name of the problem, stars, tags, permissions
  • test/ - test cases for the problem
  • problem.md - the problem statement, written in Markdown

judge.txt

Should be formatted as following:

(time limit (ms)) (mem limit (MB)) (checker)
(input file 1) (output file 1)
(input file 2) (output file 2)
...
(input file n) (output file n)

For example:

1000 256 default
1.in 1.out
2.in 2.out
3.in 3.out
break_hashing.in break_hashing.out
input.in output.out

Note that the file names should correspond to actual files within the test/ directory.

meta.txt

(name of problem)
(stars of problem, 1-10)
(tag of problem)
(nothing if the problem is public, otherwise [contest_id] of the contest that the problem is in)
Clone this wiki locally