package
0.0.0-20241109225940-22c8e9342bf8
Repository: https://github.com/programme-lv/backend.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

version history

version "v4.0.0"

breaking change:

  • markdown sections do be divided by second level underlined headings

version "v3.0.0"

well i don't remember xd

  • image sizing through problem.toml
  • listing subtasks in problem.toml

version "v2.5.0"

  • added solutions directory
  • added solutions information to problem.toml
[[solutions]]
  filename = "kp_kp_ok.cpp"
  score_eq = 100
  author = "Krišjānis Petručeņa"
  og_max_exec_time = 0.035
  • added archive directory
  • added evaluation directory
    • checker.cpp
    • interactor.cpp

version "v2.4.0"

  • added assets directory
  • added origin notes dictionary to metadata

version "v2.3.0"

  • prefixed version by "v", migrated to semantic versioning 3 numbers
  • added concept of ids to tests and examples
  • when parsing default file ids are assigned by lex order of filenames
  • test default ids can then be overriden by test_id_overwrite table
  • tests in test group can be specified by ids instead of filenames
  • ids dictate the order in which tests are run

Motivation: filenames don't make much sense in systems where the filesystem is abstracted away. This change also decouples test ordering from filesystem ordering. It also makes toml files more readable.

problem.toml spec

  • added test_id_overwrite (string to int map)
  • added test_ids to test_groups object

version "2.2"

problem.toml spec

  • added visible_input_subtasks (int array) field.

Motivation: some subtasks have visible input to motivate solvers to attempt test cases on paper / in their head without developing an algorithm.

version "2.1"

problem.toml spec

  • added test_groups object array. test_groups object:
    • group_id (int)
    • points (int)
    • subtask (int)
    • public (bool)
    • test_filenames (string array)

Motivation: test groups are a concept used in Latvia's informatics olympiad. Each test group belongs to a subtask who's scoring is described in statement.

version "2.0"

problem.toml spec:

  • task_name
  • metadata
    • problem_tags
    • difficulty_1_to_5
    • task_authors
    • origin_olympiad
  • constraints
    • memory_megabytes
    • cpu_time_seconds

directory structure:

summa
├── evaluation
│   └── checker.cpp
├── examples
│   ├── 001.in
│   ├── 001.out
│   ├── 002.in
│   └── 002.out
├── problem.toml
├── statements
│   └── md
│       └── lv
│           ├── input.md
│           ├── output.md
│           └── story.md
└── tests
    ├── 001.ans
    ├── 001.in
    ├── 002.ans
    ├── 002.in