Skip to content

向HydroOJ上传大FPS文件(题目集)的工具 | A tool for uploading big FPS files(problem set) to HydroOJ

Notifications You must be signed in to change notification settings

RedForestLonvor/HydroProblemUploader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProblemUploader-Hydro

向HydroOJ上传题目的工具 | A tool for uploading questions to HydroOJ

用途:

HydroOJ可以通过FPS文件导入题目,但是往往FPS文件中会包含大量测试数据,导致文件过大,从而无法成功上传。

这个工具的作用是:

  • 1.浏览data/目录下的所有xml格式的FPS文件

  • 2.在res/目录中给每个题目创建一个文件夹,里面包含题目描述problem.md和若干组xx.in xx.out组成的测试数据(如果测试数据不是数字.in数字.out)那么会在上传的时候将它重命名

  • 3.将 去掉测试数据的FPS文件 存储在项目根目录 然后尝试向Hydro发送post请求

  • 4.按照题目编号遍历OJ中的所有题目,从response中解析题目名称

  • 5.将题目对应的测试数据post到Hydro

配置:

配置uploader.py中的cookiesurl

注:

data/中包含一个来自usaco的样例

About

向HydroOJ上传大FPS文件(题目集)的工具 | A tool for uploading big FPS files(problem set) to HydroOJ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published