mirror of
https://github.com/QingdaoU/Judger.git
synced 2024-12-29 16:31:42 +00:00
add demo.py
This commit is contained in:
parent
08cd7141c2
commit
42d09fd7bc
16
demo.py
Normal file
16
demo.py
Normal file
@ -0,0 +1,16 @@
|
||||
# coding=utf-8
|
||||
import os
|
||||
import judger
|
||||
|
||||
|
||||
base_path = os.path.dirname(os.path.abspath(__file__))
|
||||
|
||||
|
||||
print judger.run(path=os.path.join(base_path, "test"),
|
||||
in_file=os.path.join(base_path, "in"),
|
||||
out_file=os.path.join(base_path, "out"),
|
||||
max_cpu_time=2000,
|
||||
max_memory=200000000,
|
||||
args=["1", "2", "####"],
|
||||
env=["LD_PRELOAD=" + os.path.join(base_path, "sandbox.so")])
|
||||
|
Loading…
Reference in New Issue
Block a user