Coder Social home page Coder Social logo

testdata-tools's Introduction

testdata-tools

一个可以用来快速生成可以适用于 syzoj 的配置文件 data.yml

使用方法:

python tool.py

Input-pre: 你要配置的输入文件的前缀;

Input_suf: 你要配置的输入文件的后缀,如果为空,则默认为 .in

Output_pre: 你要配置的输出文件的前缀,如果为空,则默认与 Input-pre 相同;

Output_suf: 你要配置的输入文件的后缀,如果为空,则默认为 .out

Numbers of subtasks: 你要配置的 subtask 的数量,如果为空则默认为 0。 后面每一行的格式为:

score(type): data-list

其中,score 为该 subtask 的分值,type 为评分方式,可选的有 min, max, sum, mul。如果没有 (type) 这一部分,默认为 min

后面的 data-list 中,每一个测试点编号用 , 隔开。可以使用 l-r 表示从 lr 的所有编号。

测试点编号中可以带英文字母,如果需要使用一段英文字母后带编号的格式,可以使用类似于 chess(1-10) 的格式,即将 l-r 外加入括号。单独的 l-r 不需要括号。

Todo

  1. 自动识别当前文件夹的数据,把子文件夹作为 subtasks
  2. 增加帮助修改数据名称的功能。

testdata-tools's People

Contributors

hankeke303 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.