Conversation started Apr 2, 2015 at 18:03.
orlp
Apr 2, 2015 18:03
since all groups are worst case 2, you can start with either 2
[4 2] will result in 2
[2 4 2] will result in 2
2
Peter Taylor
But if you break the tie between groups by selecting a [4 2 4], your heuristic says that you should start with the 4.
Rainbolt
This is the best alter of a Magic card I've ever seen. Introducing,
Taylor Swiftspear
.
orlp
hmm
no, the tiebreaker doesn't quite work
I would definitely introduce a bit of preprocessing to make the problem a bit more uniform
since you can't target either end, I'd always use x/M moves on the 2nd and n-1th element
Nathan Merrill
wait, you can't target an end?
orlp
nope
says so in the problem you l inked
Nathan Merrill
Apr 2, 2015 18:12
ah, you are right
orlp
then maybe you can do some sort of left-to-right algorithm
Nathan Merrill
regardless, you can still end up with the same situation
orlp
yeah
since if you have x elements
the leftmost element must either be cleared by targetting it directly or the element to the right of it
(and ofc combinations of the two)
order of operations doesn't matter at all
Nathan Merrill
[0 0 5 2 5 0 0] N = 5 M = 2
orlp
yeah I know, the tiebreaker doesn't work :P
Nathan Merrill
Apr 2, 2015 18:15
that's not even a tiebreaker
2
orlp
actually, there it does work
Nathan Merrill
the element with the maximum number of moves is the center one, which is the wrong one to pick
2
orlp
[0 5 2] has a worst case of 1
2
err
2
right
2
nvm that algorithm all together
2
Rainbolt
This guy has ruined Christmas movies for me forever:
worldbuilding.stackexchange.com/q/13495
2
Guys,
Code Review
has 21768 starred messages. We have 2306.
2
orlp
unacceptable
2
randomra
Apr 2, 2015 18:22
what game you talk about? I can't find out
Nathan Merrill
we shouldn't go back to this:
chat.stackexchange.com/transcript/240?m=19630884#19630884
2
Rainbolt
You think that's bad? Take a look at CR's chat right now. I linked it above.
Nathan Merrill
@randomra
codeforces.com/problemset/problem/6/D
Rainbolt
Their starwall is like three times as tall
2
Nathan Merrill
XP
randomra
Apr 2, 2015 18:24
thanks, checking...
Nathan Merrill
their chat had some missing spots, so I had to fill them
2
Hosch250
> You have fully used your vote allowance for today
orlp
@Hosch250 time to bring out the sockpuppet
Hosch250
@orlp I don't have one.
@Rainbolt
StarredMessages += 40;
Rainbolt
Apr 2, 2015 18:41
All of you who want to play StackEggs for fun vote on this proposal:
meta.codereview.stackexchange.com/a/5175/36427
Geobits
I leave for
40 minutes
and you guys trash the place. I'm calling all your parents.
13
Conversation ended Apr 2, 2015 at 18:41.
all rooms
And you think stars are bad now -_-
Apr '15
2
The Nineteenth Byte
The Nineteenth Byte: General discussion for
codegolf.stackexc...
12
6
context of the conversation
join this room
about this room
Participants
orlp
50%
Nathan Merrill
21%
Rainbolt
13%
Hosch250
6%
randomra
4%
Peter Taylor
2%
Geobits
2%
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile