Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-27 Thread Bartholomew Furrow
Giang,

I hope that our responses give you some confidence in the judging, which is
sometimes what I need when I can't figure out why my answer is marked
incorrect. Another great option is to write a judge program of your own to
check whether your jam coins are valid, and your proofs are good.

Bartholomew

On Mon, Mar 27, 2017, 15:31 'Pablo Heiber' via Google Code Jam, <
google-code@googlegroups.com> wrote:

> Hi,
>
> The judging is done automatically on all problems. When there are multiple
> correct outputs, there is a program that looks at a given output to decide
> whether it is correct or not, not a human judge. So, even when practicing
> on old problems, you should get a valid judgement of your output regardless
> of the problem type (single-correct-output or multiple-correct-output).
>
> I agree with Bart, it is highly unlikely that there is a bug making a
> correct output being judged as incorrect because it was tested thoroughly
> before the contest, and a lot of people used it without an issue during the
> contest. Unexpected bugs in code that a single person wrote, however, are
> more likely, so I would encourage you to check your code.
>
> Best,
> Pablo
>
> On Sat, Mar 25, 2017 at 9:32 AM, Giang Nguyễn Trường <
> giangnguyentruong2...@gmail.com> wrote:
>
> Vào 23:21:39 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow
> đã viết:
> > OK, a couple of thoughts:
> >
> >
> > 1. Have you successfully submitted solutions to other problems? If not,
> start with a relatively easy one like Store Credit, just to make sure the
> platform is working for you.
> >
> >
> > 2. The problem does say there are multiple possible responses ("It is
> guaranteed that at least J distinct jamcoins of length N exist."). That
> means there's a special judge to look at your submission and see if it
> meets the judging criteria. If you're getting rejected, that means it
> isn't, or that there's a problem with the judge. It's extremely unlikely
> that there's a problem with the judge, since 13361 people solved that
> problem correctly in the qualification round and a further 2000 or so tried
> it, so I'd guess there's a subtle problem with your code.
> >
> >
> > Good luck!
> > Bartholomew
> >
> >
> > On Sat, Mar 25, 2017 at 6:26 AM Giang Nguyễn Trường <
> giangnguye...@gmail.com> wrote:
> > Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow
> đã viết:
> >
> > > The vast majority of Code Jam problems have only one correct output.
> There are some problems for which there can be multiple correct answers,
> and they are usually clearly marked. Is there a particular problem you're
> looking at where you think there might be multiple right answers?
> >
> > >
> >
> > >
> >
> > >
> >
> > > On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường, <
> giangnguye...@gmail.com> wrote:
> >
> > > Hi, I'm practicing some past problem. Just as I mentioned above,
> Please help.
> >
> > >
> >
> > >
> >
> > >
> >
> > > --
> >
> > >
> >
> > > You received this message because you are subscribed to the Google
> Groups "Google Code Jam" group.
> >
> > >
> >
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to google-code...@googlegroups.com.
> >
> > >
> >
> > > To post to this group, send email to googl...@googlegroups.com.
> >
> > >
> >
> > > To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com
> .
> >
> > >
> >
> > > For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> > It's the Coin Jam in 2016 qualification round, I'd generated other Coin
> Jam which is different from the example and so, I'd got the "Incorrect"
> when submit the small test output.
> >
> >
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> Groups "Google Code Jam" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to google-code...@googlegroups.com.
> >
> > To post to this group, send email to googl...@googlegroups.com.
> >
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/7fec8a7c-0275-4e54-9fe4-40a0cbbffeaf%40googlegroups.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>
> Thanks, maybe it's about my code, because I've submited other practise and
> there was no problem. But in my opinion, when we submit a output file, the
> website will subtract it with the result and return correct if there was no
> different between our file and the result. So because it is a problem from
> the past, I think there will not be any judge to look at it. May be in the
> real contest, it will a bit different. :)
> Thanks for yours response :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 

Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-27 Thread 'Pablo Heiber' via Google Code Jam
Hi,

The judging is done automatically on all problems. When there are multiple
correct outputs, there is a program that looks at a given output to decide
whether it is correct or not, not a human judge. So, even when practicing
on old problems, you should get a valid judgement of your output regardless
of the problem type (single-correct-output or multiple-correct-output).

I agree with Bart, it is highly unlikely that there is a bug making a
correct output being judged as incorrect because it was tested thoroughly
before the contest, and a lot of people used it without an issue during the
contest. Unexpected bugs in code that a single person wrote, however, are
more likely, so I would encourage you to check your code.

Best,
Pablo

On Sat, Mar 25, 2017 at 9:32 AM, Giang Nguyễn Trường <
giangnguyentruong2...@gmail.com> wrote:

> Vào 23:21:39 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow
> đã viết:
> > OK, a couple of thoughts:
> >
> >
> > 1. Have you successfully submitted solutions to other problems? If not,
> start with a relatively easy one like Store Credit, just to make sure the
> platform is working for you.
> >
> >
> > 2. The problem does say there are multiple possible responses ("It is
> guaranteed that at least J distinct jamcoins of length N exist."). That
> means there's a special judge to look at your submission and see if it
> meets the judging criteria. If you're getting rejected, that means it
> isn't, or that there's a problem with the judge. It's extremely unlikely
> that there's a problem with the judge, since 13361 people solved that
> problem correctly in the qualification round and a further 2000 or so tried
> it, so I'd guess there's a subtle problem with your code.
> >
> >
> > Good luck!
> > Bartholomew
> >
> >
> > On Sat, Mar 25, 2017 at 6:26 AM Giang Nguyễn Trường <
> giangnguye...@gmail.com> wrote:
> > Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow
> đã viết:
> >
> > > The vast majority of Code Jam problems have only one correct output.
> There are some problems for which there can be multiple correct answers,
> and they are usually clearly marked. Is there a particular problem you're
> looking at where you think there might be multiple right answers?
> >
> > >
> >
> > >
> >
> > >
> >
> > > On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường, <
> giangnguye...@gmail.com> wrote:
> >
> > > Hi, I'm practicing some past problem. Just as I mentioned above,
> Please help.
> >
> > >
> >
> > >
> >
> > >
> >
> > > --
> >
> > >
> >
> > > You received this message because you are subscribed to the Google
> Groups "Google Code Jam" group.
> >
> > >
> >
> > > To unsubscribe from this group and stop receiving emails from it, send
> an email to google-code...@googlegroups.com.
> >
> > >
> >
> > > To post to this group, send email to googl...@googlegroups.com.
> >
> > >
> >
> > > To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com.
> >
> > >
> >
> > > For more options, visit https://groups.google.com/d/optout.
> >
> >
> >
> > It's the Coin Jam in 2016 qualification round, I'd generated other Coin
> Jam which is different from the example and so, I'd got the "Incorrect"
> when submit the small test output.
> >
> >
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> Groups "Google Code Jam" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to google-code...@googlegroups.com.
> >
> > To post to this group, send email to googl...@googlegroups.com.
> >
> > To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-code/7fec8a7c-0275-4e54-9fe4-40a0cbbffeaf%40googlegroups.com.
> >
> > For more options, visit https://groups.google.com/d/optout.
>
>
> Thanks, maybe it's about my code, because I've submited other practise and
> there was no problem. But in my opinion, when we submit a output file, the
> website will subtract it with the result and return correct if there was no
> different between our file and the result. So because it is a problem from
> the past, I think there will not be any judge to look at it. May be in the
> real contest, it will a bit different. :)
> Thanks for yours response :)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/google-code/5815c0fc-d836-4d1a-9401-99cf4ff29399%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving 

Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-26 Thread Giang Nguyễn Trường
Vào 23:21:39 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow đã 
viết:
> OK, a couple of thoughts:
> 
> 
> 1. Have you successfully submitted solutions to other problems? If not, start 
> with a relatively easy one like Store Credit, just to make sure the platform 
> is working for you.
> 
> 
> 2. The problem does say there are multiple possible responses ("It is 
> guaranteed that at least J distinct jamcoins of length N exist."). That means 
> there's a special judge to look at your submission and see if it meets the 
> judging criteria. If you're getting rejected, that means it isn't, or that 
> there's a problem with the judge. It's extremely unlikely that there's a 
> problem with the judge, since 13361 people solved that problem correctly in 
> the qualification round and a further 2000 or so tried it, so I'd guess 
> there's a subtle problem with your code.
> 
> 
> Good luck!
> Bartholomew
> 
> 
> On Sat, Mar 25, 2017 at 6:26 AM Giang Nguyễn Trường  
> wrote:
> Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow đã 
> viết:
> 
> > The vast majority of Code Jam problems have only one correct output. There 
> > are some problems for which there can be multiple correct answers, and they 
> > are usually clearly marked. Is there a particular problem you're looking at 
> > where you think there might be multiple right answers?
> 
> >
> 
> >
> 
> >
> 
> > On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường,  
> > wrote:
> 
> > Hi, I'm practicing some past problem. Just as I mentioned above, Please 
> > help.
> 
> >
> 
> >
> 
> >
> 
> > --
> 
> >
> 
> > You received this message because you are subscribed to the Google Groups 
> > "Google Code Jam" group.
> 
> >
> 
> > To unsubscribe from this group and stop receiving emails from it, send an 
> > email to google-code...@googlegroups.com.
> 
> >
> 
> > To post to this group, send email to googl...@googlegroups.com.
> 
> >
> 
> > To view this discussion on the web visit 
> > https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com.
> 
> >
> 
> > For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> It's the Coin Jam in 2016 qualification round, I'd generated other Coin Jam 
> which is different from the example and so, I'd got the "Incorrect" when 
> submit the small test output.
> 
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Code Jam" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-code...@googlegroups.com.
> 
> To post to this group, send email to googl...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-code/7fec8a7c-0275-4e54-9fe4-40a0cbbffeaf%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.


Thanks, maybe it's about my code, because I've submited other practise and 
there was no problem. But in my opinion, when we submit a output file, the 
website will subtract it with the result and return correct if there was no 
different between our file and the result. So because it is a problem from the 
past, I think there will not be any judge to look at it. May be in the real 
contest, it will a bit different. :)
Thanks for yours response :)

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/5815c0fc-d836-4d1a-9401-99cf4ff29399%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-25 Thread Bartholomew Furrow
OK, a couple of thoughts:

1. Have you successfully submitted solutions to other problems? If not,
start with a relatively easy one like Store Credit
, just to make
sure the platform is working for you.

2. The problem does say there are multiple possible responses ("It is
guaranteed that at least J distinct jamcoins of length N exist."). That
means there's a special judge to look at your submission and see if it
meets the judging criteria. If you're getting rejected, that means it
isn't, or that there's a problem with the judge. It's extremely unlikely
that there's a problem with the judge, since 13361 people solved that
problem correctly in the qualification round and a further 2000 or so tried
it, so I'd guess there's a subtle problem with your code.

Good luck!
Bartholomew

On Sat, Mar 25, 2017 at 6:26 AM Giang Nguyễn Trường <
giangnguyentruong2...@gmail.com> wrote:

> Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow
> đã viết:
> > The vast majority of Code Jam problems have only one correct output.
> There are some problems for which there can be multiple correct answers,
> and they are usually clearly marked. Is there a particular problem you're
> looking at where you think there might be multiple right answers?
> >
> >
> >
> > On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường, <
> giangnguye...@gmail.com> wrote:
> > Hi, I'm practicing some past problem. Just as I mentioned above, Please
> help.
> >
> >
> >
> > --
> >
> > You received this message because you are subscribed to the Google
> Groups "Google Code Jam" group.
> >
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to google-code...@googlegroups.com.
> >
> > To post to this group, send email to googl...@googlegroups.com.
> >
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com
> .
> >
> > For more options, visit https://groups.google.com/d/optout.
>
> It's the Coin Jam in 2016 qualification round, I'd generated other Coin
> Jam which is different from the example and so, I'd got the "Incorrect"
> when submit the small test output.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/7fec8a7c-0275-4e54-9fe4-40a0cbbffeaf%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHMdBJ8SdBk%3DLn2wCYBXFx7Pn2az_QrPg4diAmc8MH1TXw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-25 Thread Giang Nguyễn Trường
Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow đã 
viết:
> The vast majority of Code Jam problems have only one correct output. There 
> are some problems for which there can be multiple correct answers, and they 
> are usually clearly marked. Is there a particular problem you're looking at 
> where you think there might be multiple right answers?
> 
> 
> 
> On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường,  
> wrote:
> Hi, I'm practicing some past problem. Just as I mentioned above, Please help.
> 
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Code Jam" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-code...@googlegroups.com.
> 
> To post to this group, send email to googl...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.

It's the Coin Jam in 2016 qualification round, I'd generated other Coin Jam 
which is different from the example and so, I'd got the "Incorrect" when submit 
the small test output.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/7fec8a7c-0275-4e54-9fe4-40a0cbbffeaf%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-25 Thread Giang Nguyễn Trường
Vào 02:17:35 UTC+7 Thứ Bảy, ngày 25 tháng 3 năm 2017, Bartholomew Furrow đã 
viết:
> The vast majority of Code Jam problems have only one correct output. There 
> are some problems for which there can be multiple correct answers, and they 
> are usually clearly marked. Is there a particular problem you're looking at 
> where you think there might be multiple right answers?
> 
> 
> 
> On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường,  
> wrote:
> Hi, I'm practicing some past problem. Just as I mentioned above, Please help.
> 
> 
> 
> --
> 
> You received this message because you are subscribed to the Google Groups 
> "Google Code Jam" group.
> 
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to google-code...@googlegroups.com.
> 
> To post to this group, send email to googl...@googlegroups.com.
> 
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com.
> 
> For more options, visit https://groups.google.com/d/optout.

It's the Coin Jam in qualification round in 2016, I generated other 3 examples 
which I've checked it's a Jam Coin too. So when I submit the output of small 
problem, I've got the "Incorrect" response from the website.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/b0ed3f80-0069-43b0-8731-59d6ad15ae25%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gcj] If a problem has many solution how can we check if which one is right?

2017-03-24 Thread Bartholomew Furrow
The vast majority of Code Jam problems have only one correct output. There
are some problems for which there can be multiple correct answers, and they
are usually clearly marked. Is there a particular problem you're looking at
where you think there might be multiple right answers?

On Fri, Mar 24, 2017, 11:38 Giang Nguyễn Trường, <
giangnguyentruong2...@gmail.com> wrote:

> Hi, I'm practicing some past problem. Just as I mentioned above, Please
> help.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Code Jam" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-code+unsubscr...@googlegroups.com.
> To post to this group, send email to google-code@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-code/6258571f-5875-4679-b12d-54d291e80c88%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Code Jam" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-code+unsubscr...@googlegroups.com.
To post to this group, send email to google-code@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-code/CAHaiWHP3H7MnGBe2ELFQfGk_ces6s859KqUMLANGB-JwFewz2g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.