Skip to content

Problem Structure

Kerollos Magdy edited this page Dec 27, 2018 · 4 revisions

How problems are stored?

Problems are stored in problems_db folder.
Every problem has a folder named according to the problem_id in the database.
Problem folder contains 3 elements:

  1. problem.pdf a file contains the description of the problem, input, and output samples.
  2. number_of_test_cases.txt a file contains only the number of test cases
    NOTE: no empty lines at end of file
  3. test_cases a folder contains input and output files in the following format
    <test_case_number>.in
    <test_case_number>.out
    NOTE: test_case_number count starts with 1


    Tree view

my_out folder is automatically created by the judge, it's used in storing the user output to compare it with the accepted output.
Clone this wiki locally