cf-contest

2.0.5 • Public • Published

CF-Contest-Problem-Scrapper

CF-Contest-Problem-Scrapper is a JavaScript-based tool designed to scrape contest problems from Codeforces During the Contest. This tool helps users to collect and organize problems from various contests for easy access and analysis.

Features

  • Scrape contest problems from Codeforces.
  • Organize and save problem data in a structured format.

Usage

To use the CF-Contest-Problem-Scrapper, run the following command:

cmd :
npx cf-contest
Example :
npx cf-contest
Enter Contest ID : 2026        //contest-id available in contest URL
Your Name :- manish-dev        //name

Folder Structure for Contest

Below is the folder structure for organizing contest problems and their respective files.

contest-name/
│
├── A/
│   ├── input.in
│   ├── output.out
│   ├── expected.out
│   ├── problemstatement.txt
│   └── solution.cpp
│
├── B/
│   ├── input.in
│   ├── output.out
│   ├── expected.out
│   ├── problemstatement.txt
│   └── solution.cpp
│
├── C/
│   ├── input.in
│   ├── output.out
│   ├── expected.out
│   ├── problemstatement.txt
│   └── solution.cpp
│
└── ...

Explanation

  1. contest-name/
    The root folder representing the name of the contest.

  2. A/, B/, C/
    Subdirectories named after individual contest problems.

  3. Files in Each Problem Directory

    • input.in: The input file for the problem.
    • output.out: The generated output after running the solution.
    • expected.out: The expected correct output for comparison.
    • problemstatement.txt: The text file containing the problem statement.
    • solution.cpp: The solution code written in C++.

Add additional problem folders as needed using the same structure (D/, E/, etc.).

Package Sidebar

Install

npm i cf-contest

Weekly Downloads

3

Version

2.0.5

License

ISC

Unpacked Size

9.01 kB

Total Files

6

Last publish

Collaborators

  • manish-dev