Code Monkey home page Code Monkey logo

problems's Introduction

说明

这里是rainboy整理的题目仓库,题目列表

如果哪个题目侵权,请在 Issues 中提出,我会删除

如何使用 upload.js 上传/更新题目

安装nodejs,yarn,然后yarn install安装依赖

./upload.js --help

上传

准备: 登录admin,保存Cookie到cookie文件

./upload.js 1001            # 上传一个题目
./upload.js 1002 1004       # 上传3个题目 1002->1003
./upload.js -d 1005         # 显示debug信息
./upload.js -u 1001            # 更新一个题目
./upload.js -u 1002 1004       # 更新3个题目 只更新题面
./upload.js -u -f 1002 1004    # 上传3个题目 强制上传覆盖原数据
./upload.js -uf 1002 1004      # 同上

如何评测

方法一: 在ROJ上评测

方法二: 手动评测

  1. 需要 node.js >= 14.0
  2. cd bin; yarn (or npm install)
  3. 安装 https://github.com/rainboyOJ/testlib 下的 fcmp2
git clone https://github.com/rainboyOJ/testlib
cd testlib
mkdir build && cd build
cmake ..
make
cd ../output
sudo install fcmp2 /usr/bin
  1. 创建一个 tmp文件夹,在里面写入1.cpp
#include <cstdio>
int main(){
    int a,b;
    scanf("%d%d",&a,&b);
    printf("%d",a+b);
    return 0;
}
  1. 执行 ./bin/singleJudge.js 1000 tmp/1.cpp

  2. 评测其它编号的题目替换1000

LICENSE

我这里强烈声明

  1. 本库不能用于商业作用,任何培训机构不可以使用本库
  2. 使用的本库后,你的OJ网站以及OJ网站所属的公司不能有任何收费行为
  3. 需要在网站上注明题目来源于本库
  4. 使用本库的OJ,必须要开放注册
  5. 有些数据我写的程序自动生成,如发现在错误,请提Issues
  6. 部分题目收集于网络,如果侵权,请提Issues,我会删除

知识共享许可协议
本作品采用知识共享署名-非商业性使用-相同方式共享 4.0 国际许可协议进行许可。

problems's People

Contributors

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