Guys,
A doubt:
There is a "time limit" for each problem.
There is a "time limit overshoot" in Configuration Settings.
Does it mean that if we set the "time limit overshoot" as more than the maximum time limit for one of the problems in the contest, it will affect the others with the lower time limit?
For example:
Contest 1 has 5 problems
4 problems have 1 sec time limit. Rest 4 has 4 sec time limit. And let us say one of the submissions for 1 sec problem set goes into infinite loop. Will the problem exit as per 1 sec time limit for that problem or will I wait for the 4 sec global "time limit overshoot"?
Hi Anand,
On 14-12-15 11:21, Br. Anand Shenoi wrote:
Guys,
A doubt:
There is a "time limit" for each problem.
There is a "time limit overshoot" in Configuration Settings.
Does it mean that if we set the "time limit overshoot" as more than the maximum time limit for one of the problems in the contest, it will affect the others with the lower time limit?
For example:
Contest 1 has 5 problems
4 problems have 1 sec time limit. Rest 4 has 4 sec time limit. And let us say one of the submissions for 1 sec problem set goes into infinite loop. Will the problem exit as per 1 sec time limit for that problem or will I wait for the 4 sec global "time limit overshoot"?
It depends on your precise settings, but no, in general you don't have to wait 4 seconds.
The time limit overshoot is calculated for each specific problem. For example, if you use the default "time limit overshoot" of "1s|10%", then the overshoot is 1 second for any problem with a time limit of 10 seconds or less, and 10% of the time limit when it is more.
So for your 1 sec problems it will kill the submission after 2 sec and for your 4 sec problems after 5 seconds.
Best, Jaap
Ok, Jaap. Got it!
so, no program will stay in the memory beyond the limit as per the settings. Correct?
And will an infinite loop in the problem solution can crash the judge host?
________________________________________ From: DOMjudge-devel domjudge-devel-bounces@domjudge.org on behalf of Jaap Eldering jaap@jaapeldering.nl Sent: Monday, December 14, 2015 7:13 PM To: domjudge-devel@domjudge.org Subject: Re: Time specific for a problem & Global time limit
Hi Anand,
On 14-12-15 11:21, Br. Anand Shenoi wrote:
Guys,
A doubt:
There is a "time limit" for each problem.
There is a "time limit overshoot" in Configuration Settings.
Does it mean that if we set the "time limit overshoot" as more than the maximum time limit for one of the problems in the contest, it will affect the others with the lower time limit?
For example:
Contest 1 has 5 problems
4 problems have 1 sec time limit. Rest 4 has 4 sec time limit. And let us say one of the submissions for 1 sec problem set goes into infinite loop. Will the problem exit as per 1 sec time limit for that problem or will I wait for the 4 sec global "time limit overshoot"?
It depends on your precise settings, but no, in general you don't have to wait 4 seconds.
The time limit overshoot is calculated for each specific problem. For example, if you use the default "time limit overshoot" of "1s|10%", then the overshoot is 1 second for any problem with a time limit of 10 seconds or less, and 10% of the time limit when it is more.
So for your 1 sec problems it will kill the submission after 2 sec and for your 4 sec problems after 5 seconds.
Best, Jaap
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
On 14-12-15 12:00, Br. Anand Shenoi wrote:
Ok, Jaap. Got it!
so, no program will stay in the memory beyond the limit as per the settings. Correct?
Are you now asking about time or memory limit? The memory limit is enforced in a hard way: the program is not allowed to use a byte more. The time limit has this overshoot, but afterwards it is checked whether the program ran out of time, even if it finished in the allotted overshoot time. The overshoot is only there to provide the jury with a means of seeing whether the submission was close to the time limit.
And will an infinite loop in the problem solution can crash the judge host?
No, a simple infinite loop will not crash the judgehost.
Jaap
From: DOMjudge-devel domjudge-devel-bounces@domjudge.org on behalf of Jaap Eldering jaap@jaapeldering.nl Sent: Monday, December 14, 2015 7:13 PM To: domjudge-devel@domjudge.org Subject: Re: Time specific for a problem & Global time limit
Hi Anand,
On 14-12-15 11:21, Br. Anand Shenoi wrote:
Guys,
A doubt:
There is a "time limit" for each problem.
There is a "time limit overshoot" in Configuration Settings.
Does it mean that if we set the "time limit overshoot" as more than the maximum time limit for one of the problems in the contest, it will affect the others with the lower time limit?
For example:
Contest 1 has 5 problems
4 problems have 1 sec time limit. Rest 4 has 4 sec time limit. And let us say one of the submissions for 1 sec problem set goes into infinite loop. Will the problem exit as per 1 sec time limit for that problem or will I wait for the 4 sec global "time limit overshoot"?
It depends on your precise settings, but no, in general you don't have to wait 4 seconds.
The time limit overshoot is calculated for each specific problem. For example, if you use the default "time limit overshoot" of "1s|10%", then the overshoot is 1 second for any problem with a time limit of 10 seconds or less, and 10% of the time limit when it is more.
So for your 1 sec problems it will kill the submission after 2 sec and for your 4 sec problems after 5 seconds.
Best, Jaap
DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel