judge在ubuntu上暂时能跑起来了

This commit is contained in:
virusdefender
2015-07-02 23:39:18 +08:00
parent 8f67c37d0c
commit b43dfe37c8
3 changed files with 81 additions and 36 deletions

17
judge/consts.py Normal file
View File

@@ -0,0 +1,17 @@
# coding=utf-8
class Result(object):
ACCEPTED = 0
RUNTIME_ERROR = 1
TIME_LIMIT_EXCEEDED = 2
MEMORY_LIMIT_EXCEEDED = 3
COMPILE_ERROR = 4
FORMAT_ERROR = 5
WRONG_ANSWER = 6
SYSTEM_ERROR = 7
WAITING = 8
class Language(object):
C = 1
CPP = 2
JAVA = 3