Code Monkey home page Code Monkey logo

rlj's People

Contributors

enter-tainer avatar rqy2002 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  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rlj's Issues

Runtime Error On Windows 10

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)

Is it able to specify the optimization level?

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]

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.