1
Much like this challenge, write a program or function that takes no input and prints or returns the string
Hello, Earth!
with an optional trailing newline.
The catch is that your program must be an even number of characters long, and each two character chunk of your program must consist of identical characters.
For example, a valid program might look like
AAbb==11++♥♥
[[-- 2222]]
because every two character chunk (AA
, bb
, ==
, 11
, etc.) is made of two identical characters (even the newlines).
A program such as
AAbB==11++♥♥
[[-- 2222]]
would not be valid because the bB
chunk is not made of identical characters.
The only exception to the rule is that \r\n
should be treated a single, generic "newline" character since replacing it with \r\r\n\n
wouldn't work or make sense for some languages and systems.
The shortest code in bytes wins. The example is 30 bytes long (not 15, not 13).
3You are banning most non esolangs – Rohan Jhunjhunwala – 2016-09-07T23:56:41.857
1@RohanJhunjhunwala That's the way it goes. – Calvin's Hobbies – 2016-09-08T00:01:27.973
1-1 for trivial challenge masked by source-layout/restricted-source (something new users are heavily bashed for). Also I dislike the narrow language restrictions – Downgoat – 2016-09-08T00:05:23.593
5@Downgoat I think this a perfectly valid/interesting challenge, and I don't see any language restrictions. – Conor O'Brien – 2016-09-08T00:06:45.060
4@ConorO'Brien you may vote how you like. I am entitled as so too, I always comment when I downvote – Downgoat – 2016-09-08T00:09:50.043
@Downgoat s/downvote/downgoat most non esolang like languages are arbitrarily disqualified like this. I support the downgoat. +1 to your comments – Rohan Jhunjhunwala – 2016-09-08T00:11:43.320
1@RohanJhunjhunwala To be clear, no languages have been disqualified, it just may be impossible in many. And I think it's good once in a while to have a challenge that lets real esolangs shine. Most challenges are invariably full of mainstream and golfing language answers as there is no need for anything more exceptional. – Calvin's Hobbies – 2016-09-08T00:20:48.437
@HelkaHomba I understand that no language has been explicitly banned, but I feel most good challenges should at least remain theoretically possible in most Turing Complete challenges. It is nothing personal. – Rohan Jhunjhunwala – 2016-09-08T00:24:01.257
"Hello, Earth!" has an odd number of characters. That'll make it harder... – Blue – 2016-09-08T01:06:26.017
2Not trying to start/prolong a discussion, and you're certainly entitled to vote as you see fit, but new users usually create yet another incarnation of perform task T without using the characters XYZ or the built-in B, which is utterly repetitive and on occasions unclear. – Dennis – 2016-09-08T02:40:37.523
@Sp3000: It´s not an exact duplicate. The other challenge has the subsequent restriction only on certain positions. – Titus – 2016-09-08T12:48:20.443
@Titus I think you may have misread the other specification. The wording is a bit more convoluted than in this challenge, but it's also saying that every pair of characters needs to be identical. – Martin Ender – 2016-09-08T13:36:01.003
@MartinEnder: Oh right. I misread 2n as 2^n. – Titus – 2016-09-09T19:55:30.170