添加重新判题的脚本,可以有选择地重判一部分提交,并生成新的提交,可指定用户~[CI SKIP]
This commit is contained in:
@@ -14,6 +14,7 @@ def add_exist_problem_to_contest(problems, contest_id):
|
||||
for problem in problems:
|
||||
print "Add the problem:"
|
||||
print problem.title
|
||||
print "The sort Index is" + str(i) + " You Can modify it latter as you like~"
|
||||
ContestProblem.objects.create(contest=contest, sort_index=str(i),
|
||||
title=problem.title, description=problem.description,
|
||||
input_description=problem.input_description,
|
||||
@@ -24,4 +25,5 @@ def add_exist_problem_to_contest(problems, contest_id):
|
||||
created_by=problem.created_by,
|
||||
time_limit=problem.time_limit,
|
||||
memory_limit=problem.memory_limit)
|
||||
i += 1
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user