GithubHelp home page GithubHelp logo

hexagon's Introduction

一个对codeforces polygon的拙劣模仿

安装

pip install .

使用

hexagon [create|build|validate]
create:     'create problem-name' to create a new problem
build:      'build contest-name' to build a contest statement
            'build problem-name' to build a problem statement
            if no argument is given, then build the statement for the problem in the current directory
validate:   same as build, but doing validations instead

create

创建一个新的题目文件夹

其中,

  • testcases里面需要以1,2,3...以及sample1,sample2...的形式命名,存储输入文件。无需手动创建输出文件,会自动生成
  • solutions里面存储各种程序。其中必须要有一个名为std.cpp的标程。
  • testlib里面存储validator和checker,详见这里。一般来说,checker不需要手动修改,validator需要根据题目的输入格式来修改。

build

  • 对于题目,会根据输入文件以及标程生成样例。build之后可以使用xelatex编译statement.tex生成题面
  • 对于比赛,会根据比赛的yaml描述文件生成比赛的题面
title:
  那天我在学校门口捡到了一块砖
subtitle:
  "{\\rmfamily Div 1} 模拟赛"
date:
  2024 年 5 月 25 日
start:
  "13:00"
end:
  "16:00"
problems:
  - crt
  - crt
  - crt

请将这个文件命名为xxx.yaml然后放在与题目所在的根文件夹中,然后使用build xxx.yaml即可生成比赛题面

validate

  • 检测所有的输入文件是否能通过validator的测试
  • 输出所有程序的得分以及在各个测试点上的运行情况

hexagon's People

Contributors

lucidalu avatar

Stargazers

 avatar Xavier avatar 大帅 avatar  avatar

Watchers

 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.