timhsue / tjudger Goto Github PK
View Code? Open in Web Editor NEWJudger for OJ.
License: MIT License
Judger for OJ.
License: MIT License
系统环境:ubuntu20.04 LTS
我执行python setup.py install
然后在test目录下执行sudo python test.py
结果Resualt全部是DSC
AC Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'AC/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
AC Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 276L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
WA Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'WA/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
WA Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 268L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
RE Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'RE/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
RE Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 272L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
TLE Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'TLE/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
TLE Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 268L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
MLE Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'MLE/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
MLE Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 272L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
OLE Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'OLE/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
OLE Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 272L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
MLE(stack) Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'MLE(stack)/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
MLE(stack) Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 272L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
CE Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'CE/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
CE Result:
{'status': 'Compile Error', 'use_memory': 0L, 'score': 0L, 'compile_info': 'CE/lll.cpp:2:1: error: \xe2\x80\x98sad\xe2\x80\x99 does not name a type; did you mean \xe2\x80\x98std\xe2\x80\x99?\n 2 | sad\n | ^~~\n | std\n', 'use_time': 0L}
DSC Config:
{'compile option': ['-O2', '-lm', '-DONLINE_JUDGE'], 'time_limit': 1000, 'source_name': 'DSC/lll.cpp', 'in_file': 'lll.in', 'language': 'C++', 'memory_limit': 64, 'ans_file': 'lll.ans', 'out_file': 'lll.out'}
DSC Result:
{'status': 'Dangerous System Call', 'compile_info': '', 'use_memory': 272L, 'in': '1200 34\n\n', 'use_time': 0L, 'score': 0L, 'ans': '1234\n', 'out': ''}
没有TJudger.log被创建。
ps:
抱歉又打扰了,我正在写一个OJ,想用TJudger为测评机。
我在运行test/test.c时,提示Load stack size limit fail,然后每个文件都CE,请问是这么回事?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.