16
4
Meta discussion: Is "(The other day) I met a bear" a duplicate?
Your challenge is to output this text:
The other day,
The other day,
I met a bear,
I met a bear,
A great big bear,
A great big bear,
Oh way out there.
Oh way out there.
The other day,
I met a bear,
A great big bear,
Oh way out there.
He looked at me,
He looked at me,
I looked at him,
I looked at him,
He sized up me,
He sized up me,
I sized up him.
I sized up him.
He looked at me,
I looked at him,
He sized up me,
I sized up him.
He said to me,
He said to me,
"Why don't you run?
"Why don't you run?
I see you ain't,
I see you ain't,
Got any gun."
Got any gun."
He said to me,
"Why don't you run?
I see you ain't,
Got any gun."
I says to him,
I says to him,
"That's a good idea."
"That's a good idea."
"Now legs get going,
"Now legs get going,
get me out of here!"
get me out of here!"
I says to him,
"That's a good idea."
"Now legs get going,
get me out of here!"
And so I ran,
And so I ran,
Away from there,
Away from there,
But right behind me,
But right behind me,
Was that bear.
Was that bear.
And so I ran,
Away from there,
But right behind me,
Was that bear.
In front of me,
In front of me,
There was a tree,
There was a tree,
A great big tree,
A great big tree,
Oh glory be!
Oh glory be!
In front of me,
There was a tree,
A great big tree,
Oh glory be!
The lowest branch,
The lowest branch,
Was ten feet up,
Was ten feet up,
So I thought I'd jump,
So I thought I'd jump,
And trust my luck.
And trust my luck.
The lowest branch,
Was ten feet up,
So I thought I'd jump,
And trust my luck.
And so I jumped,
And so I jumped,
Into the air,
Into the air,
But I missed that branch,
But I missed that branch,
A way up there.
A way up there.
And so I jumped,
Into the air,
But I missed that branch,
A way up there.
Now don't you fret,
Now don't you fret,
And don't you frown,
And don't you frown,
I Caught that branch,
I Caught that branch,
On the way back down!
On the way back down!
Now don't you fret,
And don't you frown,
I Caught that branch,
On the way back down!
This is the end,
This is the end,
There aint no more,
There aint no more,
Unless I see,
Unless I see,
That bear once more.
That bear once more.
This is the end,
There aint no more,
Unless I see,
That bear once more.
Pattern:
First, each line is repeated once, linebreak-separated, and then 2 newlines, and then the above stanza is printed without the repetition. Then the next stanza.
Rules
- Trailing whitespace is allowed at the end of the output, but the rest must be printed as-is.
Is there any reason you don't think this is a duplicate of the rickroll challenge? – FryAmTheEggman – 2017-05-09T14:12:34.407
6@Riker this challenge has a different repetition pattern and answers should be very diffrent. – programmer5000 – 2017-05-09T14:16:34.880
3
@Riker https://codegolf.meta.stackexchange.com/questions/6956/trigger-happy-on-the-duplicate-button-do-we-really-consider-all-song-lyric-ques
– HyperNeutrino – 2017-05-09T14:21:52.6609@programmer5000 aside from the simple
repeat each line twice, then repeat the paragraph
, it doesn't really have any other patterns. I think that's a pretty trivial difference, personally. – Rɪᴋᴇʀ – 2017-05-09T14:30:54.40011There is no logical connection between "this challenge has a different repetition pattern" and "answers should be very different". If you take the time to understand the answers to the rickroll challenge you'll discover that they nearly all use an approach which is near-optimal for any repetition pattern more complicated than "no repetition". – Peter Taylor – 2017-05-09T15:40:01.037
1Just looking at the pattern here, it's more structured than the rickroll, meaning that you can apply an extra problem-specific level of compression here that you can't there. However, the problem is that that's only a small part of the challenge, and the bulk of the challenge is identical to that of the rickroll. Or in other words, this is a rickroll + 1 extra step. It might have been a better challenge as the extra step on its own. (I don't have much of a strong opinion as to whether this is a dupe.) – None – 2017-05-09T23:10:16.580
May we output
ain't
in the final two stanzas (it is written correctly earlier in the song)? – Jonathan Allan – 2017-05-10T15:28:17.7771@JonathanAllan yes. – programmer5000 – 2017-05-10T15:28:58.100
Can there be prepending whitespace? – dzaima – 2017-05-10T15:34:00.133
1@dzaima yes, there can. – programmer5000 – 2017-05-10T15:35:16.120
1I call dibs on the ~503 byte bubblegum answer once I get the compression to give me the right text. – Christopher – 2017-05-10T15:50:56.410
3Personally I believe marking questions like these as duplicates is disappointing. It's very uncommon for someone to find the original challenge asked almost 5 years ago ago post their answer there. A spin off such as this should be perfectly acceptable as it reanimates this type of challenge in new light. – Graviton – 2017-05-10T19:22:38.310
@YamB agreed. And it looks like it is finally open! Thanks if that last vote was yours! – programmer5000 – 2017-05-10T19:52:26.457
1If two different gold code-golf members have dupe closed this don't you think that is a sign? – Christopher – 2017-05-11T10:28:20.490
3Just as a note, this question has now been to reopen review three times, and received a total of 7 "leave closed" votes and 3 "reopen" votes. (This is in addition to all the close and reopen votes that have been made on the question directly.) At this point, it may be worth discussing this on Meta rather than trying to use the review system. – None – 2017-05-11T11:49:37.287