rqy2002 / rlj Goto Github PK
View Code? Open in Web Editor NEW_Rqy's Local Judge for OIers and ACMers.
License: MIT License
_Rqy's Local Judge for OIers and ACMers.
License: MIT License
When I am trying to run rlj on Windows 10, some errors occured.
Can anyone tell me why?
My python version is 3.6.3 and RLJ version is 1.0.8
Margatroid@Margatroid-MiPro MINGW64 ~/Desktop
$ rlj
==============================
正在编译...
编译成功,用时1.142秒
==============================
测试点 状态 内存 时间
==============================
Traceback (most recent call last):
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\_pswindows.py", line 635, in wrapper
return fun(self, *args, **kwargs)
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\_pswindows.py", line 751, in memory_info
t = self._get_raw_meminfo()
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\_pswindows.py", line 726, in _get_raw_meminfo
return cext.proc_memory_info(self.pid)
ProcessLookupError: [Errno 3] No such process
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Margatroid\AppData\Local\Programs\Python\Python36-32\Scripts\rlj-script.py", line 11, in <module>
load_entry_point('rlj==1.0.8', 'console_scripts', 'rlj')()
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\rlj\main.py", line 171, in main
printResult(judger.judge(), is_silent)
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\rlj\main.py", line 64, in printResult
for tesk in result:
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\rlj\judge.py", line 110, in judge
yield (tesk, self._judge(tesk))
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\rlj\judge.py", line 74, in _judge
mem_info = ps.memory_info()
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\_common.py", line 337, in wrapper
return fun(self)
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\__init__.py", line 1049, in memory_info
return self._proc.memory_info()
File "c:\users\margatroid\appdata\local\programs\python\python36-32\lib\site-packages\psutil\_pswindows.py", line 640, in wrapper
raise NoSuchProcess(self.pid, self._name)
psutil._exceptions.NoSuchProcess: psutil.NoSuchProcess process no longer exists (pid=7772)
It's known that sometimes -O2
really makes your code runs faster. Whlie I'm solving some poisonous problems, I find that my code would get TLE
without O2 optimization. So is it able to specify the optimization level in config.json
?
{
"Source" : "example.cpp",
"Input" : "example#.in",
"Output" : "example#.ans",
"#" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"Time Limit" : 1000,
"Memory Limit" : 128,
"Optimization Level" : "O2"
}
Chinese Translation
众所周知,氧气优化可以使你的程序跑的更快。在某些毒瘤题中,不开O2优化只会得到TLE
,所以能否在config.json
指定优化级别呢?
例如:
{
"Source" : "example.cpp",
"Input" : "example#.in",
"Output" : "example#.ans",
"#" : [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"Time Limit" : 1000,
"Memory Limit" : 128,
"Optimization Level" : "O2"
}
或者在程序启动的参数中指定,例如:
$ rlj [-s|--slient] [-j Source | --judge Source] [-c ConfigFile] [-O2]
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.