Google Code Jam
-
hyperpape
- Tengen
- Posts: 4382
- Joined: Thu May 06, 2010 3:24 pm
- Rank: AGA 3k
- GD Posts: 65
- OGS: Hyperpape 4k
- Location: Caldas da Rainha, Portugal
- Has thanked: 499 times
- Been thanked: 727 times
Re: Google Code Jam
I'm just gonna sit here and keep pounding the table and saying it's obviously harder.
In all seriousness, I'm not completely surprised. Pancakes looks like the sort of combinatorial problem that has a quick and clever solution that I can never see, whereas Tidy is a straightforward programming exercise.
In all seriousness, I'm not completely surprised. Pancakes looks like the sort of combinatorial problem that has a quick and clever solution that I can never see, whereas Tidy is a straightforward programming exercise.
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Google Code Jam
I haven't given pancakes a shot yet, so maybe I'll start on that one tonight. I got a bit hung up on making a scalable bathroom stalls solution, but maybe I'll come back to that later. There might be a property I'm missing to identify spacing between stalls quickly.
I'll think about it some more after trying pancakes.
Pretty sure pancakes can be solved with dynamic programming, but I don't have the full picture in my head, yet.
Probably something like finding minimal number of flips for K pancakes, store it, then look to see if you can do better by flipping K+1. Not quite sure yet, but I'll think about it tonight.
I'll think about it some more after trying pancakes.
Pretty sure pancakes can be solved with dynamic programming, but I don't have the full picture in my head, yet.
Probably something like finding minimal number of flips for K pancakes, store it, then look to see if you can do better by flipping K+1. Not quite sure yet, but I'll think about it tonight.
be immersed
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Google Code Jam
Back from the zoo now, and the kids are playing... So I'll give the pancake problem another shot.
I thought about it more, and I may be making things too complicated.
I think I'm just going to try to do a simpler way to see if that works.
I thought about it more, and I may be making things too complicated.
I think I'm just going to try to do a simpler way to see if that works.
be immersed
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Google Code Jam
I've written 200 lines of code for Fashion Show and I'm so unhappy
I'm probably going to be angry after I see what the answer is supposed to be
I'm probably going to be angry after I see what the answer is supposed to be
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
Re: Google Code Jam
tfw you look at a top user's code for Fashion Show and it's less than 30 lines of code.Shaddy wrote:I've written 200 lines of code for Fashion Show and I'm so unhappy
I'm probably going to be angry after I see what the answer is supposed to be
- Solomon
- Gosei
- Posts: 1848
- Joined: Tue Apr 20, 2010 9:21 pm
- Rank: AGA 5d
- GD Posts: 0
- KGS: Capsule 4d
- Tygem: 치킨까스 5d
- Location: Bellevue, WA
- Has thanked: 90 times
- Been thanked: 835 times
Re: Google Code Jam
Failed on 2 larges unfortunately, but still managed to advance to R1 w/ 35 points. It was fun! Hopefully I can advance to Round 2 through Round 1C, which I heard is the easiest since 2000 of the 3000 who would have advanced already go through, and it's at a weird time for anyone outside the US (2am PST). Good job on getting half of D Shaddy!
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Google Code Jam
Shaddy wrote:How'd everyone do?
I missed D-large.
I still didn't submit any other problems, other than what I already did last night (Tidy Numbers Small/Large + Bathroom Stalls Small).
Kids just went to bed, though, so I will see if I can solve some of the other ones tonight.
My only other goal for the night is to do taxes, and that shouldn't take too long :-p
be immersed
- Shaddy
- Lives in sente
- Posts: 1206
- Joined: Sat Apr 24, 2010 2:44 pm
- Rank: KGS 5d
- GD Posts: 0
- KGS: Str1fe, Midorisuke
- Has thanked: 51 times
- Been thanked: 192 times
Re: Google Code Jam
Solomon wrote:Failed on 2 larges unfortunately, but still managed to advance to R1 w/ 35 points. It was fun! Hopefully I can advance to Round 2 through Round 1C, which I heard is the easiest since 2000 of the 3000 who would have advanced already go through, and it's at a weird time for anyone outside the US (2am PST). Good job on getting half of D Shaddy!
Urgh. I just read the solution, and I feel silly now. There's always next round..
-
gamesorry
- Lives with ko
- Posts: 149
- Joined: Thu Jan 22, 2015 6:03 pm
- Rank: 3d
- GD Posts: 0
- KGS: 3d
- DGS: 3d
- OGS: 3d
- Has thanked: 276 times
- Been thanked: 49 times
Re: Google Code Jam
Solomon wrote:Failed on 2 larges unfortunately, but still managed to advance to R1 w/ 35 points. It was fun! Hopefully I can advance to Round 2 through Round 1C, which I heard is the easiest since 2000 of the 3000 who would have advanced already go through, and it's at a weird time for anyone outside the US (2am PST). Good job on getting half of D Shaddy!
I also advance to R1 w/ 35 points from the first two problems. I'll probably try Round 1A because the other two don't match my schedule well
-
Kirby
- Honinbo
- Posts: 9553
- Joined: Wed Feb 24, 2010 6:04 pm
- GD Posts: 0
- KGS: Kirby
- Tygem: 커비라고해
- Has thanked: 1583 times
- Been thanked: 1707 times
Re: Google Code Jam
I guess in the next round, we have to be fast, since there's a cut off. Personally I think that participating at a fitting schedule trumps playing at a less popular time.
Solving problems at 2am is a lot harder than during the day.
Solving problems at 2am is a lot harder than during the day.
be immersed
- HermanHiddema
- Gosei
- Posts: 2011
- Joined: Tue Apr 20, 2010 10:08 am
- Rank: Dutch 4D
- GD Posts: 645
- Universal go server handle: herminator
- Location: Groningen, NL
- Has thanked: 202 times
- Been thanked: 1086 times
Re: Google Code Jam
As expected, I didn't get around to doing problem 4. Got home at 2am and preferred sleep over making a last ditch 2 hour effort 
Problem 4 sounded like a variation of the 8 queens problem. I might have a go at it for fun if I can find the time.
Anyway, I advance with 65 pts from the first 3.
Problem 4 sounded like a variation of the 8 queens problem. I might have a go at it for fun if I can find the time.
Anyway, I advance with 65 pts from the first 3.