Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.63 KB

File metadata and controls

54 lines (40 loc) · 1.63 KB

VJudge Problem Set Extractor

This Python script is designed for extracting problems from VJudge with VJudge format for private contests that can't be cloned. It utilizes the BeautifulSoup library for parsing HTML.

Dependencies

- python 3

- BeautifulSoup4 (bs4)

How to use?

  1. Download the HTML page of the contest from VJudge that you want to extract problems from.
  2. Get the path of the downloaded HTML file.
  3. Run the program and provide the path to the HTML file.
  4. The program will automatically find the problems with their IDs and format them in VJudge problem set format.
  5. Add the problem set to Vjudge with Vjudge Format

How to Run?

How to Run in powerShell or in bash

python main.py

How to download Contest as Html File?

  • Alt Text
  • then you select Save as

Program Run

  • Alt Text

  • Run the program

  • Alt Text

  • Enter path of the Html Contest File

OutPut Format

  • the output will be in Vjudge Format Like the picture below

  • Alt Text

How to use the Vjudge Format on Vjudge

  • 1. Go to any group and Choose Arrange Contest

Alt Text

  • 2. Go Down to the Problem Set !

    Alt Text

  • 3. Press on Edit Button !

    Alt Text

  • 4. Copy the output of the code and past in the problem set!

    Alt Text

  • 5. then you will found the problem set exist in the problem set!

    Alt Text