Hi Jaap.
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
#include <stdio.h> #include <math.h>
long long int gcd(long long int a, long long int b) { // base case if (b==0) {return a;}
else {return gcd(b,a % b);} }
long long int PowerSet(int *set, int set_size) { long long int pow_set_size = pow(2, set_size); long long int counter, j; long long int first=0,result=1; long long int proresult=1;
for(counter = 0; counter < pow_set_size; counter++) { for(j = 0; j < set_size; j++) { if(counter & (1<<j)) { if(first==0) { //printf("\nFIRST%dFIRST\n",set[j]); result=set[j]; } printf("%d ", set[j]); first++; result=gcd(result, set[j]); }
} first=0;proresult=(proresult%1000000007*result%1000000007)%1000000007; printf(" GCD %lld",result);printf("\n"); } return proresult; }
int main() { int t=0,T; scanf("%d",&T); while(t<T) { int n,i,a[100002]; long long int ans; scanf("%d",&n); for(i=0;i<n;i++) { scanf("%d",&a[i]); } ans=PowerSet(a, n);
printf("%lld\n",ans%1000000007); t++; } return 0; }
Hi Anand,
On 18-12-15 05:28, Br. Anand Shenoi wrote:
Hi Jaap.
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output?
What precisely does it say on the jury submission page for this submission? Is it judging the first test case?
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
Jaap
Please find the answers inline, Jaap. ________________________________________ From: DOMjudge-devel domjudge-devel-bounces@domjudge.org on behalf of Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 3:40 PM To: domjudge-devel@domjudge.org Subject: Re: Problem not exiting
Hi Anand,
On 18-12-15 05:28, Br. Anand Shenoi wrote:
Hi Jaap.
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output? -Yes . compilation is successful.
What precisely does it say on the jury submission page for this submission? It says, "Judging" and doesn't proceed. Is it judging the first test case? No
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
[Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response [Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response : {"error":"Size of post data too large (163786388), increase post_max_size (671 08864) in your PHP config."}
Jaap
_______________________________________________ DOMjudge-devel mailing list DOMjudge-devel@domjudge.org https://www.domjudge.org/mailman/listinfo/domjudge-devel
Hi Anand,
On 18-12-15 08:37, Br. Anand Shenoi wrote:
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 3:40 PM To: domjudge-devel@domjudge.org Subject: Re: Problem not exiting
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output? -Yes . compilation is successful.
What precisely does it say on the jury submission page for this submission? It says, "Judging" and doesn't proceed. Is it judging the first test case? No
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
[Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response [Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response: {"error":"Size of post data too large (163786388), increase post_max_size (67108864) in your PHP config."}
Ok, so the problem as indicated is that the PHP post_max_size is too small. Given that it is trying to upload an 160MB file, did you change the "output limit" configuration setting? The PHP max post size should always be larger than that.
Jaap
We got it resolved, Jaap. When they enabled cgroup, they didn't set the output and memory limit in the judgehost servers. Once it was set, it resolved.
Thanks a lot.
We are waiting for an awesome multisite contest with 300+ teams. Thanks again for timely support.
________________________________________ From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 4:18 PM To: Br. Anand Shenoi; domjudge-devel@domjudge.org Subject: Re: Problem not exiting
Hi Anand,
On 18-12-15 08:37, Br. Anand Shenoi wrote:
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 3:40 PM To: domjudge-devel@domjudge.org Subject: Re: Problem not exiting
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output? -Yes . compilation is successful.
What precisely does it say on the jury submission page for this submission? It says, "Judging" and doesn't proceed. Is it judging the first test case? No
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
[Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response [Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response: {"error":"Size of post data too large (163786388), increase post_max_size (67108864) in your PHP config."}
Ok, so the problem as indicated is that the PHP post_max_size is too small. Given that it is trying to upload an 160MB file, did you change the "output limit" configuration setting? The PHP max post size should always be larger than that.
Jaap
Ok, good luck with the contest! - Jaap
On 18-12-15 08:57, Br. Anand Shenoi wrote:
We got it resolved, Jaap. When they enabled cgroup, they didn't set the output and memory limit in the judgehost servers. Once it was set, it resolved.
Thanks a lot.
We are waiting for an awesome multisite contest with 300+ teams. Thanks again for timely support.
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 4:18 PM To: Br. Anand Shenoi; domjudge-devel@domjudge.org Subject: Re: Problem not exiting
Hi Anand,
On 18-12-15 08:37, Br. Anand Shenoi wrote:
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 3:40 PM To: domjudge-devel@domjudge.org Subject: Re: Problem not exiting
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output? -Yes . compilation is successful.
What precisely does it say on the jury submission page for this submission? It says, "Judging" and doesn't proceed. Is it judging the first test case? No
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
[Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response [Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response: {"error":"Size of post data too large (163786388), increase post_max_size (67108864) in your PHP config."}
Ok, so the problem as indicated is that the PHP post_max_size is too small. Given that it is trying to upload an 160MB file, did you change the "output limit" configuration setting? The PHP max post size should always be larger than that.
Jaap
Hey Jaap,
The problem still exists.
Can we regulate the output limit in the judgehost? It is not happening inspite of configuration in the domjudge server.
________________________________________ From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 4:33 PM To: Br. Anand Shenoi; domjudge-devel@domjudge.org Subject: Re: Problem not exiting
Ok, good luck with the contest! - Jaap
On 18-12-15 08:57, Br. Anand Shenoi wrote:
We got it resolved, Jaap. When they enabled cgroup, they didn't set the output and memory limit in the judgehost servers. Once it was set, it resolved.
Thanks a lot.
We are waiting for an awesome multisite contest with 300+ teams. Thanks again for timely support.
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 4:18 PM To: Br. Anand Shenoi; domjudge-devel@domjudge.org Subject: Re: Problem not exiting
Hi Anand,
On 18-12-15 08:37, Br. Anand Shenoi wrote:
From: Jaap Eldering jaap@jaapeldering.nl Sent: Friday, December 18, 2015 3:40 PM To: domjudge-devel@domjudge.org Subject: Re: Problem not exiting
There is a situation.
Suppose if a solution has been submitted, but that solutions is not even passing the first test case and the program doesn't terminate. Usually it should be taken care of by DOMjudge right? Why is it not giving Wrong Answer or TLE. Here is the code:
Does it finish compilation, if so what is the compiler output? -Yes . compilation is successful.
What precisely does it say on the jury submission page for this submission? It says, "Judging" and doesn't proceed. Is it judging the first test case? No
Also have a look at the judgedaemon logfile for the judgedaemon that is judging it, and whether it is running. It may have crashed for some strange reason.
[Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response [Dec 18 14:31:31] judgedaemon[19093]: error: Error while executing curl POST to url http://10.0.0.151/domjudge/api/judging_runs: http status code: 400, response: {"error":"Size of post data too large (163786388), increase post_max_size (67108864) in your PHP config."}
Ok, so the problem as indicated is that the PHP post_max_size is too small. Given that it is trying to upload an 160MB file, did you change the "output limit" configuration setting? The PHP max post size should always be larger than that.
Jaap