Git Product home page Git Product logo

datagenerate's Introduction

(NYOJ)数据数据生成器

食用说明

生成器包含

  • Generate (随机数生成器)
  • ExampleGenerate (题目数据生成器)
  • ExampleDataGenerate (题目输入数据生成器)
  • ExampleAnswer (标程)

关于 Generate 随机数生成器,我们只需要再DataGenerate中导入Generate类使用即可

#include <bits/stdc++.h>
#include "Generate.cpp"

int main()
{
    Generate gen;
    gen.nextInt(1,100000);
    gen.nextDouble(0,1);
    gen.nextChar('a','z');
}

对于除了Example以外的题目,我们只需要简单的按照我们的需求更改DataGenerate,把std当作Answer,再在Generate(题目数据生成器)把DATA_GENERATE替换为DataGenerate的可执行程序名,把ANSWER替换为std的可执行程序文件名,编译运行输入希望生成的数据数目即可.

datagenerate's People

Contributors

abmcar 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.