Git Product home page Git Product logo

syzoj-tools's Introduction

syzoj-tools's People

Contributors

vincent-163 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

syzoj-tools's Issues

输出结果

评测的结果感觉十分冗长不可读啊。

测完后不仔细读一遍就不能知道结果。

AC 后报错

原本没有问题,但是在克隆源码安装之后,评测 AC会得到这样的结果(报错没有 wcmp 这样的文件):

VERBOSE:compiled-language:Compiling source code source/CSYZ14/treasure.cpp
VERBOSE:compiled-language:Compilation success
VERBOSE:problem:Judging subtask 0
VERBOSE:problem-traditional:Running testcase 1
Traceback (most recent call last):
  File "/home/kewth/.local/bin/syzoj", line 6, in <module>
    exec(compile(open(__file__).read(), __file__, 'exec'))
  File "/home/kewth/Kewth_/syzoj-tools/bin/syzoj", line 4, in <module>
    syzoj_tools.main()
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/__init__.py", line 60, in main
    args.func(args)
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/__init__.py", line 83, in cmd_judge
    result = problem.judge(prog, lazy=args.lazy)
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/problem.py", line 199, in judge
    case_result[j] = session.do_judge(case)
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/types/traditional.py", line 89, in do_judge
    checker_result = self.parent.checker.check(case, run_result.outfile)
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/builtin.py", line 19, in check
    return run_testlib_checker(checker_file, case.input_data, outfile, case.answer_data)
  File "/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/__init__.py", line 45, in run_testlib_checker
    subprocess.run([checker, input, output, answer, result_file.name], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
  File "/usr/lib/python3.6/subprocess.py", line 403, in run
    with Popen(*popenargs, **kwargs) as process:
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/wcmp': '/home/kewth/Kewth_/syzoj-tools/syzoj_tools/checkers/wcmp'

不知道是否是操作不当?

编译缓存问题

目前内置的 checker 均以源代码形式发布,使用时编译,但编译后的文件放置在和源代码同一个文件夹内,这导致两个问题:

  • 权限问题:如果安装 syzoj-tools 和运行 syzoj-tools 不是同一个用户,编译会失败。
  • 卸载问题:由于编译后的文件不是 package 的一部分,卸载时文件会保留下来,导致卸载不彻底。

解决方案:

  • 编写安装脚本,在安装时完成编译。

关于 Data 的配置

yaml 里似乎没有配置 data (数据文件所在目录)的选项?
比赛数据文件一般放在 data 的几个子目录里的,这种情况 judge 似乎要将数据文件移出来?

如果有关于 data 的配置,可能帮助文档里并没有指出;
如果没有,希望可以加上这个配置选项,因为至少对我来说这样真的很麻烦。

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.