Re: [gcj] Sample Failed: WA

2019-03-25 Thread Dmitry Kuzminov
That is Kick Start 2019, Round A, Parcels problem. On Sun, Mar 24, 2019 at 5:19 PM 'Pablo Heiber' via Google Code Jam < google-code@googlegroups.com> wrote: > Which round/problem? > > On Sun, Mar 24, 2019 at 12:42 PM Dmitry Kuzminov < > dmitry.kuzmi...@gmail.com> wrote: > >> That's the awesome ch

[gcj] Kick start (Parcel problem)

2019-03-25 Thread mukesh tiwari
Hi Everyone, My idea for this problem is run multiple source BFS from delivery node. Final value of this resulting bfs run would be minimum value at each cell, say Ret. After this, I find the cell which has height value and establish a delivery cell and run the bfs again from this cell, TRun.

[gcj] Re: Sample Failed: WA

2019-03-25 Thread Ho Wei Hong
On Sunday, March 24, 2019 at 4:59:29 PM UTC+8, Дмитрий Кузьминов wrote: > What does "Sample Failed: WA" verdict mean? Wrong answer. ur answer is incorrect for some/all cases -- You received this message because you are subscribed to the Google Groups "Google Code Jam" group. To unsubscribe from

Re: [gcj] Sample Failed: WA

2019-03-25 Thread Rishabh gupta
it define sample test case execution gives "Wrong answer(WA)" On Sun, Mar 24, 2019 at 2:29 PM Дмитрий Кузьминов wrote: > What does "Sample Failed: WA" verdict mean? > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe fro

Re: [gcj] Sample Failed: WA

2019-03-25 Thread Dmitry Kuzminov
Ok, let me clarify the question. Why does the same program gives WA now but gave the 'Sample Failed: WA" on the competition? On Mon, Mar 25, 2019 at 10:22 AM Rishabh gupta wrote: > it define sample test case execution gives "Wrong answer(WA)" > > > On Sun, Mar 24, 2019 at 2:29 PM Дмитрий Кузьмин

Re: [gcj] Kick start (Parcel problem)

2019-03-25 Thread Dmitry Kuzminov
First, running BFS multiple times is an overkill. You can run it once having an artificial node that connects all the sources with edges of 0 weight. Or even better run a Flood Fill with the source cells set to 0. Next, if I understood you correctly, you just greedily select a cell with maximum val

[gcj] 2018 KickStart Round G Product Triplets

2019-03-25 Thread Ho Wei Hong
Sorry to disturb this group again. But i can't seem to figure out where i got wrong. I feed in a few test case and everything works, but the checker seems to say WA(Wrong Answer) Hope somebody can point me to the right direction again. Thank you https://codingcompetitions.withgoogle.com/kickst

Re: [gcj] Sample Failed: WA

2019-03-25 Thread XYZT
Is this information reflected in the competition's FAQ/Rules? I can't find any explicit mention of this being the case (i.e., no penalties for sample input failure). On Sunday, 24 March 2019 13:36:29 UTC-4, Pablo Heiber wrote: > It means that your submission got a Wrong Answer on the sample inp

Re: [gcj] Sample Failed: WA

2019-03-25 Thread Yash Patel
It means Wrong Answer(WA) and Testcases not passed. On Sun, Mar 24, 2019 at 2:29 PM Дмитрий Кузьминов wrote: > What does "Sample Failed: WA" verdict mean? > > -- > You received this message because you are subscribed to the Google Groups > "Google Code Jam" group. > To unsubscribe from this gro

Re: [gcj] Sample Failed: WA

2019-03-25 Thread Sonu Jaiswal
Wrong answer On Sun 24 Mar, 2019, 2:29 PM Дмитрий Кузьминов, wrote: > What does "Sample Failed: WA" verdict mean? > > -- > 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

Re: [gcj] Sample Failed: WA

2019-03-25 Thread 'Pablo Heiber' via Google Code Jam
Hi Dimitry, This is not due to the feature not working, but a configuration issue with that specific problem. I've reached out to the Kick Start team to track down the reason for the issue. Rest assured that scores were unaffected by the issue, though. They'll be able to provide more details when

Re: [gcj] 2018 KickStart Round G Product Triplets

2019-03-25 Thread Xiongqi ZHANG
if (ls[i]*ls[j]) in ls[j+1:]: count+=1 I think you should add the number of occurrence instead of just 1 Also, isn't this solution too slow for large data set? Ho Wei Hong 于2019年3月25日周一 上午7:22写道: > Sorry to disturb this group again. > > But i can't seem to figure out where i got wrong. I

[gcj] Kick start (Parcel problem)

2019-03-25 Thread 김예중
Check out case 1. Theres only one office, so ret will be 01234. Then additional office will be at last point: 10001 Trun will be 43210 And minimum will be 01210. However actual minimizing office is 10010 and minimum is 01101. -- You received this message because you are subscribed to the Goo

[gcj] Errors in Code Jam FAQ

2019-03-25 Thread eatmore
Hi! While reading Code Jam FAQ, I found some errors: > Be aware of common problems like integer overflow and stack overflow that can > cause an otherwise correct solution to fail. The link from "stack overflow" is pointing to a Wikipedia page on integer overflow. > In an output file, if the corr