Skip to content

Commit

Permalink
시간/메모리 제한에 기본값 추가 (1초, 128MB)
Browse files Browse the repository at this point in the history
  • Loading branch information
joonas-yoon committed Jan 19, 2018
1 parent 6446612 commit 92b7565
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions judge/models/problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class Problem(models.Model):
'These users will be able to view a private problem, but not edit it.'))
types = models.ManyToManyField(ProblemType, verbose_name=_('problem types'))
group = models.ForeignKey(ProblemGroup, verbose_name=_('problem group'))
time_limit = models.FloatField(verbose_name=_('time limit'), help_text=_('The time limit for this problem, in seconds. Fractional seconds (e.g. 1.5) are supported.'))
memory_limit = models.IntegerField(verbose_name=_('memory limit'), help_text=_('The memory limit for this problem, in kilobytes (e.g. 64mb = 65536 kilobytes).'))
time_limit = models.FloatField(verbose_name=_('time limit'), help_text=_('The time limit for this problem, in seconds. Fractional seconds (e.g. 1.5) are supported.'), default=1.0)
memory_limit = models.IntegerField(verbose_name=_('memory limit'), help_text=_('The memory limit for this problem, in kilobytes (e.g. 64mb = 65536 kilobytes).'), default=131072)
short_circuit = models.BooleanField(default=False)
points = models.FloatField(verbose_name=_('points'))
partial = models.BooleanField(verbose_name=_('allows partial points'), default=False)
Expand Down

0 comments on commit 92b7565

Please sign in to comment.