Problem Statements, Solutions & Test Cases
This repository contains the complete problem set and supporting materials from CookOff 11, held by CodeChef-VIT at GraVITas 2026.
The repository has been made public after the conclusion of the event so that participants and the wider competitive programming community can revisit the problems, study the intended solutions, and practice with the provided test cases.
CookOff is a competitive programming event conducted by CodeChef-VIT, designed to test participants across a range of problem-solving techniques and difficulty levels.
The contest was structured into multiple rounds, progressively moving from introductory problem-solving to more challenging algorithmic problems.
This repository contains the materials from all three rounds:
- Round 1 — An introductory block-based round consisting of 8 problems.
- Round 2 — A competitive programming round consisting of 12 problems.
- Round 3 — A final round consisting of 4 advanced problems.
The repository is organized by round and then by individual problem.
.
├── README.md
│
├── Round 1
│ ├── Q1
│ ├── Q2
│ ├── Q3
│ ├── Q4
│ ├── Q5
│ ├── Q6
│ ├── Q7
│ └── Q8
│
├── Round 2
│ ├── BONKP
│ ├── CHAIN
│ ├── CREW
│ ├── CRIMBS
│ ├── DARKHORSE
│ ├── INSPCT
│ ├── POWER
│ ├── PRICE
│ ├── THEGREAT
│ ├── THVANC
│ ├── WAR
│ └── XORTRIP
│
└── Round 3
├── ALIEN
├── BASTL
├── DYNAMITE
└── MIDNIGHT
Each problem directory contains the relevant statement, solution(s), and test cases.
Round 1 follows a slightly different structure from the later rounds because of its unique block-based format.
Each question directory generally contains:
| File | Description |
|---|---|
Question.txt |
Problem statement |
Sol1.txt, SOL2.txt, etc. |
Available solution approaches |
Block col.txt |
Additional material associated with the problem |
Some problems contain multiple solution files where multiple approaches or implementations were prepared.
Problems in these rounds follow a more conventional competitive-programming structure:
PROBLEM/
├── PROBLEM.md
├── problem.cpp
├── test1.txt
├── test2.txt
├── test3.txt
├── test4.txt
└── test5.txt
where:
| File | Description |
|---|---|
PROBLEM.md |
Problem statement and/or explanation |
problem.cpp |
Reference C++ solution |
test1.txt – test5.txt |
Sample/additional test cases |
The exact filenames may vary slightly between problems.
Naturally, there is no software or dependency setup required to use this repository beyond a C++ compiler of your choice.
git clone <repository-url>
cd <repository-directory>Navigate to the round you want to practice:
cd "Round 2"Then choose a problem:
cd BONKPOpen the corresponding .md or Question.txt file and try solving the problem before looking at the solution.
For example:
BONKP.md
contains the problem material for BONKP.
The solutions are written in C++.
For example:
g++ -std=c++17 bonkp.cpp -o bonkpThen run it with:
./bonkpThe provided test files can be used to verify your implementation.
For example:
./bonkp < test1.txtYou can similarly test against the remaining cases:
./bonkp < test2.txt
./bonkp < test3.txt
./bonkp < test4.txt
./bonkp < test5.txtNote: The exact input/output format and the availability of test files varies between rounds and problems. Refer to the individual problem statement before running a test case.
If you're using this repository to practice competitive programming, the recommended workflow is:
- Pick a problem without opening its solution.
- Read the complete problem statement and constraints.
- Work out the algorithm and complexity.
- Implement your solution.
- Test it against the provided test cases.
- Compare your approach with the reference solution.
- If your solution differs, consider whether the difference affects correctness, complexity, or edge cases.
For a more realistic contest simulation, start a timer and attempt an entire round without looking at the solutions or test cases beforehand.
Reference solutions are included primarily for post-contest learning and verification.
They are not intended to replace attempting the problems yourself.
Some Round 1 problems contain multiple solution files. These may represent different approaches, implementations, or versions of the solution prepared during the contest development process.
For Round 2 and Round 3, each problem generally has a corresponding C++ reference implementation alongside its statement.
The repository includes test cases for the Round 2 and Round 3 problems.
These can be used to:
- Verify your implementation.
- Check edge cases.
- Experiment with different approaches.
- Compare your output against the reference solution.
- Practice solving problems locally before submitting elsewhere.
The included test cases are not necessarily an exhaustive test suite. Passing the provided cases does not by itself guarantee that an implementation handles every possible valid input.
The CookOff problem set was designed and prepared by:
| Question Setter | GitHub | |
|---|---|---|
![]() |
Aditya Shankar Nath | @AS-Nath |
![]() |
Usman Gani Ahmed | @usmanganiahmed71-creator |
![]() |
Sannidhya Biswas | @RRonium |
CodeChef-VIT is the official campus chapter of CodeChef at VIT Vellore, focused on competitive programming, software development, and fostering a strong programming community.
Made with ❤️ by CodeChef-VIT


