增加比赛的判题

This commit is contained in:
virusdefender
2015-08-23 18:28:30 +08:00
parent 86d33dd974
commit 7a22d78631
7 changed files with 175 additions and 11 deletions

View File

@@ -11,6 +11,7 @@ class Submission(models.Model):
result = models.IntegerField(default=result["waiting"])
language = models.IntegerField()
code = models.TextField()
contest_id = models.IntegerField(blank=True, null=True)
problem_id = models.IntegerField(db_index=True)
# 这个字段可能存储很多数据 比如编译错误、系统错误的时候,存储错误原因字符串
# 正常运行的时候存储 lrun 的判题结果比如cpu时间内存之类的
@@ -18,7 +19,6 @@ class Submission(models.Model):
accepted_answer_time = models.IntegerField(blank=True, null=True)
# 这个字段只有在题目是accepted 的时候才会用到,比赛题目的提交可能还会有得分等信息,存储在这里面
accepted_answer_info = models.TextField(blank=True, null=True)
is_counted = models.BooleanField(default=False)
class Meta:
db_table = "submission"