How anonymoose725/comp321-kattis-problem works
This repository packages a programming-contest problem: its statement defines the task, contestant solutions compute results from input, and supporting deliverables validate inputs and provide test cases with expected answers. The main user workflow is problem input to a correct solution to its computed output; the validator and test-data tools support problem authors separately. The sampled answer generator explicitly invokes the Python solution to create answer files. The presentation slides are a documented deliverable but are not present in the tree. Arrows are limited to relationships shown in the README or sampled source.
Main entry points: answer_generator.py Answer generator · sol2.py Python solution · sol1.java Java solution · wa.py Non-preemptive solution
Components 12
Problem definition
- Problem statement
problem_statement/problem.en.tex
Solution implementations
- Python solution
submissions/correct_solutions/sol2.py - Java solution
submissions/correct_solutions/sol1.java - Non-preemptive solution
submissions/wrong_answer/wa.py - Slow solution
submissions/time_limit_exceeded/tle.py
Problem authoring tools
- Input validator
input_format_validators/validate.py - Case generator
test_case_generator/generate.py - Answer generator
test_case_generator/answer_generator.py
Test corpus
Other components
- Contestant
- Problem input
- Computed result
Connections 15
- Contestant → Problem input: provides
README.md - Problem input → Python solution: solves
submissions/correct_solutions/sol2.py - Python solution → Computed result: prints result
submissions/correct_solutions/sol2.py - Problem input → Java solution: solves
submissions/correct_solutions/sol1.java - Java solution → Computed result: prints result
submissions/correct_solutions/sol1.java - Problem input → Non-preemptive solution: attempts solve
submissions/wrong_answer/wa.py - Non-preemptive solution → Computed result: prints result
submissions/wrong_answer/wa.py - Problem input → Slow solution: attempts solve
submissions/time_limit_exceeded/tle.py - Slow solution → Computed result: prints result
submissions/time_limit_exceeded/tle.py - Problem statement → Problem input: specifies format
README.md - Problem input → Input validator: checks format
input_format_validators/validate.py - Case generator → Computed result: emits cases
test_case_generator/generate.py - Sample and secret cases → Answer generator: reads inputs
test_case_generator/answer_generator.py - Answer generator → Python solution: invokes
test_case_generator/answer_generator.py - Answer generator → Sample and secret cases: writes answers
test_case_generator/answer_generator.py