text
stringlengths 180
608k
|
---|
[Question]
[
Write a program that connects to this site, downloads the very answer in which it is posted, extracts its own source code and prints it out. The output must be identical to the source code. Shortest code (in bytes) wins.
Rules:
* No URL shorteners allowed.
* The answer must have a regular format - a heading with the language name and size, optional description, code block, optional description and explanation. No unnatural delimiters allowed.
* The output must originate from the actual code block posted on the site.
* The functionality must not depend on the position in the answer list; it should work even if there are multiple pages and the answer it not on the first one.
* **New:** special note for answers that are supposed to be run in a browser: it is ok to require running them on the codegolf domain (to obey the same-origin policy) but the domain and path should be included in the solution in order to make it fair.
[Answer]
# Bash + coreutils + Lynx browser, 61 bytes
Thanks to @FDinoff for the tips:
```
lynx -dump codegolf.stackexchange.com/posts/28164/body|grep 2
```
[Answer]
# Ruby, ~~155~~ ~~186~~ ~~195~~ ~~148~~ ~~138~~ ~~110~~ 97 characters
```
require'open-uri';puts open('http://codegolf.stackexchange.com/posts/28159/body').read[/req.+;/];
```
I had to make it one line, because otherwise it would output newlines as `\n` instead of actual newlines.
* ~~+31 characters because I didn't notice some characters were being escaped.~~
* ~~+9 characters to get rid of the annoying backslash.~~
* Thanks to Nathan Osman for saving 2 chars, and Ventero for saving 55 (!!!) by removing the need for most of the fixes listed above.
---
## The explanation
Let's beautify this a bit first. However, I'm going to have to use a somewhat... interesting notation in this code. I can't use semicolons at all in this post, for reasons explained later, so I will use `{SEMI}` in place of semicolons instead.
```
require 'open-uri'
resp = open('http://codegolf.stackexchange.com/posts/28159/body').read
puts resp.match(/req.+{SEMI}/){SEMI}
```
Alright, now let's walk through this. The first two lines are fairly self-explanatory -- they fetch the HTML text of this answer.
Now, the last line is the interesting one here. You see that seemingly useless semicolon at the end of the code? It's absolutely required, and here's why.
First, `resp.match` extracts the code to be printed. The regexp it uses for this is the trick: `/req.+{SEMI}/`. It grabs the start of the code, `REQuire'net/http'`, by searching for `req` (`re` would grab my `REputation`). Then, it finds the end of the code by searching for a semicolon! Since `+` is greedy by default, it will keep going until it finds the semicolon that signifies the end of the code. See why I can't use semicolons anymore?
~~After that, I don't have to unescape anything thanks to Ventero's fix of not using `\` at all anymore. All I have to do is fix `{AMPERSAND}` changing into `{AMPERSAND}amp{SEMI}`, which can be achieved simply by removing the `amp{SEMI}` part.~~ No need for this anymore because of new URL. After that, the original code has been retrieved! *(Note: I can't use the ampersand either, because that gets HTML-encoded which causes a semicolon to be created.)*
[Answer]
## PowerShell - 69 62
```
(irm codegolf.stackexchange.com/posts/28236/body).div.pre.code
```
[Answer]
# JavaScript - 123 122 101 95 92 91 87 86 114
```
with(new XMLHttpRequest)send(open(0,/\codegolf.stackexchange.com\posts\28175\body/,0)),alert(/w.*/.exec(response))
```
Runs in the console of your web browser on this page. Tested on the latest Chrome and Firefox.
*edit: +28 bytes to add the full domain.*
*Firefox doesn't like my Regex URL trick anymore with this update :(*
Here's the rule-breaking 86 byte solution:
```
with(new XMLHttpRequest)send(open(0,/posts\28175\body/,0)),alert(/w.*/.exec(response))
```
[Answer]
# Ruby + wget + gunzip, 159 86 82 71
Using tip of @FDinoff to use `http://codegolf.stackexchange.com/posts/28173/body`.
```
puts `wget -qO- codegolf.stackexchange.com/posts/28173/body`[/pu.*\]/]
```
Tested. Thanks to @ace and @Bob for command line optimization.
[Answer]
# CJam - 53
```
"codegolf.stackexchange.com/posts/28184/body"g54/1=);
```
I'm making this community wiki since I'm answering my own question and don't really want to compete :p
Credits to FDinoff for the URL choice.
[Answer]
# Rebmu, 91 characters
Due to the Catch-22 I have to post to get this answer's URL. :-/ Okay, got it.
```
paTSrd http://codegolf.stackexchange.com/a/28154[th<a name="28154">th<code>cpCto</code>]prC
```
Rebmu is a dialect of Rebol, and [you can read all 'bout it](https://github.com/hostilefork/rebmu). The equivalent Rebol here would be:
```
parse to-string read http://codegolf.stackexchange.com/a/28154 [
thru <a name="28154">
thru <code>
copy c to </code>
]
print c
```
Rebol's PARSE is a sort of highly-literate answer to RegEx. It starts a parser position of the input *(which can be any series, including structural blocks...binary data...or string types)*. The rules are a language for how the parse position moves.
Tags and URLs are really just strings under the hood in the language. But they are "flavored", and as Rebol is dynamically typed you can check that type. READ for instance knows that if you give it a URL-flavored string, then it should dispatch to a scheme handler to do the reading. (In this case, the one registered for HTTP). You get back UTF-8 bytes by default, so we use to-string to decode that and get a series of codepoints in a normal Unicode string.
In the case of the parse dialect, encountering a tag type is just matched as if it were a string that looked like the tag. THRU is an instruction meaning "skip until the ensuing rule is matched, and then place the match position at the end of what you just matched." (TO is the analogue that matches, but leaves the parse position before the element).
So we zip along past the `<a name="28154">`. Then we zip past the next occurrence of `<code>`, with our parse position now located right after the `>`. PARSE's COPY command then lets us copy data up to another rule, in this case that rule is `[TO </code>]`... so we get into the variable C everything up until right before that `<`.
[Cool](http://blog.hostilefork.com/why-rebol-red-parse-cool/), huh? :-)
Technically I could shave more off it, for instance by seeking `TO "</"` and that saves three characters--there's no need to match the whole `</code>` end tag when just `</` would do. Similar arguments could me made for the start tag. But Rebmu is about *literate* golfing...even if you might think it looks odd at first!
**UPDATE**: the `/body` trick is out of the bag, but I'm similarly going to leave it as-is...because I think it is more educational this way.
[Answer]
## Java now 634, 852, was 1004
Code has been updated; thanks for suggestions.
Golfed: now replaces > with >
```
//bacchus
package golf;
import java.net.*;
import java.util.*;
public class G{
public static void main(String[] a) throws Exception {
Scanner z;
URL u;
int x=0;
String s;
u=new URL("http://codegolf.stackexchange.com/questions/28154/write-a-program-that-downloads-itself");
z=new Scanner(u.openConnection().getInputStream());
z.useDelimiter("\\s*//bacchus\\s*");
while(z.hasNext())
{
s=z.next();
s=s.replace(">", ">");
if(x>0)System.out.println("//bacchus\n"+s);
x++;
if(x>2)break;
}
System.out.println("//bacchus\n");
}
}
//bacchus
```
Submitting for testing, I will edit and try golfing it shortly.
Needed to change x>1 to x>2 because test string is also in my code.
Note: Code golf replaces > symbol to >.
```
//bacchus
package golf;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
public class Golf {
public static void main(String[] args) throws IOException {
URL u;
URLConnection c;
InputStream i;
InputStreamReader r;
BufferedReader b;
String s;
int x=0;
try {
u=new URL("http://codegolf.stackexchange.com/questions/28154/write-a-program-that-downloads-itself");
c=u.openConnection();
i=c.getInputStream();
r=new InputStreamReader(i);
b=new BufferedReader(r);
while((s=b.readLine())!=null)
{
if(s.contains("//bacchus")) x++;
if(x>0)System.out.println(s);
if(x>2) break;
}
i.close();
b.close();
} catch (MalformedURLException ex) {
}
}
}
//bacchus
```
[Answer]
# Python, 175 167 bytes
This uses two external libraries; I didn't read that it was unauthorized.
```
import bs4,requests
print(bs4.BeautifulSoup(requests.get('http://codegolf.stackexchange.com/q/28154').text).select('#answer-28171')[0].select('pre > code')[0].string)
```
Longer, but nicer looking code:
```
import bs4, requests
request = requests.get('http://codegolf.stackexchange.com/q/28154')
soup = bs4.BeautifulSoup(request.text)
answer = soup.select('#answer-28171')[0]
code = answer.select('pre > code')[1].string
print(code)
```
[Answer]
## w3m 45 characters
```
w3m codegolf.stackexchange.com/a/28336|grep ‚òª
```
[Answer]
## JavaScript, 228
```
r=new XMLHttpRequest()
c='code'
r.open('GET','//'+c+'golf.stackexchange.com/posts/28157/body')
r.onreadystatechange=function(){this.readyState==4&&alert((a=r.responseText).substr(i=a.indexOf(c)+5,a.indexOf('/'+c)-i-1))}
r.send()
```
Runs on this page.
[Answer]
## Haskell, 563 613 bytes
```
import Control.Monad
import Data.List
import Network.HTTP
m%f=join(fmap f m)
q s=(simpleHTTP(getRequest"http://codegolf.stackexchange.com/questions/28154/write-a-program-that-downloads-itself?answertab=oldest#tab-top"))%getResponseBody%(putStrLn.head.filter((==)(s++show s)).map(take 613).tails)
main=q"import Control.Monad\nimport Data.List\nimport Network.HTTP\nm%f=join(fmap f m)\nq s=(simpleHTTP(getRequest\"http://codegolf.stackexchange.com/questions/28154/write-a-program-that-downloads-itself?answertab=oldest#tab-top\"))%getResponseBody%(putStrLn.head.filter((==)(s++show s)).map(take 613).tails)\nmain=q"
```
Tested. Has page support via "oldest posts" feature. Uses quine-line structure to find what to print.
The `import Control.Monad` is only because `>>=` generates `>` in HTML.
[Answer]
# Javascript +jQuery, 87, 67
I'm not sure wether I'm allowed to use jQuery, but:
```
$('body').load('//codegolf.stackexchange.com/posts/28268/body pre')
```
---
### Javascript + jQuery, if excecuted in this page: 27, 25
For fun, if it would be excecuted here:
```
$('[id$=268] pre').html()
```
`$('[id$=28268] pre').html()`
[Answer]
# Dart, 164
I thought I'd try this in Dart, is pretty fun to use imo.
This can be run in the console in DartEditor, but does require the http package added in pubspec.yaml
```
import"package:http/http.dart"as h;h.read("http://codegolf.stackexchange.com/posts/28215/body").then((s){print(new RegExp(r"im.+(?:})").firstMatch(s).group(0));});}
```
Ungolfed version:
```
import "package:http/http.dart" as h;
void main()
{
h.read("http://codegolf.stackexchange.com/posts/28215/body").then((s)
{
print(new RegExp(r"im.+(?:})").firstMatch(s).group(0));
});
}
```
[Answer]
## R 114 characters
```
library(XML);cat(xpathSApply(xmlParse("http://codegolf.stackexchange.com/posts/28216/body"),'//code',xmlValue)[1])
```
No real magic here: it takes the value of the field between the html tags `<code></code>`. Uses library `XML` (as one can see in the code quite obviously). Outputs the result as stdout.
[Answer]
# [APL (Dyalog Unicode)](https://www.dyalog.com/), 108 bytes
```
6 3⌷⎕XML{(⎕SE.SALT.New'HttpCommand'('GET'⍵)).Run.Data}'https://codegolf.stackexchange.com/posts/211205/body'
```
[Don't Try it online, try it locally](https://tio.run/##SyzI0U2pTMzJT///30zB@FHP9kd9UyN8fao1gHSwq16wo0@Inl9qubpHSUmBc35ubmJeirqGurtriPqj3q2amnpBpXl6LoklibXqGUAVxVb6@sn5Kanp@TlpesUlicnZqRXJGYl56al6yfm5@gX5xSXF@kaGhkYGpvpJ@SmV6v//AwA "APL (Dyalog Unicode) – Try It Online")
~~Correct link coming soon.~~
## Output:
[![enter image description here](https://i.stack.imgur.com/Bp2Ih.png)](https://i.stack.imgur.com/Bp2Ih.png)
[Answer]
# Java, ~~300~~ 294
```
import java.net.*;import java.util.*;public class G{public static void main (String [] a) throws Exception{Scanner s=new Scanner(new URL("http://codegolf.stackexchange.com/posts/28189/body").openConnection().getInputStream()).useDelimiter("./?[c]ode\\W");s.next();System.out.print(s.next());}}
```
An improved version of bacchusbeale's answer which:
* doesn't close resources unnecessarily
* doesn't declare unnecessary variables
* uses a `Scanner` to avoid having to loop over the input
* uses a regexp that doesn't match itself to avoid having to skip over a middle occurrence of the start/end marker.
Updated:
* Use a direct URL to the post, so we don't need a unique comment to identify the start/end of the code; now uses `<code>[...]</code>` as the delimiters to search for (actually using the regular expression "./?[c]ode\W", so as to avoid having to decode `<` and `>` -- the "\W" is necessary rather than the shorter "." to avoid it matching part of the URL to the post, unfortunately, which costs 2 characters, and the square brackets around c prevent the regex matching itself).
[Answer]
# w3m 55 bytes
```
w3m codegolf.stackexchange.com/posts/28242/body|grep x
```
Based on @DigitalTrauma
[Answer]
# Ruby, ~~237~~ ~~215~~ ~~146~~ 132
```
require'mechanize'
a=Mechanize.new
puts a.get('http://codegolf.stackexchange.com/a/28159').search('.lang-rb code:nth-child(1)').text
```
[Answer]
# Processing, 90
```
print(loadStrings("http://codegolf.stackexchange.com/posts/28657/body")[2].substring(11));
```
**Edit:** Finally got it!
[Answer]
# Python, 164
Works by extracting the text between the code tags. It is quite long but it will always function correctly unless the html page is edited directly or a new code block is added before the one below (having a block of code after should have no effect on the output of the program).
```
import urllib2
print urllib2.urlopen("http://codegolf.stackexchange.com/posts/28617/body").read().split(chr(60)+"code"+chr(62))[1].split(chr(60)+"/code"+chr(62))[0]
```
[Answer]
# bash + awk, 71 bytes
```
curl -sL codegolf.stackexchange.com/q/28154 |awk -F\> '/\#/ {print $3}'
```
[Answer]
# Javascript, 138
```
a=window.open("http://codegolf.stackexchange.com/posts/28160/body");setTimeout('alert(a.document.body.innerHTML.match(/a=.*9\\)/)[0])',99)
```
This works assuming that the page loads in under 99 ms. It also has to be run via a console opened on a codegolf.SE page, because of the same origin policy.
[Answer]
## Perl 5.10, 155 127 122 117 bytes
```
use XML::LibXML;say XML::LibXML->new->parse_file('http://codegolf.stackexchange.com/posts/28330/body')->find('//pre')
```
Using `XML::LibXML`.
[Answer]
## Shell and xmllint, 82 bytes
```
xmllint --xpath 'string(//pre)' http://codegolf.stackexchange.com/posts/28333/body
```
] |
[Question]
[
Write a program that will generate a "true" output [iff](http://en.wikipedia.org/wiki/If_and_only_if) the input matches the source code of the program, and which generates a "false" output iff the input does not match the source code of the program.
This problem can be described as being related to quines, as the program must be able to somehow compute its own source code in the process.
This is code golf: standard rules apply. Your program must not access any special files, such as the file of its own source code.
*Edit: If you so choose, true/false can be replaced with True/False or 1/0.*
# Example
If the source code of your program is `bhiofvewoibh46948732));:/)4`, then here is what your program must do:
## Input (Stdin)
```
bhiofvewoibh46948732));:/)4
```
## Output (Stdout)
```
true
```
## Input
```
(Anything other than your source code)
```
## Output
```
false
```
[Answer]
# JavaScript : 26
```
function f(s){return s==f}
```
I don't know if a JavaScript file really qualifies as a "program".
[Answer]
# Haskell, 72 characters
```
main=interact$show.(==s++show s);s="main=interact$show.(==s++show s);s="
```
Note: there is no end-of-line character at the end of the script.
```
$ runhaskell Self.hs < Self.hs
True
```
[Answer]
# Perl, ~~Infinity~~ ~~41~~ 38 Characters
```
$_=q(print<>eq"\$_=q($_);eval"|0);eval
```
**Update:** The program no longer ends with a newline, which means it will work correctly on multi-line files. You have to enter input from STDIN without hitting enter. On Windows I was only able to do this by reading from a file.
Original solution:
```
print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(print<>==q(...
```
[Answer]
# [><>](https://esolangs.org/wiki/Fish), 68 bytes
Fishes love eating fish poop. Now we know they can distinguish theirs from their friends'.
```
00v 0+1~$^?)0~\;n0\
>:@@:@gi:0(?\:a=?/=?!/$1+
0n;n*=f$=2~~/
```
You can [try it online](https://fishlanguage.com/playground) !
[Answer]
## GolfScript, 11 chars
```
{`".~"+=}.~
```
Without the `=`, this code would be a quine that generates its own source code as a string. The `=` makes it compare this string to its input and output `1` if they match and `0` if they don't.
Note that the comparison is exact — in particular, a trailing newline at the end of the input will cause it to fail.
**Explanation:**
* `{ }` is a code block literal in GolfScript;
* `.` duplicates this code block, and `~` executes the second copy (leaving the first on the stack);
* ``` stringifies the code block, and `".~"+` appends `.~` to it;
* finally, `=` compares the resulting string with the input (which is pushed on the stack as a string by the GolfScript interpreter before the program starts) and returns `1` if they match and `0` if they don't.
[Answer]
# Python 2, 55
```
a='a=%r;print a%%a==raw_input()';print a%a==raw_input()
```
Tested:
`a='a=%r;print a%%a==raw_input()';print a%a==raw_input()` -> `True`
`(anything else)` -> `False`
[Answer]
# JavaScript ES6, ~~16~~ 14 bytes
```
$=_=>_==`$=`+$
```
Minus two bytes thanks to Neil.
31 bytes if we must take input via prompt.
```
$=_=>prompt()==`$=${$};$()`;$()
```
38 bytes if we must output via alert.
```
$=_=>alert(prompt()==`$=${$};$()`);$()
```
This is the *proper* way to do it, as Optimizer's answer does not accept the entire source code.
[Answer]
# Node.js : 54
```
function f(){console.log(f+'f()'==process.argv[2])}f()
```
You test it by saving it into a file `f.js` (the exact name has no importance) and using
```
node f.js "test"
```
(which outputs false) or
```
node f.js "$(< f.js)"
```
(which outputs true)
I also made a different version based on eval :
```
eval(f="console.log('eval(f='+JSON.stringify(f)+')'==process.argv[2])")
```
It's now at 72 chars, I'll try to shorten that when I have time.
[Answer]
# Smalltalk (Pharo 2.0 dialect), 41 bytes
Implement this **41** chars method in String (ugly formatting for code-golf):
```
isItMe^self=thisContext method sourceCode
```
Then evaluate this in a Workspace (printIt the traditional Smalltalk way)
The input is not read from stdin, it's just a String to which we send the message (what else a program could be in Smalltalk?):
```
'isItMe^self=thisContext method sourceCode' isItMe.
```
But we are cheating, sourceCode reads some source file...
Here is a variant with **51** chars which does not:
```
isItMe
^ self = thisContext method decompileString
```
And test with:
```
'isItMe
^ self = thisContext method decompileString' isItMe
```
If a String in a Workspace is not considered a valid input, then let's see how to use some Dialog Box in **116** chars
Just evaluate this sentence:
```
(UIManager default request: 'type me') = (thisContext method decompileString withSeparatorsCompacted allButFirst: 7)
```
Since decompile format includes CR and TAB, we change that withSeparatorsCompacted.
Then we skip the first 7 chars are 'doIt ^ '
Finally a **105** chars variant using stdin, just interpret this sentence from command line, just to feel more mainstream:
```
Pharo -headless Pharo-2.0.image eval "FileStream stdin nextLine = (thisContext method decompileString withSeparatorsCompacted allButFirst: 7)"
```
[Answer]
# flex - 312 chars
```
Q \"
N \n
S " "
B \\
P "Q{S}{B}{Q}{N}N{S}{B}n{N}S{S}{Q}{S}{Q}{N}B{S}{B}{B}{N}P{S}{Q}{P}{Q}{N}M{S}{Q}{M}{Q}{N}%%{N}{P}{N}{M}{N} putchar('1');"
M "(.|{N})* putchar('0');"
%%
Q{S}{B}{Q}{N}N{S}{B}n{N}S{S}{Q}{S}{Q}{N}B{S}{B}{B}{N}P{S}{Q}{P}{Q}{N}M{S}{Q}{M}{Q}{N}%%{N}{P}{N}{M}{N} putchar('1');
(.|{N})* putchar('0');
```
Can probably be made shorter, but it works with multi-line input (necessary since the source code is multiple lines) and even for inputs that contain the program as a substring. It seems many of the answers so far fail on one or both of these.
Compile command: `flex id.l && gcc -lfl lex.yy.c`
[Answer]
## D (133 chars)
```
enum c=q{import std.stdio;import std.algorithm;void main(){auto i=readln();writeln(equal("auto c=q{"~c~"};mixin(c);",i));}};mixin(c);
```
[Answer]
# JavaScript (V8), 35
```
function i(){alert(prompt()==i+[])}
```
call `i()` and it will prompt for input
[Answer]
# GolfScript - 26
```
":@;[34]@+2*=":@;[34]@+2*=
```
Inspired from <http://esolangs.org/wiki/GolfScript#Examples>
Another version:
```
"[34].@@;+2*="[34].@@;+2*=
```
Too bad that `\` is both swap and escape...
[Answer]
# Python 2, 47 bytes
```
_='_=%r;print _%%_==input()';print _%_==input()
```
A simple quine with the added check.
[Answer]
# [CJam](https://sourceforge.net/p/cjam), 12 bytes
```
{s"_~"+q=}_~
```
[Try it online!](https://tio.run/##S85KzP3/v7pYKb5OSbvQtja@DpUHAA "CJam – Try It Online")
### Explanation
This just uses the standard CJam quine framework.
```
{s"_~"+q=} e# Push this block (function literal).
_~ e# Copy and run it.
```
What the block does:
```
s e# Stringify the top element (this block itself).
"_~"+ e# Append "_~". Now the source code is on the stack.
q e# Read the input.
= e# Check if it equals the source code.
```
[Answer]
# Python, 187 bytes
```
import sys;code="import sys;code=!X!;print(sys.stdin.read()==code.replace(chr(33),chr(34)).replace(!X!,code,1))";print(sys.stdin.read()==code.replace(chr(33),chr(34)).replace("X",code,1))
```
Careful not to add newline at the end. Someone with better Python-fu might be able to shorten it.
[Answer]
## Tcl, 111 chars
```
set c {set c {$c};puts [expr {[read stdin] eq [subst -noc \$c]}]};puts [expr {[read stdin] eq [subst -noc $c]}]
```
[Answer]
## Perl, 52 char
```
$_='$/=$\;$_="\$_=\47$_\47;eval";print<>eq$_|0';eval
```
[Answer]
# [Husk](https://github.com/barbuz/Husk), 11 bytes
```
=hS+s"=hS+s
```
[Try it online!](https://tio.run/##yygtzv7/3zYjWLtYCUz@h/JiIFwA "Husk – Try It Online")
### Explanation
The explanation uses `¨` to delimit strings (to avoid unreadable escaping):
```
"=hS+s -- string literal: ¨=hS+s¨
S+ -- join itself with
s -- | itself "showed": ¨"=hS+s"¨
-- : ¨=hS+s"=hS+s"¨
h -- init: ¨=hS+s"=hS+s¨
= -- is the input equal?
```
By removing the function `=` you can [verify](https://tio.run/##yygtzv7/PyNYu1jJFkT@/w8A "Husk – Try It Online") that it will indeed only match the source itself.
[Answer]
# [Python 2](https://docs.python.org/2/), 40 bytes
```
s="print's=%r;exec s'%s==input()";exec s
```
[Try it online!](https://tio.run/##K6gsycjPM/r/v9hWqaAoM69EvdhWtcg6tSI1WaFYXbXY1jYzr6C0RENTCSr2/7@SkhKxioFKAQ "Python 2 – Try It Online")
[Answer]
# [><>](https://esolangs.org/wiki/Fish), 24 bytes
```
'1rd3*i={*}50l3-?.~i)*n;
```
[Try it online!](https://tio.run/##S8sszvj/X92wKMVYK9O2WqvW1CDHWNdery5TUyvPGrcMAA "><> – Try It Online")
Wrapping string literal followed by checking whether the input is identical to the stack, with a final check that there is no more input.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 10 bytes
```
“Ṿ;$⁼”Ṿ;$⁼
```
[Try it online!](https://tio.run/##y0rNyan8//9Rw5yHO/dZqzxq3POoYS6M@f9w@6OmNf//R6tjl1fX4VJQR4gjK0GTQtWCRymYg64ILBELAA "Jelly – Try It Online")
```
“Ṿ;$⁼”Ṿ;$⁼
“Ṿ;$⁼” String literal: 'Ṿ;$⁼'
$ Next two links act on the string literal
Ṿ Uneval: '“Ṿ;$⁼”'
; Append string: '“Ṿ;$⁼”Ṿ;$⁼' (source code)
⁼ Is the string above equal to the input?
```
[Answer]
# [Zsh](https://www.zsh.org/), 33 bytes
```
f () {
[ "`type -f f`" = $1 ]
}
```
[Try it online!](https://tio.run/##qyrO@P8/TUFDU6GaizNaQSmhpLIgVUE3TSEtQUnBVkHFUCGWq5YLqEJJRQMupanElZqcka@gYs/FpayQmJKiUFKUmJmTmZeuUFyQmJzKhaZcAbf6vNRyII2hgwtFR1Fqbn5ZKnZN1cjaVO1r4Rr/AwA "Zsh – Try It Online")
The extra spaces, tab, and newlines are required. `type -f f` does not print the original source, but the function formatted in a particular way, with indentation and a trailing newline.
[Answer]
# [R](https://www.r-project.org/), 54 bytes
```
f=function(s)s==paste0("f=function(s)s==", body(f)[3])
```
[Try it online!](https://tio.run/##K/r/P802rTQvuSQzP0@jWLPY1rYgsbgk1UBDCV1cSUchKT@lUiNNM9o4VvN/moY6eTrVNbmAehOTklPUNf8DAA "R – Try It Online")
`body` gets the body of the function (splitting it a bit, so that `body(f)[3]` is everything from `paste0` onwards). Interestingly, `body` reformats the code, adding spaces after commas, etc. This is thus a rare case of an R golf answer with a space after a comma.
This works because `body(f)` is an object of type `language`, and there exists an `as.character` method for this type. On the other hand, `f` and `args(f)` are of type `closure`, and cannot be converted to character type as far as I can tell. Please don't ask me what the language type is for…
[Answer]
# [R](https://www.r-project.org/) (version-dependent), 46 bytes
```
f=function(x)x==paste0('f=',capture.output(f))
```
`capture.output` - as the function name suggests - retrieves the text string that results from entering the function name `f` directly to [R](https://www.r-project.org/), which should output the body of the function. We manually prepend this with `f=` so that it exactly\* matches the program code, and check whether the function argument `x` is the same as this.
\*See below
There are a couple of caveats, though, that depend on the [R](https://www.r-project.org/) version used:
1. Early versions of [R](https://www.r-project.org/) (like my own version 3.2.1) return the originally-defined function body as-is when the function name is entered to [R](https://www.r-project.org/). However, later versions add additional formatting, like inserting spaces and newlines, which breaks this code: this unfortunately includes the installation (3.5.2) on 'Try it online'. Later still, much newer [R](https://www.r-project.org/) versions (I tested 4.0.3) return to the as-is output formatting and everything is Ok again... except...
2. The most recent versions of [R](https://www.r-project.org/) compile functions at the first run, and thereafter append a 'byte code' specific for the compiled function to the outputted function body. This means that `capture.output` returns two strings, beginning at the second time the function is run. Luckily, the function body is still the first one (the byte code is the second one), so the result of supplying the program code as input is `TRUE FALSE`, which evaluates to 'truthy' in [R](https://www.r-project.org/) and so counts as a 'true' output for this challenge.
Special thanks to [Robin Ryder](https://codegolf.stackexchange.com/users/86301/robin-ryder) for helping to uncover the version-dependence of [R](https://www.r-project.org/)'s function outputting.
[Answer]
# [Vyxal](https://github.com/Lyxal/Vyxal), 12 bytes
```
`:q$+=`:q$+=
```
[Try it Online!](http://lyxal.pythonanywhere.com?flags=&code=%60%3Aq%24%2B%3D%60%3Aq%24%2B%3D&inputs=%60%3Aq%24%2B%3D%60%3Aq%24%2B%3D&header=&footer=)
I finished making this, and then realized that it is almost identical to the Vyxal quine that @Lyxal wrote, but with the addition of `=` to check if the input is equal.
Explanation:
```
# Implicit input
`:q$+=` # Push the string ':q$+='
: # Duplicate the string
q # Quotify; put backticks around the topmost string
$ # Swap the top two values on the stack
+ # Concatenate the two strings
= # Check if the input is equal to the string
# Implicit output
```
[Answer]
## C - 186 176 characters
One liner:
```
*a="*a=%c%s%c,b[999],c[999];main(){sprintf(b,a,34,a,34);gets(c);putchar(strcmp(b,c)?'0':'1');}",b[999],c[999];main(){sprintf(b,a,34,a,34);gets(c);putchar(strcmp(b,c)?'0':'1');}
```
With whitespace (note that this breaks the program):
```
*a="*a=%c%s%c,b[999],c[999];main(){sprintf(b,a,34,a,34);gets(c);putchar(strcmp(b,c)?'0':'1');}",b[999],c[999];
main() {
sprintf(b,a,34,a,34);
gets(c);
putchar(strcmp(b,c)?'0':'1');
}
```
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 26 bytes
```
"34bLN26)s:f="34bLN26)s:f=
```
[Run and debug it](https://staxlang.xyz/#c=%2234bLN26%29s%3Af%3D%2234bLN26%29s%3Af%3D&i=%2234bLN26%29s%3Af%3D%2234bLN26%29s%3Af%3D%0A%2234bLN26%29s%3Af%3D%2234bLN26%29s%3Afb%0Aabc%0A34&m=2)
[Answer]
## JavaScript ES6, 14 bytes
Like the other javascript answer but includes it's entire source code and not just the function
```
a=q=>'a='+a==q
```
Example usage:
```
a("q=>'a='+a==q") // returns false
a("a=q=>'a='+a==q") // returns true
```
[Answer]
# q, 8 bytes
```
{x~.z.s}
```
Return boolean on input matching the self-referential [.z.s](https://code.kx.com/q/ref/dotz/#zs-self)
] |
[Question]
[
# Introduction
In order to prevent keyloggers from stealing a user's password, a certain bank account system has implemented the following security measure: only certain digits are prompted to be entered each time.
For example, say your target's password is `89097`, the system may prompt them to enter the 2nd, 4th and 5th digit:
`997`
Or it might prompt them to enter the 1st, 3rd and 5th digit:
`807`
All you know is that your target entered the digits in order, *but you don't know which position they belong to in the actual password*. All you know is there are two 9s, which must come before 7; and that 8 comes before 0, and 0 before 7. Therefore, there are six possible passwords:
```
80997
89097
89907
98097
98907
99807
```
The keylogger in your target's computer has been collecting password inputs for months now, so let's hack in!
# Challenge
Given a list of three-digit inputs, output all the possible passwords that are valid for all inputs. In order to reduce computational complexity and to keep the amount of possible results low, the password is guaranteed to be numerical and have a fixed size of 5. The digits in every input are in order: if it's 123, the target typed 1 first, then 2, then 3.
# Input/Output examples
```
|----------------------|--------------------------------------------|
| Input | Output |
|----------------------|--------------------------------------------|
| [320, 723, 730] | [37230, 72320, 73203, 73230] |
| [374, 842] | [37842, 38742, 83742] |
| [010, 103, 301] | [30103] |
| [123, 124, 125, 235] | [12345, 12354, 12435] |
| [239, 944] | [23944] |
| [111, 120] | [11201, 11120, 11210, 12011, 12110, 12101] |
| [456, 789] | [] |
| [756, 586] | [07586, 17586, 27586, 37586, 47586, 57586, 57856, 58756, 67586, 70586, 71586, 72586, 73586, 74586, 75086, 75186, 75286, 75386, 75486, 75586, 75686, 75786, 75806, 75816, 75826, 75836, 75846, 75856, 75860, 75861, 75862, 75863, 75864, 75865, 75866, 75867, 75868, 75869, 75876, 75886, 75896, 75986, 76586, 77586, 78586, 79586, 87586, 97586] |
| [123] | [00123, 01023, 01123, 01203, 01213, 01223, 01230, 01231, 01232, 01233, 01234, 01235, 01236, 01237, 01238, 01239, 01243, 01253, 01263, 01273, 01283, 01293, 01323, 01423, 01523, 01623, 01723, 01823, 01923, 02123, 03123, 04123, 05123, 06123, 07123, 08123, 09123, 10023, 10123, 10203, 10213, 10223, 10230, 10231, 10232, 10233, 10234, 10235, 10236, 10237, 10238, 10239, 10243, 10253, 10263, 10273, 10283, 10293, 10323, 10423, 10523, 10623, 10723, 10823, 10923, 11023, 11123, 11203, 11213, 11223, 11230, 11231, 11232, 11233, 11234, 11235, 11236, 11237, 11238, 11239, 11243, 11253, 11263, 11273, 11283, 11293, 11323, 11423, 11523, 11623, 11723, 11823, 11923, 12003, 12013, 12023, 12030, 12031, 12032, 12033, 12034, 12035, 12036, 12037, 12038, 12039, 12043, 12053, 12063, 12073, 12083, 12093, 12103, 12113, 12123, 12130, 12131, 12132, 12133, 12134, 12135, 12136, 12137, 12138, 12139, 12143, 12153, 12163, 12173, 12183, 12193, 12203, 12213, 12223, 12230, 12231, 12232, 12233, 12234, 12235, 12236, 12237, 12238, 12239, 12243, 12253, 12263, 12273, 12283, 12293, 12300, 12301, 12302, 12303, 12304, 12305, 12306, 12307, 12308, 12309, 12310, 12311, 12312, 12313, 12314, 12315, 12316, 12317, 12318, 12319, 12320, 12321, 12322, 12323, 12324, 12325, 12326, 12327, 12328, 12329, 12330, 12331, 12332, 12333, 12334, 12335, 12336, 12337, 12338, 12339, 12340, 12341, 12342, 12343, 12344, 12345, 12346, 12347, 12348, 12349, 12350, 12351, 12352, 12353, 12354, 12355, 12356, 12357, 12358, 12359, 12360, 12361, 12362, 12363, 12364, 12365, 12366, 12367, 12368, 12369, 12370, 12371, 12372, 12373, 12374, 12375, 12376, 12377, 12378, 12379, 12380, 12381, 12382, 12383, 12384, 12385, 12386, 12387, 12388, 12389, 12390, 12391, 12392, 12393, 12394, 12395, 12396, 12397, 12398, 12399, 12403, 12413, 12423, 12430, 12431, 12432, 12433, 12434, 12435, 12436, 12437, 12438, 12439, 12443, 12453, 12463, 12473, 12483, 12493, 12503, 12513, 12523, 12530, 12531, 12532, 12533, 12534, 12535, 12536, 12537, 12538, 12539, 12543, 12553, 12563, 12573, 12583, 12593, 12603, 12613, 12623, 12630, 12631, 12632, 12633, 12634, 12635, 12636, 12637, 12638, 12639, 12643, 12653, 12663, 12673, 12683, 12693, 12703, 12713, 12723, 12730, 12731, 12732, 12733, 12734, 12735, 12736, 12737, 12738, 12739, 12743, 12753, 12763, 12773, 12783, 12793, 12803, 12813, 12823, 12830, 12831, 12832, 12833, 12834, 12835, 12836, 12837, 12838, 12839, 12843, 12853, 12863, 12873, 12883, 12893, 12903, 12913, 12923, 12930, 12931, 12932, 12933, 12934, 12935, 12936, 12937, 12938, 12939, 12943, 12953, 12963, 12973, 12983, 12993, 13023, 13123, 13203, 13213, 13223, 13230, 13231, 13232, 13233, 13234, 13235, 13236, 13237, 13238, 13239, 13243, 13253, 13263, 13273, 13283, 13293, 13323, 13423, 13523, 13623, 13723, 13823, 13923, 14023, 14123, 14203, 14213, 14223, 14230, 14231, 14232, 14233, 14234, 14235, 14236, 14237, 14238, 14239, 14243, 14253, 14263, 14273, 14283, 14293, 14323, 14423, 14523, 14623, 14723, 14823, 14923, 15023, 15123, 15203, 15213, 15223, 15230, 15231, 15232, 15233, 15234, 15235, 15236, 15237, 15238, 15239, 15243, 15253, 15263, 15273, 15283, 15293, 15323, 15423, 15523, 15623, 15723, 15823, 15923, 16023, 16123, 16203, 16213, 16223, 16230, 16231, 16232, 16233, 16234, 16235, 16236, 16237, 16238, 16239, 16243, 16253, 16263, 16273, 16283, 16293, 16323, 16423, 16523, 16623, 16723, 16823, 16923, 17023, 17123, 17203, 17213, 17223, 17230, 17231, 17232, 17233, 17234, 17235, 17236, 17237, 17238, 17239, 17243, 17253, 17263, 17273, 17283, 17293, 17323, 17423, 17523, 17623, 17723, 17823, 17923, 18023, 18123, 18203, 18213, 18223, 18230, 18231, 18232, 18233, 18234, 18235, 18236, 18237, 18238, 18239, 18243, 18253, 18263, 18273, 18283, 18293, 18323, 18423, 18523, 18623, 18723, 18823, 18923, 19023, 19123, 19203, 19213, 19223, 19230, 19231, 19232, 19233, 19234, 19235, 19236, 19237, 19238, 19239, 19243, 19253, 19263, 19273, 19283, 19293, 19323, 19423, 19523, 19623, 19723, 19823, 19923, 20123, 21023, 21123, 21203, 21213, 21223, 21230, 21231, 21232, 21233, 21234, 21235, 21236, 21237, 21238, 21239, 21243, 21253, 21263, 21273, 21283, 21293, 21323, 21423, 21523, 21623, 21723, 21823, 21923, 22123, 23123, 24123, 25123, 26123, 27123, 28123, 29123, 30123, 31023, 31123, 31203, 31213, 31223, 31230, 31231, 31232, 31233, 31234, 31235, 31236, 31237, 31238, 31239, 31243, 31253, 31263, 31273, 31283, 31293, 31323, 31423, 31523, 31623, 31723, 31823, 31923, 32123, 33123, 34123, 35123, 36123, 37123, 38123, 39123, 40123, 41023, 41123, 41203, 41213, 41223, 41230, 41231, 41232, 41233, 41234, 41235, 41236, 41237, 41238, 41239, 41243, 41253, 41263, 41273, 41283, 41293, 41323, 41423, 41523, 41623, 41723, 41823, 41923, 42123, 43123, 44123, 45123, 46123, 47123, 48123, 49123, 50123, 51023, 51123, 51203, 51213, 51223, 51230, 51231, 51232, 51233, 51234, 51235, 51236, 51237, 51238, 51239, 51243, 51253, 51263, 51273, 51283, 51293, 51323, 51423, 51523, 51623, 51723, 51823, 51923, 52123, 53123, 54123, 55123, 56123, 57123, 58123, 59123, 60123, 61023, 61123, 61203, 61213, 61223, 61230, 61231, 61232, 61233, 61234, 61235, 61236, 61237, 61238, 61239, 61243, 61253, 61263, 61273, 61283, 61293, 61323, 61423, 61523, 61623, 61723, 61823, 61923, 62123, 63123, 64123, 65123, 66123, 67123, 68123, 69123, 70123, 71023, 71123, 71203, 71213, 71223, 71230, 71231, 71232, 71233, 71234, 71235, 71236, 71237, 71238, 71239, 71243, 71253, 71263, 71273, 71283, 71293, 71323, 71423, 71523, 71623, 71723, 71823, 71923, 72123, 73123, 74123, 75123, 76123, 77123, 78123, 79123, 80123, 81023, 81123, 81203, 81213, 81223, 81230, 81231, 81232, 81233, 81234, 81235, 81236, 81237, 81238, 81239, 81243, 81253, 81263, 81273, 81283, 81293, 81323, 81423, 81523, 81623, 81723, 81823, 81923, 82123, 83123, 84123, 85123, 86123, 87123, 88123, 89123, 90123, 91023, 91123, 91203, 91213, 91223, 91230, 91231, 91232, 91233, 91234, 91235, 91236, 91237, 91238, 91239, 91243, 91253, 91263, 91273, 91283, 91293, 91323, 91423, 91523, 91623, 91723, 91823, 91923, 92123, 93123, 94123, 95123, 96123, 97123, 98123, 99123] |
|----------------------|--------------------------------------------|
```
---
# Rules
* Input is guaranteed non-empty.
* Leading and trailing zeros matter: `01234` is different from `12340`, and `1234` doesn't crack either password. Think of how real passwords work!
* [Standard I/O rules](https://codegolf.meta.stackexchange.com/questions/2447/default-for-code-golf-input-output-methods) apply.
* No [standard loopholes](https://codegolf.meta.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default).
* This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so the shortest answer in bytes wins. Non-codegolfing languages are welcome!
[Answer]
# Python, 100 bytes
```
lambda e,d='%05d':[d%i for i in range(10**5)if all(re.search('.*'.join(x),d%i)for x in e)]
import re
```
[Try it online!](https://tio.run/##PcuxCoMwEADQvV9xi1wiQaLgIvgl1iFtLvWKJuF0sF@f1qXrg5c/x5JiV8J4L6vbHt4BGT9iZXuPw@QrhpAEGDiCuPgi1dq67jUHcOuqhJqdnDwXhU2NzTtxVKc2v6avdl6N9HzjLSc5QKj8OagJrbVoANvO4qwHyMLxgLN8AQ "Python 2 – Try It Online")
Works in Python 2 as well as Python 3.
(**97 bytes** in Python 3.8:)
```
lambda e:[p for i in range(10**5)if all(re.search('.*'.join(x),p:='%05d'%i)for x in e)]
import re
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~11~~ 9 bytes
```
žh5ãʒæIåP
```
[Try it online!](https://tio.run/##yy9OTMpM/f//6L4M08OLT006vMzz8NKA//@jzU3NdEwtzGIB "05AB1E – Try It Online")
**Explanation**
```
žh # push 0123456789
5ã # 5 times cartesian product
ʒ # filter, keep only values are true under:
æ # powerset of value
Iå # check if each of the input values are in this list
P # product
```
[Answer]
# JavaScript (ES6), 88 bytes
Prints the results with `alert()`.
```
a=>{for(k=n=1e5;n--;)a.every(x=>(s=([k]+n).slice(-5)).match([...x].join`.*`))&&alert(s)}
```
[Try it online!](https://tio.run/##bZLfboIwFMbvfYpeSbtB7V@BEHwRQmLD6qYyWIAYF@Ozs1OaMDVw0V97vu98p2k4mYvpq@74M0RN@2HHQz6afHc7tB0@503Orc6aKMqIofZiu198zXe4z3FxLt8bQvv6WFkcaULotxmqL1xQSq8lPbXHZk/f9oSs16a23YB7ch@nHcpR1TZ9W1tat5/ZarC9qxmU79DtUcJmisFBiAJCMnTABtZHAxzvqykAF4EUzDljISdIFpTIfwRtNqiQoLAQwSocYJUTJCvniFi53kSJufclAqQQySR2SMAu5l7Gp/GcTeMl46/jwSBnN/e35EJ5aAchdVB6N@hKhwiglYOSeu4VMnXuVKnlW4Ku1P8kzv0ItuzmoHAY4egguAPUXFFwf@KMz4FKb6cHTtLlwNkYe6NOtstGFoME6R7w34QodfunR3rpfA5g4AgRPKyDD0ihVI5/ "JavaScript (Node.js) – Try It Online")
### Commented
```
a => { // a[] = input array of 3-character strings
for(k = n = 1e5; n--;) // initialize k to 100000; for n = 99999 to 0:
a.every(x => // for each string x = 'XYZ' in a[]:
( s = // define s as the concatenation of
([k] + n) // '100000' and n; e.g. '100000' + 1337 -> '1000001337'
.slice(-5) // keep the last 5 digits; e.g. '01337'
).match( // test whether this string is matching
[...x].join`.*` // the pattern /X.*Y.*Z/
) //
) && // end of every(); if all tests were successful:
alert(s) // output s
} //
```
[Answer]
## Haskell, ~~81~~ ~~80~~ ~~78~~ 76 bytes
```
f x=[p|p<-mapM(:['1'..'9'])"00000",all(`elem`(concat.words<$>mapM(:" ")p))x]
```
The obvious brute force approach in Haskell: built a list of all possible passwords and keep those where all elements from the input list are in respective list of subsequences.
[Try it online!](https://tio.run/##RY5dCoMwEITfe4olFDRgJX9WLdob9AQSMLRKpVGDCvWhd7dNLLovAzPf7O5Tja9K62WpYc4L8zHZqVXm5l8Kj3ph6KWexIjYQYHS2i8rXbWlf@@7u5rCdz88xux4XSsIEDYYz3JpVdNBDtYG3wxNN0FYYygOAFAgzn7LAMWMO@EEyeCfxMJaiWCbRaiDKXEwJ3RL6NqnTKwSWWE82gDGU2ulQuwdSld4vymis3sjSZGUsHwB "Haskell – Try It Online")
Edit: -1 byte thanks to @xnor, ~~-2~~ -4 bytes thanks to @H.PWiz
[Answer]
# [Python 2](https://docs.python.org/2/), 96 bytes
```
l=input()
n=1e5
while n:
n-=1;s='%05d'%n;t={''}
for c in s:t|={x+c for x in t}
if l<t:print s
```
[Try it online!](https://tio.run/##PY3bCoMwEETf8xVBkLS0hWwuXpuvsUoDEkVTarF@u01W6MssZ2aYHT/@OTixv5@2bylU7dI2SZLsvbFufPnTmTgDrSZH7ipC3c1APRuWcv1gqau9WRnbCO2GiTbUOjpX/mvW5dKgtUTLh9x2tL/7apys83Te8ZL4amVScHZluZBRJQ9rwctVoEIJJA6xATw2JAf0APsgFKoOKqTGRMgyUKnU0QPAxrGrdBa/FCVSjqSL7L@4/QA "Python 2 – Try It Online")
Takes input as a set of strings.
---
# [Python 3](https://docs.python.org/3/), 98 bytes
```
f=lambda l,s='':any(l)or print(s)if s[4:]else[f([x[x[:1]==c:]for x in l],s+c)for c in'0123456789']
```
[Try it online!](https://tio.run/##LU5da4QwEHw2vyJvm7QW8nlqIL9E8mCtcoE0Jxfb3v16u7FlYZjdGWZ2e@7XW9bHsfo0fb5/TDS1xQO4KT9Z4rc73e4x76zwuNIyGheWVJZxZeMDx8ng/ezCir4HjZmm0JbXmdd9xh2EVNrYS9cPEI6fa0wLlY40yadYdrZ8T4nFvH3tjHNOmhUbSfNXCG/wYvkBWglooVO6ohZAQHcGeW8UciGrKkVVtZB4kadTKnOiRVTa4l3pAflgTPVIeao1Db@ryfggge7ktr/85/wC "Python 3 – Try It Online")
Recursively tries building every five-digit number string in `s`, tracking the subsequences in `l` still remaining to be hit. If all are empty by the end, prints the result.
[Answer]
# [Ruby](https://www.ruby-lang.org/), 54 bytes
```
->a{(?0*5..?9*5).select{|x|a.all?{|y|x=~/#{y*'.*'}/}}}
```
[Try it online!](https://tio.run/##RY3LCoMwEEX3@QpJobbBpnn6KFg/RFykoriwIGpBSdJft8QIXV3OzJm54@e1bm2@3Z5KXwqCJMZFhuQVT03f1LM2i1FY9X2hzWqW/Hs/6RWFGIX2bq3dSlBCzgiMApgwvgcnsIrcOBGOU8E8E7prlOwaJ9SPqT@jTPiQLhiXfst45jgT4rAp9dpRImS8l6aZ58SzTOP/9wpUuFF1p81shqAtZ/xWQ3B@1J0ap8oCsP0A "Ruby – Try It Online")
Takes input as an arrray of character arrays.
[Answer]
# Pyth, 11 bytes
```
f<QyT^s`MT5
```
Takes input as a set of strings.
[Try it here](http://pyth.herokuapp.com/?code=f%3CQyT%5Es%60MT5&input=%7B%22123%22%2C%20%22124%22%2C%20%22125%22%2C%20%22235%22%7D&debug=0)
### Explanation
```
f<QyT^s`MT5
s`MT Take the digits as a string.
^ 5 Take the Cartesian product with itself 5 times.
f T Filter the ones...
<Qy ... where the input is a subset of the power set.
```
[Answer]
# [R](https://www.r-project.org/), ~~80~~ 81 bytes
```
Reduce(intersect,lapply(gsub("",".*",scan(,"")),grep,substr(1e6:199999,2,6),v=T))
```
[Try it online!](https://tio.run/##FclZCoQwEEXRrUh9VclDSByghd6EuAGNhTSIhAxCrz7qhfN1QymTbtkp/86kIapLOBbvjz/vMa9MBGpqQnTLySASwR7U43kxBTY6jObzBotBcH1nkWJsWxnbPfrKtn25AQ "R – Try It Online")
Here’s a base R solution using regex. Writing this nested series of functions made me realise how much I’ve learned to appreciate the magrittr package!
Initially hadn’t read rules on input, so now reads from stdin (thanks @KirillL).
Thanks to @RobinRyder for saving a byte!
[Try it online!](https://tio.run/##FctRCkBAEIDhq2hKzWiSXfaBcgm5ALtDStp2UU6/@Ot7/ENKg7jLCm7HKSGKPXmfvN8fXOM1IwBDWQBHOx3IAES8BvEcffiGBSGvjAOuuvaP@O5HoqR0nSndfEyma5Ne "R – Try It Online")
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 11 bytes
```
9Żṗ5ŒPiⱮẠɗƇ
```
[Try it online!](https://tio.run/##y0rNyan8/9/y6O6HO6ebHp0UkPlo47qHuxacnH6s/f///9HRxjoK5joKJrE6CtEWQFpHwSg2FgA "Jelly – Try It Online")
[Answer]
# [Retina](https://github.com/m-ender/retina/wiki/The-Language), 53 bytes
```
~(`
.$*
m`^
G`
^
K`¶5+%`$$¶0"1"2"3"4"5"6"7"8"9¶
"
$$"
```
[Try it online!](https://tio.run/##K0otycxLNPz/v04jgUtPRYsrNyGOyz2BK47LO@HQNlNt1QQVlUPbDJQMlYyUjJVMlEyVzJTMlSyULA9t41LiUlFR@v/f2MiAy9zImMvc2AAA "Retina – Try It Online") Explanation:
```
~(`
```
After executing the script, take the result as a new script, and execute that, too.
```
.$*
```
Insert `.*` everywhere. This results in `.*3.*2.*0.*` although we only need `3.*2.*0`, not that it matters.
```
m`^
G`
```
Insert a `G`` at the start of each line. This turns it into a Retina Grep command.
```
^
K`¶5+%`$$¶0"1"2"3"4"5"6"7"8"9¶
"
$$"
```
Prefix two more Retina commands. The resulting script will therefore look something like this:
```
K`
```
Clear the buffer (which contains the original input).
```
5+
```
Repeat 5 times...
```
%`$
```
... append to each line...
```
0$"1$"2$"3$"4$"5$"6$"7$"8$"9
```
... the digit `0`, then a copy of the line, then the digit `1`, etc. until `9`. This means that after `n` loops you will have all `n`-digit numbers.
```
G`.*3.*2.*0.*
G`.*7.*2.*3.*
G`.*7.*3.*0.*
```
Filter out the possible numbers based on the input.
[Answer]
# [Perl 5](https://www.perl.org/) `-MList::Util=all -a`, 70 bytes
```
map{$t=sprintf'%05d',$_;(all{$t=~/$_/}map s//.*/gr,@F)&&say$t}0..99999
```
[Try it online!](https://tio.run/##K0gtyjH9/z83saBapcS2uKAoM68kTV3VwDRFXUcl3lojMScHJFGnrxKvXwtUpVCsr6@npZ9epOPgpqmmVpxYqVJSa6CnZwkC//8bGFsqWJqY/MsvKMnMzyv@r@trqmdgaACkfTKLS6ysQksyc2yBZv7XTQQA "Perl 5 – Try It Online")
### Old Approach: [Perl 5](https://www.perl.org/) `-a`, ~~80~~ 77 bytes
*Credit to @NahuelFouilleul for -2 bytes*
```
map{s||($t=0)x(5-y///c)|e;for$b(map s//.*/gr,@F){$t+=/$b/}$t-@F||say}0..99999
```
[Try it online!](https://tio.run/##K0gtyjH9/z83saC6uKZGQ6XE1kCzQsNUt1JfXz9ZsybVOi2/SCVJAyivUKyvr6eln16k4@CmWa1Som2rr5KkX6tSouvgVlNTnFhZa6CnZwkC//8bGVsqWJqY/MsvKMnMzyv@r@trqmdgaPBfNxEA "Perl 5 – Try It Online")
[Answer]
# [Ruby](https://www.ruby-lang.org/), ~~79~~ 77 bytes
```
->x{(0...1e5).map{|i|'%05d'%i}.select{|i|x.all?{|c|i=~/#{c.gsub('','.*')}/}}}
```
[Try it online!](https://tio.run/##Lc/LTsMwEAXQPV9hCUWToOL6/VgEPqR00aYpihSkilJRlJhfD/E1m2PP9Vgef96OP8u5fVueX@5TLTjnsrcN/zhcpnmYqRL2RNWQ@LUf@@4rZ3d@GMfXae7mof3dPk4df7/ejjXRhvgTNWmbUlou7LzbkVaCNoy80li0oP3@oRx563Jmg1sz1ras@q6FX0smoYIaGmj/DXY1rPeZQ@IFlFBBDQ20AkqooIYGlh4HPQwCSqighgZa6ASUUEENDbSwdHoYYMx65OWtmI157zBJ@VGAMRuQxGyz/AE "Ruby – Try It Online")
Input is an array of strings.
Here's a more readable version of the same code:
```
def f(codes)
(0...10**5).map{|i| '%05d'%i}.select do |i|
codes.all? do |code|
i =~ Regexp.new(code.chars.join('.*'))
end
end
end
```
[Answer]
# PHP 128 bytes
```
for(;$i++<1e5;$k>$argc||print$s)for($k=0;$n=$argv[++$k];)preg_match("/$n[0].*$n[1].*$n[2]/",$s=sprintf("%05d
",$i-1))||$k=$argc;
```
or
```
for(;$i<1e5;$i+=$k<$argc||print$s)for($k=0;$n=$argv[++$k];)if(!preg_match("/$n[0].*$n[1].*$n[2]/",$s=sprintf("%05d
",$i)))break;
```
take input from command line arguments. Run with `-nr` or [try them online](http://sandbox.onlinephpfunctions.com/code/b914abb3a3b0adb98b54e1727d1f03652957c66c).
[Answer]
# [J](http://jsoftware.com/), 52 bytes
```
(>,{;^:4~i.10)([#~]*/@e."2((#~3=+/"1)#:i.32)#"_ 1[)]
```
[Try it online!](https://tio.run/##jdhPqxzHFYbxvT5FIwXfexP7uqvqnPpzjYMh4FVW2QrFi8TGDgETQlYBfXWl69eGICcGC/S4qZkz531O99SU9bcPr58fvju@fDkejk@P83i5/n72fPzhT3/8@sPj7z/99xd/fon3PzyX8@nx7Zv37377@VffPr@uj49v3rcvf/f56/L05uWH51af3rz@5ihvn959eHr1z@9//Nff//rNt/84vnw@3r4c3/7l@x@Px3fHZy@fPH7@8v7p@O6rt0@fPD6@fn59fvH8TXn66vHhePjk06enV69ePbR6HqO2Y7Tz4fjvRz20a9Er@/UL@x3XysNVMeKYUX/27mvlaHNcnNcbrlf/759XD2c5j3J9WjvLx59wvdB@oernn1GuvKXG9TeP2vKjz7lei7xeablfj/3qL3xKbetYER9VX2t75delKOXq8PHUyrVwre7/XKzb9VrY7yuuy7Z@dd@h88jjN8fDw9N1p47vjofIfoy5flX3/00zruqc/aM057hWjoIVGwbmT5wqd323Mk4sWLFhYJ5YsGLDwPs9HQfOEwtWbBiY2E8sWLFhYOL9zoET1@awfvdam2tfd0luo4lrc1pZw6w8Sh@P7NwP1/Us4n29H/6LBe@V66uxWbDivR6Y2HHgxLUZ3pnYceDEtdl0CUzsOHDi2qwSNgxM7Dhw4vKlOU@8r7fXxYL3SjuxYMV7PTCx48CJazO8M7HjwIlrs@kSmNhx4MTtVcy/mH8x/2L@xfyL@RfzL@ZfzL@YfzH/Yv7F/Iv5F/Mv5l/Mv5h/Mf9i/sX8i/kX8y/mX8y/mH8x/2L@V7QTC94rzZe@2Rx2tov3emBix4ET12Z4Z2LHgRN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LziXnknPJueRcci45l5xLziXnknPJueRcci45l5xLziXnknPJuXbO6v8dqvN5Lff1Tludz6vzeXU@r87n1fm8Op9X5/PqfF6dz6vzeXU@r87n1fm8Op9X5/PqfF6dz6vzeXU@r87n1fm8Op9X5/PqfF6dz6sTcrWLVntUtQNU36/q6a2ejWryjV1j18p9ve0au8ausWvsGrvGrrFr7Bq7xq6xa@wau8ausWvsGrvGrrFr7Bq7xq6xa@wau8ausWvsGrvGrrFr7Bq7YBfsotzX2y7YBbtgF@yCXbALdsEu2AW7YBfsgl2wC3bBLtgFu2AX7IJdsAt2wS7YBbtgF@yCXbALdsEu2CW7ZJflvt52yS7ZJbtkl@ySXbJLdsku2SW7ZJfskl2yS3bJLtklu2SX7JJdskt2yS7ZJbtkl@ySXbJLdsmus@vsermvt11n19l1dp1dZ9fZdXadXWfX2XV2nV1n19l1dp1dZ9fZdXadXWfX2XV2nV1n19l1dp1dZ9fZdXadXWc32A12o9zX/smR3WA32A12g91gN9gNdoPdYDfYDXaD3WA32A12g91gN9gNdoPdYDfYDXaD3WA32A12g91gN9gNdoPdZDfZzXJfb7vJbrKb7Ca7yW6ym@wmu8luspvsJrvJbrKb7Ca7yW6ym@wmu8luspvsJrvJbrKb7Ca7yW6ym@wmu8lusVvsVrmvt91it9gtdovdYrfYLXaL3WK32C12i91it9gtdovdYrfYLXaL3WK32C12i91it9gtdovdYrfYLXaL3drtHz78Bw "J – Try It Online")
[Answer]
# Japt, 21 bytes
```
1e5o ù'0 f@e_XèZË+".*
```
[Try it!](https://ethproductions.github.io/japt/?v=1.4.6&code=MWU1byD5JzAgZkBlX1joWssrIi4q&input=WyI3NTYiLCAiNTg2Il0KLVE=)
```
1e5o ù'0 f@e_XèZË+".* # full program
1e5o # generate numbers under 100k
ù'0 # left pad with 0's
f@ # filter array
e_ # check every element of input array
Xè # X is the number to be tested.
# test it against a regex.
ZË+".* # the regex is an element from the input array
# with wildcards injected between each character
```
-2 bytes thanks to @Shaggy!
[Answer]
# [C# (Visual C# Interactive Compiler)](http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc), 116 bytes
```
x=>{for(int i=0;i<1e5;){var s=$"{i++:D5}";if(x.All(t=>t.Aggregate(-6,(a,c)=>s.IndexOf(c,a<0?a+6:a+1))>0))Print(s);}}
```
[Try it online!](https://tio.run/##fc09a8MwFIXhPb/CiA662DFXdj5KZKkYuhQK7dYhZBCqZC4EBSTRGox/u9t66pTpLA/ntWlrEy29zXQLXcqRwnC@aK@WUenJ3yKnkAtSKKkTbi9h@jKxSOqBTVSWp@f9zCR5Ptb99cqz0rnuhyG6wWTHt4eKm8qC0ql@CZ9ufPPcVqbDJ1MeTqYUABoB3n@bmSeQ87zIjefBfZ8vE2sbZFXBjk27TotsBrn5iJTdKwXH4b897v7Q4665g1CshwLXwxbFPYtrbvkB "C# (Visual C# Interactive Compiler) – Try It Online")
```
// x: input list of strings
x=>{
// generate all numbers under 100k
for(int i=0;i<1e5;){
// convert the current number to
// a 5 digit string padded with 0's
var s=$"{i++:D5}";
// test all inputs against the 5 digit
// string using an aggregate.
// each step of the aggregate gets
// the index of the next occurrence
// of the current character starting
// at the previously found character.
// a negative index indicates error.
if(x.All(t=>t
.Aggregate(-6,(a,c)=>
s.IndexOf(c,a<0?a+6:a+1)
)>0))
// output to STDOUT
Print(s);
}
}
```
**EDIT:** fixed a bug where the same character was counted more than once. For example, if `000` was logged, the function used to return all passwords containing a single `0`.
[Answer]
# [Clean](https://github.com/Ourous/curated-clean-linux), 113 bytes
```
import StdEnv,Data.List
$l=[s\\s<-iter 5(\p=[[c:e]\\e<-p,c<-['0'..'9']])[[]]|all(flip any(subsequences s)o(==))l]
```
[Try it online!](https://tio.run/##LY2xCsIwFAB3vyKDkBbaIi0iSrPpIHQQHF8yPGMqgZe0Nqkg@O1GQbe7W06TQZ/ccJ3JMIfWJ@vGYYrsHK8H/yj2GLHqbIiLJQkIUoa2tNFMbJ3JUQDonVFSmrYcC92WwFe8qviWK5UDKPVCoqwnOzL0zyzMl2Dus/HaBBbyIRMiz0mlc8TvULAlA@BNveKqYMA3dfOH5ltUeuue8BZSeezS/unRWf2TE2Hsh8l9AA "Clean – Try It Online")
[Answer]
## K 67 bytes
```
{n@&{&/y in\:x@/:&:'a@&3=+/'a:(5#2)\:'!32}[;x]'n:{"0"^-5$$x}'!_1e5}
```
K has a (very) primitive regex capability, so i tried a different approach.
{...} defines a lambda. Use example: `{...}("320";"723";"730")`
returns `("37230";"72320";"73203";"73230")`
* `n` is the list of integers in range 0..9999 as 0-padded strings
+ `_1e5` applies floor to float 1e5 (scientific notation) -> generates integer 100000
+ `!_1e5` generates integer-list 0..99999
+ `{..}'!_1e5` applies lambda to each value in 0..99999
+ `$x` transform argument x (implicit arg) to string
+ `-5$$x` right adjust string $x to a field of size 5 (ex. `-5$$12` generates `" 12"`
+ `"0"^string` replaces blanks with "0" char, so `"0"^-5$$12` generates `"00012"`
* `a` is the list of integers in the range 0..31 as 5-bit values
+ `!32` generate values 0..31
+ `(5#2)` repeat 2 five times (list 2 2 2 2 2)
+ `(5#2)\:'!32` generates 5-bit values (2-base five-times) for each value in range 0..31
* we filter the values of a with exactly 3 ones. That values are all the combinations (places) where pattern can be located: `11100 11010 11001 10110 10101 10011 01110 01101 01011 00111`. Ex. for "abc" pattern we have equivalence with regexs `abc?? ab?c? ab??c a?bc? a?b?c a??bc ?abc? ?ab?c ?a?bc ??abc?`
+ `+\'a` calculates sum of each binary representation (number of ones)
+ `3=+\'a` generates list of booleans (if each value in a has exactly 3 ones)
+ `a@&3=+\'a` reads as "a at where 3=+\'a is true"
* generate list of indexes for previous places: `(0 1 2; 0 1 3; 0 1 4; 0 2 3; 0 2 4; 0 3 4; 1 2 3; 1 2 4; 1 3 4; 2 3 4)` and the possible entered-values for a password (x)
+ `&:'` reads as "where each", applies to list of binary-coded integers, and calculates indexes of each 1-bit
+ `x@/:` applies password x to each elem of the list of indexes (generates all possible entered values)
* Determines if all patterns are located in the list of all possible entered values
+ `y` is the arg that represent list of patterns
+ `y in\:` reads as each value of y in the list at the right
+ `&/` is "and over". `&/y in\:..` returns true iff all patterns in y are locates at the list ..
* finally, return each string in n at every index that makes lambda true
+ `n@&{..}` reads as "n at where lambda {..} returns true"
[Answer]
# [Python 3.8 (pre-release)](https://docs.python.org/3.8/), ~~119~~ 102 bytes
```
lambda l:['%05d'%n for n in range(10**5)if all(map(lambda x:''in[x:=x[x[:1]==c:]for c in'%05d'%n],l))]
```
[Try it online!](https://tio.run/##NYzLjsIgFIbX9inYGMC44HCxLQlP0umC0XYkQSS1aufpO4fG2fz58t/y73y9J9XkaR3d1xr97fviSbQd3QtzoftExvtEEgmJTD79DAzE4WB4GImPkd18Zp/JYikNqVusW7qls9A7d7Z9GZ9x/P/WHyPn/fq@hjgQsNUuuhgeMxtePrKQ8nNmnPNql6eQZjYybK9USUGPtJaqqBK0oqrWyI2WyAJKCqKkSgA6sDVB6k0NqlQGfala5Fbr0gHY0vKmzak8Ny1yvbFpTp@fPw "Python 3.8 (pre-release) – Try It Online")
This was based off of [xnor's Python answer](https://codegolf.stackexchange.com/a/180285/75323) and @Bubbler helped me golf it by 17 bytes ;)
[Answer]
# [Python 3.8](https://docs.python.org/3.8/), ~~97~~ 96 bytes
```
lambda l:[s for n in range(10**5)if(s:='%05d'%n,t:={''},[t:=t|{x+c for x in t}for c in s])!=t>l]
```
[Try it online!](https://tio.run/##RY3LTsMwEEX3fIVZVLZLFh4/mgcyP1K6CG3SWjJulBgoCvn2YE8l2FzdMz4zHr7j5RpUNYxrb19X376/nVrim/1E@utIAnGBjG04dwzEdmu469nUWLoR5kQ3oYiNnSldin0q8We@PR1x7ZbX4pLrMdfpwB9tfPGH9evifEeg8cSS7rP1zIXhIzLOn8kwuhBZz/w/8HWmSgpa0FKqnErQ5SHNSp2o0hJJQDZAZEMJwBmgD1JjmpRSGXyRqk5Ua333ANC439Vml3@paqQSyVS7v4vLLw "Python 3.8 (pre-release) – Try It Online")
-1 byte thanks to @xnor.
# [Python 2](https://docs.python.org/2/), 96 bytes
```
lambda l,d='%05d':[d%n for n in range(10**5)if reduce(lambda t,c:t|{x+c for x in t},d%n,{''})>l]
```
[Try it online!](https://tio.run/##PY7LboMwFET3@Yq7iQwpCz/Do6I/0laIgp1YMgZZRk1F@XZqTJXNSGfuzNjTj7@Plm7KjQM0jZr97GTTgB6m0XmYnLY@uLbzerQnVX9sph2@@hZM1tfojEWPqvf@bEGNDixoC661N5kQfLmIVCtwsp87mfy3fNZV/nd5vHSx8NgLfs3CQLYgtKZv5nP7vmsjgVQG6nCeZp@kr8dHEpWY9AnptiBGMcpQTtmuDKP1FLycByo4jYTJniB4TzBMokdinlAeVQSlTMQLZWWgkvMjR0hMHLtcXPdXijJSHkkU1@fi@gc "Python 2 – Try It Online")
Alternative forms of [xnor's Python 2 answer](https://codegolf.stackexchange.com/a/180285/78410).
[Answer]
# [Bash](https://www.gnu.org/software/bash/) + GNU utilities, ~~54~~ ~~53~~ 51 bytes
```
sed 's/./&.*/g;s/ \|^/|grep /g;s//seq -w 0 99999/e'
```
[Try it online!](https://tio.run/##XY7dCoJAEIXv9ynORRQEtj@zulpP0FUvIEHlkILYzyrd@O62ShF5YAbmO4fDnE@@HF5lVTOefCpQVw0LoLiFBfClvGHf3Lt2i8XH@tBD1454Al3juUUU/dwpjB754LnAysuNXG7W8rrzEnl/lP31yXdMt/T8QPSCQjZK8mr41kyPNDyQUXCG4EgJchapNUJpBa0IpDS@EjqEtLFhYhiKIQxlyKzFn4TWOkTUjNo4gUuzGXWBxmkybzAk3g "Bash – Try It Online")
*Thanks to @user41805 for 1 byte off, and now an additional 2 bytes off.*
Input: Space-separated integers on stdin.
Output: On stdout, one possible password per line.
[Answer]
# C(GCC) ~~222~~ 214 bytes
-8 bytes ceilingcat
```
#define C(p)*f-p||++f;
#define I(x,y)x>9&&++y,x%=10;
a,b,c,d,e,g,**h,*f;z(int**H){for(a=0;g=a<10;){for(h=H;*h;g&=f>*h+++2){f=*h;C(a)C(b)C(c)C(d)C(e)}g&&printf("%d%d%d%d%d,",a,b,c,d,e);e++;I(e,d)I(d,c)I(c,b)I(b,a)}}
```
[Try it online!](https://tio.run/##XU3LTsMwELznK6yiRmt7IyVFCCLjXnJpvqHi4PiR5ECICoe0ab49LIYihHZnpJ2Z3bVZa@263jkf@sGzCkYuQjZer1IGldzkGiY882lfpqmUZ5y2ushVYrBBiw49tihEhyKoC/TDhxAHPoe3Exidq1abZwp/C50@KNGpNtVhLzop5Y50TUoFhlfQECzBETxf2jQdT3QvwGbrboUb/P3LlZdS1eDR8RocWmKLDXGDhi/LSsvs1fQDcDYnjH2NHVFxfHhhms0llviIWUG9qD/@7sd/wvy/L2Lg/XgfA/EYxhXMY@QC0ecqWdZP "C (gcc) – Try It Online")
Calling code
```
int main() {
int hint1[5] = {9,9,7,-1,-1};
int hint2[5] = {8,0,7,-1,-1};
int* hints[3] = {hint1,hint2,0};
z(hints);
}
```
Output
```
80997,89097,89907,98097,98907,99807,
```
[Answer]
The function takes an array of strings as input and prints each possible code on separate lines.
# [PHP](https://php.net/), 122 bytes
```
function a($n){for(;$x++<1e5;){foreach($n as$a)if(!preg_match("/$a[0].*$a[1].*$a[2]/",$x))continue 2;printf("%05d
",$x);}}
```
[Try it online!](https://tio.run/##TZDdioMwFITvfYqzIQVtZZvfqqSwD@KGJbi69aIxWAuF4rPbNKllbzKcbyYZctzJLccv58/uapupHyyYFNvs3g1jqvBttzvSVqowt6Y5eQ/MBZus79IPN7Z/P2czeYz22NREf2690ChM71GOb1nWDHbq7bUFptzY26lL0YbI3yS4ap6X9e06AagRZwTlgArGg3CCdB6NQjxJKdhKCA1RSkKUE7oaNF6mTESRXhiXL5fx6okrId55SmPwXSbkIdSX1UqKSGR5@N@iARLtVwJ@aXD3OHwR0LdFyk9hmSqZlwc "PHP – Try It Online")
[Answer]
# [sed](https://www.gnu.org/software/sed/) -E, ~~46~~ 44 bytes
```
s/./&.*/g;s/ |^/|grep /g;s//seq -w 0 99999/e
```
[Try it online!](https://tio.run/##K05N0U3PK/3/v1hfT19NT0s/3bpYX6EmTr8mvSi1QAHM1S9OLVTQLVcwULAEAf3U//@NjQwUzI2MFcyNDf7lF5Rk5ucV/9d1BQA "sed – Try It Online")
Input: Space-separated integers on stdin.
Output: On stdout, one possible password per line.
This is from my bash answer, which had 3 bytes off thanks to @user41805.
] |
[Question]
[
Inspired by [George Gibson's Print a Tabula Recta](https://codegolf.stackexchange.com/q/86986/48934).
You are to print/output this exact text:
```
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZ
CCCDEFGHIJKLMNOPQRSTUVWXYZ
DDDDEFGHIJKLMNOPQRSTUVWXYZ
EEEEEFGHIJKLMNOPQRSTUVWXYZ
FFFFFFGHIJKLMNOPQRSTUVWXYZ
GGGGGGGHIJKLMNOPQRSTUVWXYZ
HHHHHHHHIJKLMNOPQRSTUVWXYZ
IIIIIIIIIJKLMNOPQRSTUVWXYZ
JJJJJJJJJJKLMNOPQRSTUVWXYZ
KKKKKKKKKKKLMNOPQRSTUVWXYZ
LLLLLLLLLLLLMNOPQRSTUVWXYZ
MMMMMMMMMMMMMNOPQRSTUVWXYZ
NNNNNNNNNNNNNNOPQRSTUVWXYZ
OOOOOOOOOOOOOOOPQRSTUVWXYZ
PPPPPPPPPPPPPPPPQRSTUVWXYZ
QQQQQQQQQQQQQQQQQRSTUVWXYZ
RRRRRRRRRRRRRRRRRRSTUVWXYZ
SSSSSSSSSSSSSSSSSSSTUVWXYZ
TTTTTTTTTTTTTTTTTTTTUVWXYZ
UUUUUUUUUUUUUUUUUUUUUVWXYZ
VVVVVVVVVVVVVVVVVVVVVVWXYZ
WWWWWWWWWWWWWWWWWWWWWWWXYZ
XXXXXXXXXXXXXXXXXXXXXXXXYZ
YYYYYYYYYYYYYYYYYYYYYYYYYZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZ
```
(Yes, I typed that by hand)
You are allowed to use all lowercase instead of all uppercase.
However, your choice of case must be consistent throughout the whole text.
### Rules/Requirements
* Each submission should be either a full program or function. If it is a function, it must be runnable by only needing to add the function call to the bottom of the program. Anything else (e.g. headers in C), must be included.
* If it is possible, provide a link to a site where your program can be tested.
* Your program must not write anything to `STDERR`.
* [Standard Loopholes](http://meta.codegolf.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default) are forbidden.
* Your program can output in any case, but it must be printed (not an array or similar).
### Scoring
Programs are scored according to bytes, in UTF-8 by default or a different character set of your choice.
Eventually, the answer with the least bytes will win.
## Submissions
To make sure that your answer shows up, please start your answer with a headline, using the following Markdown template:
```
# Language Name, N bytes
```
where `N` is the size of your submission. If you improve your score, you *can* keep old scores in the headline, by striking them through. For instance:
```
# Ruby, <s>104</s> <s>101</s> 96 bytes
```
If there you want to include multiple numbers in your header (e.g. because your score is the sum of two files or you want to list interpreter flag penalties separately), make sure that the actual score is the *last* number in the header:
```
# Perl, 43 + 2 (-p flag) = 45 bytes
```
You can also make the language name a link which will then show up in the leaderboard snippet:
```
# [><>](http://esolangs.org/wiki/Fish), 121 bytes
```
## Leaderboard
Here is a Stack Snippet to generate both a regular leaderboard and an overview of winners by language.
```
/* Configuration */
var QUESTION_ID = 87064; // Obtain this from the url
// It will be like https://XYZ.stackexchange.com/questions/QUESTION_ID/... on any question page
var ANSWER_FILTER = "!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe";
var COMMENT_FILTER = "!)Q2B_A2kjfAiU78X(md6BoYk";
var OVERRIDE_USER = 48934; // This should be the user ID of the challenge author.
/* App */
var answers = [], answers_hash, answer_ids, answer_page = 1, more_answers = true, comment_page;
function answersUrl(index) {
return "https://api.stackexchange.com/2.2/questions/" + QUESTION_ID + "/answers?page=" + index + "&pagesize=100&order=desc&sort=creation&site=codegolf&filter=" + ANSWER_FILTER;
}
function commentUrl(index, answers) {
return "https://api.stackexchange.com/2.2/answers/" + answers.join(';') + "/comments?page=" + index + "&pagesize=100&order=desc&sort=creation&site=codegolf&filter=" + COMMENT_FILTER;
}
function getAnswers() {
jQuery.ajax({
url: answersUrl(answer_page++),
method: "get",
dataType: "jsonp",
crossDomain: true,
success: function (data) {
answers.push.apply(answers, data.items);
answers_hash = [];
answer_ids = [];
data.items.forEach(function(a) {
a.comments = [];
var id = +a.share_link.match(/\d+/);
answer_ids.push(id);
answers_hash[id] = a;
});
if (!data.has_more) more_answers = false;
comment_page = 1;
getComments();
}
});
}
function getComments() {
jQuery.ajax({
url: commentUrl(comment_page++, answer_ids),
method: "get",
dataType: "jsonp",
crossDomain: true,
success: function (data) {
data.items.forEach(function(c) {
if (c.owner.user_id === OVERRIDE_USER)
answers_hash[c.post_id].comments.push(c);
});
if (data.has_more) getComments();
else if (more_answers) getAnswers();
else process();
}
});
}
getAnswers();
var SCORE_REG = /<h\d>\s*([^\n,]*[^\s,]),.*?(\d+)(?=[^\n\d<>]*(?:<(?:s>[^\n<>]*<\/s>|[^\n<>]+>)[^\n\d<>]*)*<\/h\d>)/;
var OVERRIDE_REG = /^Override\s*header:\s*/i;
function getAuthorName(a) {
return a.owner.display_name;
}
function process() {
var valid = [];
answers.forEach(function(a) {
var body = a.body;
a.comments.forEach(function(c) {
if(OVERRIDE_REG.test(c.body))
body = '<h1>' + c.body.replace(OVERRIDE_REG, '') + '</h1>';
});
var match = body.match(SCORE_REG);
if (match)
valid.push({
user: getAuthorName(a),
size: +match[2],
language: match[1],
link: a.share_link,
});
});
valid.sort(function (a, b) {
var aB = a.size,
bB = b.size;
return aB - bB
});
var languages = {};
var place = 1;
var lastSize = null;
var lastPlace = 1;
valid.forEach(function (a) {
if (a.size != lastSize)
lastPlace = place;
lastSize = a.size;
++place;
var answer = jQuery("#answer-template").html();
answer = answer.replace("{{PLACE}}", lastPlace + ".")
.replace("{{NAME}}", a.user)
.replace("{{LANGUAGE}}", a.language)
.replace("{{SIZE}}", a.size)
.replace("{{LINK}}", a.link);
answer = jQuery(answer);
jQuery("#answers").append(answer);
var lang = a.language;
if (/<a/.test(lang)) lang = jQuery(lang).text();
languages[lang] = languages[lang] || {lang: a.language, user: a.user, size: a.size, link: a.link};
});
var langs = [];
for (var lang in languages)
if (languages.hasOwnProperty(lang))
langs.push(languages[lang]);
langs.sort(function (a, b) {
if (a.lang > b.lang) return 1;
if (a.lang < b.lang) return -1;
return 0;
});
for (var i = 0; i < langs.length; ++i)
{
var language = jQuery("#language-template").html();
var lang = langs[i];
language = language.replace("{{LANGUAGE}}", lang.lang)
.replace("{{NAME}}", lang.user)
.replace("{{SIZE}}", lang.size)
.replace("{{LINK}}", lang.link);
language = jQuery(language);
jQuery("#languages").append(language);
}
}
```
```
body { text-align: left !important}
#answer-list {
padding: 10px;
width: 290px;
float: left;
}
#language-list {
padding: 10px;
width: 290px;
float: left;
}
table thead {
font-weight: bold;
}
table td {
padding: 5px;
}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b">
<div id="answer-list">
<h2>Leaderboard</h2>
<table class="answer-list">
<thead>
<tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr>
</thead>
<tbody id="answers">
</tbody>
</table>
</div>
<div id="language-list">
<h2>Winners by Language</h2>
<table class="language-list">
<thead>
<tr><td>Language</td><td>User</td><td>Score</td></tr>
</thead>
<tbody id="languages">
</tbody>
</table>
</div>
<table style="display: none">
<tbody id="answer-template">
<tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr>
</tbody>
</table>
<table style="display: none">
<tbody id="language-template">
<tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr>
</tbody>
</table>
```
[Answer]
# Excel, 19,604 bytes
```
=CHAR(64+MAX(COLUMN(),ROW()))
```
Paste this formula in `A1`, then drag all over `A1:Z26`.
Byte count:
1. The formula is 27 bytes.
2. You need to copy it 26^2 times. 27\*26\*26=19604.
3. I and others thought the score should be lower because you don't really need to type the formula again and again. I now think it's irrelevant - we count the size of the program, not the work spent writing it.
4. For comparison - see [this 28,187 chars JS answer](https://codegolf.stackexchange.com/a/22547/3544) - obviously, someone generated it rather than typing all this, but it doesn't change its size.
[Answer]
# Vim, 43 bytes
```
:h<_↵jjYZZPqqlmaYp`ajyl:norm v0r♥"↵`ajq25@q
```
Here `↵` represents Return (`0x0a`) and `♥` represents Ctrl-R (`0x12`).
Not quite as short as my Tabula Recta answer, but…
[![enter image description here](https://i.stack.imgur.com/Awe6f.gif)](https://i.stack.imgur.com/Awe6f.gif)
[Answer]
# Jelly, 6 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code%20page)
```
ØA»'j⁷
```
[Try it here.](http://jelly.tryitonline.net/#code=w5hBwrsnauKBtw&input=) If only I hadn’t been lazy yesterday and implemented that one-byte alternative to `j⁷` (join by newlines)…
```
√òA The uppercase alphabet.
»' Table of max(x, y).
j⁷ Join by newlines.
```
[Answer]
# [Dyalog APL](http://goo.gl/9KrKoM), 11 [bytes](https://codegolf.meta.stackexchange.com/a/9429/43319)
```
⎕A[∘.⌈⍨⍳26]
```
`A[`...`]` pick elements from the uppercase alphabet according to
    `∘.⌈⍨` the maximum table of
    `⍳26` the first 26 integers
[TryAPL online!](http://tryapl.org/?a=%u2395A%5B%u2218.%u2308%u2368%u237326%5D&run)
[Answer]
# brainfuck, ~~103~~ ~~96~~ ~~95~~ ~~91~~ 87 bytes
```
+++++[>+++++>++<<-]>+[[<<<+>>>-]----[<+>----]<+<<[>+>+>+<<<-]>-]>>[[<.>-]>[.>>]<<[<]>>]
```
This uses Esolangs' brainfuck constant for [64](https://esolangs.org/wiki/Brainfuck_constants#64). [Try it online!](http://brainfuck.tryitonline.net/#code=KysrKytbPisrKysrPisrPDwtXT4rW1s8PDwrPj4-LV0tLS0tWzwrPi0tLS1dPCs8PFs-Kz4rPis8PDwtXT4tXT4-W1s8Lj4tXT5bLj4-XTw8WzxdPj5d&input=)
[Answer]
# [///](http://esolangs.org/wiki////), ~~141~~ ~~94~~ ~~92~~ 82 bytes
```
/:/\\\\A//#/:b:c:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z://:/\/a#
\/a\///A/#
```
Try it online: [Demonstration](https://tio.run/##FcunAYAwAAVRzxoZ4Ptz2QNDCYReQl8@wInnLvRZ8C7EKJR@WcmInIISR0WNp6Glo2dgZGJmYSWwsXNwcnHzoP9XZpKPVJKVifEF)
Quite a fun language.
### Explanation:
Shortend code to only print a 4x4 square:
```
/:/\\\\A//#/:b:c:d://:/\/a#
\/a\///A/#
```
The first replacement `/:/\\\\A/` replaces `:` with `\\A`. This gives:
```
/#/\\Ab\\Ac\\Ad\\A//\\A/\/a#
\/a\///A/#
```
Then `/#/\\Ab\\Ac\\Ad\\A//\\A/` replaces `#` with `\Ab\Ac\Ad\A`:
```
/\\A/\/a\Ab\Ac\Ad\A
\/a\///A/\Ab\Ac\Ad\A
```
Now `/\\A/\/a\Ab\Ac\Ad\A<newline>\/a\//` replaces each `\A` in the subsequent code by `/aAbAcAdA<newline>/a/`, so this results in:
```
/A//aAbAcAdA
/a/b/aAbAcAdA
/a/c/aAbAcAdA
/a/d/aAbAcAdA
/a/
```
Now the first part `/A//` removes all `A`s.
```
abcd
/a/b/abcd
/a/c/abcd
/a/d/abcd
/a/
```
The first five characters `abcd<newline>` get printed. The next command `/a/b/` replaces `a` by `b`, resulting in:
```
bbcd
/b/c/bbcd
/b/d/bbcd
/b/
```
Again the first five characters `bbcd<newline>` get printed. The next command `/b/c/` replaces `b` by `c`:
```
cccd
/c/d/cccd
/c/
```
Again the first five characters `cccd<newline>` get printed. The next command `/c/d/` replaces `c` by `d`:
```
dddd
/d/
```
The first five characters `dddd<newline>` get printed. And the next command `/d/` is incomplete and therefore does nothing.
[Answer]
# [Wolfram Language (Mathematica)](https://www.wolfram.com/wolframscript/), ~~69~~ ~~65~~ ~~57~~ 44 bytes
*Saved 8 bytes thanks to [Martin Ender](https://codegolf.stackexchange.com/users/8478).
Saved 13 bytes thanks to [att](https://codegolf.stackexchange.com/users/81203).*
```
Print@@@Array[Alphabet[][[Max@##]]&,{26,26}]
```
[Try it online!](https://tio.run/##y00syUjNTSzJTE78/z@gKDOvxMHBwbGoKLEy2jGnICMxKbUkOjY62jexwkFZOTZWTafayEzHyKw29v9/AA "Wolfram Language (Mathematica) – Try It Online") Full program which prints to standard output.
[Answer]
## [Retina](https://github.com/m-ender/retina), 41 bytes
Byte count assumes ISO 8859-1 encoding. The leading linefeed is significant.
```
26$*Z
{`^[^A].+
$&¶$&
}T0-2`L`_L`^(.)\1+
```
### Explanation
```
26$*Z
```
Set the string to 26 copies of `Z`. Then the `{...}` instruct Retina to perform the remaining two instructions in a loop until the string stops changing.
```
{`^[^A].+
$&¶$&
```
Duplicate the first line if it doesn't start with an `A`.
```
}T0-2`L`_L`^(.)\1+
```
This is a transliteration stage. It is only applied if the string starts with at least two copies of the same character. If so, all but the last of those characters are decremented. The decrementing happens by mapping `L` (upper case alphabet) to `_L` (blank followed by upper case alphabet). The "all but the last" is indicated by the limit `-2` which tells Retina only to transliterate all characters up to the second-to-last in the match.
[Try it online!](http://retina.tryitonline.net/#code=CjI2JCpaCntgXlteQV0uKwokJsK2JCYKfVQwLTJgTGBfTGBeKC4pXDEr&input=)
[Answer]
## [///](http://esolangs.org/wiki////), 348 bytes
```
/|/\/\///v/NNN|u/MMM|t/LLL|s/WXYZ|r/OOO|q/KLMa|p/RRRR|o/QQQQ|n/PPPP|m/SSS|l/EFGc|k/RSTb|j/UUUU|i/TTTT|h/WWW|g/VVV|f/XXXX|e/ZZZZZ|d/YYYYY|c/HIJq|b/UVs
|a/NOPQk/ABCDlBBCDlCCCDlDDDDlEEEElFFFFFFGcGGGGGGGcHHHHHHHcIIIIIIIIIJqJJJJJJJJJJqKKKKKKKKKKqttttMauuuuMavvvvNarrrrrPQknnnnQkooooQkppppRkmmmmmmSTbiiiiibjjjjjbgggggggVs
hhhhhhhWs
ffffffYZ
dddddZ
eeeeeZ
```
[Try it online!](http://slashes.tryitonline.net/#code=L3wvXC9cLy8vdi9OTk58dS9NTU18dC9MTEx8cy9XWFlafHIvT09PfHEvS0xNYXxwL1JSUlJ8by9RUVFRfG4vUFBQUHxtL1NTU3xsL0VGR2N8ay9SU1RifGovVVVVVXxpL1RUVFR8aC9XV1d8Zy9WVlZ8Zi9YWFhYfGUvWlpaWlp8ZC9ZWVlZWXxjL0hJSnF8Yi9VVnMKfGEvTk9QUWsvQUJDRGxCQkNEbENDQ0RsRERERGxFRUVFbEZGRkZGRkdjR0dHR0dHR2NISEhISEhIY0lJSUlJSUlJSUpxSkpKSkpKSkpKSnFLS0tLS0tLS0tLcXR0dHRNYXV1dXVNYXZ2dnZOYXJycnJyUFFrbm5ublFrb29vb1FrcHBwcFJrbW1tbW1tU1RiaWlpaWliampqampiZ2dnZ2dnZ1ZzCmhoaGhoaGhXcwpmZmZmZmZZWgpkZGRkZFoKZWVlZWVa&input=)
I've used the same technique to build this [as for my /// answer to the challenge this was based on](https://codegolf.stackexchange.com/a/87056/8478). However, I had to fix [the CJam script](http://cjam.tryitonline.net/#code=MjYsMj5xOlhmZXc6fl8me1tfXywoWEAvLCgoKjUtXF19JSRXJVNmKk4q&input=QUJDREVGR0hJSktMTU5PUFFSU1RVVldYWVoKQkJDREVGR0hJSktMTU5PUFFSU1RVVldYWVoKQ0NDREVGR0hJSktMTU5PUFFSU1RVVldYWVoKREREREVGR0hJSktMTU5PUFFSU1RVVldYWVoKRUVFRUVGR0hJSktMTU5PUFFSU1RVVldYWVoKRkZGRkZGR0hJSktMTU5PUFFSU1RVVldYWVoKR0dHR0dHR0hJSktMTU5PUFFSU1RVVldYWVoKSEhISEhISEhJSktMTU5PUFFSU1RVVldYWVoKSUlJSUlJSUlJSktMTU5PUFFSU1RVVldYWVoKSkpKSkpKSkpKSktMTU5PUFFSU1RVVldYWVoKS0tLS0tLS0tLS0tMTU5PUFFSU1RVVldYWVoKTExMTExMTExMTExMTU5PUFFSU1RVVldYWVoKTU1NTU1NTU1NTU1NTU5PUFFSU1RVVldYWVoKTk5OTk5OTk5OTk5OTk5PUFFSU1RVVldYWVoKT09PT09PT09PT09PT09PUFFSU1RVVldYWVoKUFBQUFBQUFBQUFBQUFBQUFFSU1RVVldYWVoKUVFRUVFRUVFRUVFRUVFRUVFSU1RVVldYWVoKUlJSUlJSUlJSUlJSUlJSUlJSU1RVVldYWVoKU1NTU1NTU1NTU1NTU1NTU1NTU1RVVldYWVoKVFRUVFRUVFRUVFRUVFRUVFRUVFRVVldYWVoKVVVVVVVVVVVVVVVVVVVVVVVVVVVVVldYWVoKVlZWVlZWVlZWVlZWVlZWVlZWVlZWVldYWVoKV1dXV1dXV1dXV1dXV1dXV1dXV1dXV1dYWVoKWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWVoKWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVoKWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlpaWlo) because it didn't correctly handle substrings that can overlap themselves.
[Answer]
# Haskell, 35 bytes
```
a=['A'..'Z']
unlines$(<$>a).max<$>a
```
[Answer]
# Python 2, 59 bytes
```
n=0;exec'print bytearray([n+65]*n+range(n+65,91));n+=1;'*26
```
Test it on [Ideone](http://ideone.com/Trw1SP).
[Answer]
# R, 58 bytes
```
l=LETTERS;for(i in 1:26){l[2:i-1]=l[i];cat(l,"\n",sep="")}
```
Thanks to operator precedence, `2:i-1` is equivalent to `1:(i-1)`. Uses the built-in constant `LETTERS` that contains the alphabet in upper case. Everything else is rather self-explanatory.
Usage:
```
> l=LETTERS;for(i in 1:26){l[2:i-1]=l[i];cat(l,"\n",sep="")}
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZ
CCCDEFGHIJKLMNOPQRSTUVWXYZ
DDDDEFGHIJKLMNOPQRSTUVWXYZ
EEEEEFGHIJKLMNOPQRSTUVWXYZ
FFFFFFGHIJKLMNOPQRSTUVWXYZ
GGGGGGGHIJKLMNOPQRSTUVWXYZ
HHHHHHHHIJKLMNOPQRSTUVWXYZ
IIIIIIIIIJKLMNOPQRSTUVWXYZ
JJJJJJJJJJKLMNOPQRSTUVWXYZ
KKKKKKKKKKKLMNOPQRSTUVWXYZ
LLLLLLLLLLLLMNOPQRSTUVWXYZ
MMMMMMMMMMMMMNOPQRSTUVWXYZ
NNNNNNNNNNNNNNOPQRSTUVWXYZ
OOOOOOOOOOOOOOOPQRSTUVWXYZ
PPPPPPPPPPPPPPPPQRSTUVWXYZ
QQQQQQQQQQQQQQQQQRSTUVWXYZ
RRRRRRRRRRRRRRRRRRSTUVWXYZ
SSSSSSSSSSSSSSSSSSSTUVWXYZ
TTTTTTTTTTTTTTTTTTTTUVWXYZ
UUUUUUUUUUUUUUUUUUUUUVWXYZ
VVVVVVVVVVVVVVVVVVVVVVWXYZ
WWWWWWWWWWWWWWWWWWWWWWWXYZ
XXXXXXXXXXXXXXXXXXXXXXXXYZ
YYYYYYYYYYYYYYYYYYYYYYYYYZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZ
```
[Answer]
# [Sesos](https://github.com/DennisMitchell/sesos), 25 bytes
```
0000000: 2829c0 756fc6 aecae2 aecd9c 39e09e 099c63 7d8e3d ().uo.......9....c}.=
0000015: 65a7c0 39 e..9
```
[Try it online!](http://sesos.tryitonline.net/#code=YWRkIDI2CmptcAogICAgam1wCiAgICAgICAgcndkIDEsIGFkZCAxLCByd2QgMSwgYWRkIDEsIGZ3ZCAyLCBzdWIgMQogICAgam56CiAgICByd2QgMiwgYWRkIDY0CiAgICBqbXAKICAgICAgICBmd2QgMiwgYWRkIDEsIHJ3ZCAyLCBzdWIgMQogICAgam56CiAgICBmd2QgMSwgc3ViIDEKam56CmZ3ZCAxCmptcAogICAgam1wCiAgICAgICAgcndkIDEsIGFkZCAxLCBmd2QgMSwgc3ViIDEKICAgIGpuegogICAgcndkIDEKICAgIGptcAogICAgICAgIHJ3ZCAxCiAgICBqbnoKICAgIGZ3ZCAxCiAgICBqbXAKICAgICAgICBwdXQsIGFkZCAxLCBmd2QgMQogICAgam56CiAgICBmd2QgMQogICAgam1wCiAgICAgICAgcHV0LCBmd2QgMQogICAgam56CiAgICBhZGQgMTAsIHB1dCwgZ2V0LCByd2QgMQogICAgam1wCiAgICAgICAgcndkIDEKICAgIGpuegogICAgZndkIDEKOyBqbnogKGltcGxpY2l0KQ&input=) Check *Debug* to see the generated SBIN code.
### Sesos assembly
The binary file above has been generated by assembling the following SASM code.
```
add 26
jmp
jmp
rwd 1, add 1, rwd 1, add 1, fwd 2, sub 1
jnz
rwd 2, add 64
jmp
fwd 2, add 1, rwd 2, sub 1
jnz
fwd 1, sub 1
jnz
fwd 1
jmp
jmp
rwd 1, add 1, fwd 1, sub 1
jnz
nop
rwd 1
jnz
fwd 1
jmp
put, add 1, fwd 1
jnz
fwd 1
jmp
put, fwd 1
jnz
add 10, put, get
nop
rwd 1
jnz
fwd 1
; jnz (implicit)
```
### How it works
We start by initializing the tape to `ABCDEFGHIJKLMNOPQRSTUVWXYZ`. This is as follows.
Write **26** to a cell, leaving the tape in the following state.
```
v
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26 0
```
As long as the cell under the data head is non-zero, we do the following.
Copy the number to the two cells to the left and add **64** to the leftmost copy.
```
v
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 90 26 0 0
```
Move the leftmost copy to the original location, then subtract **1** from the rightmost copy.
```
v
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 25 90 0
```
The process stops after **26** iterations, since the rightmost copy is **0** by then. We move a cell to the right, so the final state of the tape after the initialization is the following.
```
v
0 0 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
Now we're ready to generate the output, by repeating the following process until the cell under the data head is zero.
First, we move the content of the cell under the data head one unit to the left, then move left until the last cell with a non-zero content.
```
v
0 65 0 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
Now, we print all cells, starting with the one under the data head and moving right until we find a **0** cell, incrementing each printed cell after printing it. After printing `A`, the tape looks as follows.
```
v
0 66 0 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
Now we move right, again printing all cells until a **0** cell in encountered. After printing `BCDEFGHIJKLMNOPQRSTUVWXYZ`, the tape looks as follows.
```
v
0 66 0 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
Now, we write **10** to the current cell, print the corresponding character (linefeed) and zero the cell with a call to `get` on empty input, leaving the tape unchanged.
Finally, we move to the last non-zero to the left, preparing the tape for the next iteration.
```
v
0 66 0 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
The next iteration is similar. We first move **66** one cell to the left, print both **66** cells (`BB`) and increment them to **67**, then print the remaining non-zero cells to the right (`CDEFGHIJKLMNOPQRSTUVWXYZ`), and finally place the data head on **67**, leaving the tape as follows.
```
v
0 66 66 0 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 0
```
After **24** more iterations and after printing `ZZZZZZZZZZZZZZZZZZZZZZZZZZ` and a linefeed, the tapes is left in the following state.
```
v
0 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 91 0 0
```
Moving the data head to the left to the next non-zero cell will leave it in its current position, so the cell under it is **0** and the loop terminates.
[Answer]
## C#, 147 bytes
```
void e(){for(int i=0,j=97;i<26;i++,j++)Console.WriteLine(new string((char)j,i)+new string(Enumerable.Range(j,26-i).Select(n=>(char)n).ToArray()));}
```
*sometimes i wonder why im even trying*
*edit:* fixed it
[Try it online](http://rextester.com/EBCH52681)
[Answer]
# J, 13 bytes
```
u:65+>./~i.26
```
[Online interpreter](https://tio.run/##y/r/PzU5I1@h1MrMVNtOT78uU8/I7P9/AA).
### Explanation
```
u:65+>./~i.26
i.26 generate [0 1 ... 25]
/~ build a table...
>. ...of maximum
65+ add 65 to each element
u: convert to unicode
```
[Answer]
# Matlab / Octave, ~~43~~ 39 bytes
*1 byte removed thanks to [@beaker's](https://codegolf.stackexchange.com/a/87080/36398) idea of using `[...,'']` to convert to char.*
```
@()[91-rot90(gallery('minij',26),2),'']
```
This is an anonymous function that returns a 2D char array.
[**Try it on Ideone**](http://ideone.com/yFwVQc).
### Explanation
`gallery('minij',...)` gives a matrix in which each entry equals the minimum of its row and column indices:
```
1 1 1 1 ...
1 2 2 2
1 2 3 3
1 2 3 4
...
```
This is rotated 180 degrees with `rot90(...,2)`:
```
26 25 24 23 ...
25 25 24 23
24 24 24 23
23 23 23 23
...
```
The `91-...` operation gives the ASCII codes of uppercase letters:
```
65 66 67 68
66 66 67 68
67 67 67 68
68 68 69 68 ...
...
```
Finally `[...,'']` concatenates horizontally with an empty string. This has the effect of converting to char.
[Answer]
# Python 2, ~~76~~ ~~70~~ 68 bytes
```
a=range(65,91)
i=0
for c in a:a[:i]=[c]*i;i+=1;print'%c'*26%tuple(a)
```
Very similar to [my answer to the linked question](https://codegolf.stackexchange.com/a/87001/56755).
*Saved 2 bytes thanks to @xnor (again)!*
[Answer]
## PowerShell v2+, ~~76~~ ~~52~~ 40 bytes
```
65..90|%{-join[char[]](,$_*$i+++$_..90)}
```
Loops from `65` to `89`. Each iteration, we're constructing an array using the comma-operator that consists of the current number `$_` multiplied by post-incremented helper variable `$i++`, concatenated with an array of the current number `$_` to `90`. That's encapsulated in a char-array cast, and `-join`ed together into a string. For example, for the first iteration, this array would be equivalent to `65..90`, or the whole alphabet. The second iteration would be `66+66..90`, or the whole alphabet with `B` repeated and no `A`.
Those are all left on the pipeline at program end (as an array), and printing to the console is implicit (the default `.ToString()` for an array is separated via newline, so we get that for free).
```
PS C:\Tools\Scripts\golfing> .\print-the-l-phabet.ps1
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZ
CCCDEFGHIJKLMNOPQRSTUVWXYZ
DDDDEFGHIJKLMNOPQRSTUVWXYZ
EEEEEFGHIJKLMNOPQRSTUVWXYZ
FFFFFFGHIJKLMNOPQRSTUVWXYZ
GGGGGGGHIJKLMNOPQRSTUVWXYZ
HHHHHHHHIJKLMNOPQRSTUVWXYZ
IIIIIIIIIJKLMNOPQRSTUVWXYZ
JJJJJJJJJJKLMNOPQRSTUVWXYZ
KKKKKKKKKKKLMNOPQRSTUVWXYZ
LLLLLLLLLLLLMNOPQRSTUVWXYZ
MMMMMMMMMMMMMNOPQRSTUVWXYZ
NNNNNNNNNNNNNNOPQRSTUVWXYZ
OOOOOOOOOOOOOOOPQRSTUVWXYZ
PPPPPPPPPPPPPPPPQRSTUVWXYZ
QQQQQQQQQQQQQQQQQRSTUVWXYZ
RRRRRRRRRRRRRRRRRRSTUVWXYZ
SSSSSSSSSSSSSSSSSSSTUVWXYZ
TTTTTTTTTTTTTTTTTTTTUVWXYZ
UUUUUUUUUUUUUUUUUUUUUVWXYZ
VVVVVVVVVVVVVVVVVVVVVVWXYZ
WWWWWWWWWWWWWWWWWWWWWWWXYZ
XXXXXXXXXXXXXXXXXXXXXXXXYZ
YYYYYYYYYYYYYYYYYYYYYYYYYZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZ
```
[Answer]
# [R](https://www.r-project.org/), ~~42~~ 41 bytes
```
write(outer(L<-LETTERS,L,pmax),'',26,,'')
```
[Try it online!](https://tio.run/##K/r/v7wosyRVI7@0JLVIw8dG18c1JMQ1KFjHR6cgN7FCU0ddXcfITAdIaf7/DwA "R – Try It Online")
The [next shortest R answer](https://codegolf.stackexchange.com/a/99532/67312) is still a bit too long since it prints out line by line. I was thinking about another question earlier today and realized a much shorter approach was possible for this one: I generate the matrix all at once using `outer` and `pmax` (parallel maximum) and then print it(\*) in one step with `write`.
(\*) technically, its transpose, but it's fortunately symmetric across its diagonal.
[Answer]
# MATL, 10 bytes
```
lY2t!2$X>c
```
[**Online demo**](https://matl.suever.net/?code=lY2t%212%24X%3Ec&inputs=&version=18.6.0) (If you have issues with this interpreter, ping me in the [MATL chat](https://chat.stackexchange.com/rooms/39466/matl-chatl). Also, [here](http://matl.tryitonline.net/#code=bFkydCEyJFg-Yw&input=) is the TIO link in case you have issues)
**Explanation**
```
lY2 % Push an array of characters to the stack: 'AB...Z'
t! % Duplicate and transpose
2$X> % Take the element-wise maximum between these two (with expansion)
c % Explicitly convert back to characters
% Implicitly display the result.
```
[Answer]
# Octave, 26 bytes
```
disp([max(L=65:90,L'),''])
```
Sample run on [ideone](http://ideone.com/18fUKi).
[Answer]
# [05AB1E](http://github.com/Adriandmen/05AB1E), 9 bytes
Code:
```
AAv¬N×?=¦
```
Explanation:
```
AA # Push the alphabet twice.
v # For each in the alphabet.
¬ # Get the first character and
N√ó # multiply by the iteration variable.
? # Pop and print.
= # Print the initial alphabet without popping.
¦ # Remove the first character of the initial alphabet and repeat.
```
Uses the **CP-1252** encoding. [Try it online!](http://05ab1e.tryitonline.net/#code=QUF2wqxOw5c_PcKm&input=).
[Answer]
# Javascript ES6, 81 bytes
```
x=>[...a='ABCDEFGHIJKLMNOPQRSTUVWXYZ'].map((x,y)=>x.repeat(y)+a.slice(y)).join`
`
```
Self-explanatory.
[Answer]
# R, 56 bytes
Don't have the rep to comment, but @plannapus [answer](https://codegolf.stackexchange.com/a/87224/61633) can be golfed-down a bit to:
```
for(i in 1:26)cat({L=LETTERS;L[1:i]=L[i];L},"\n",sep="")
```
resulting in the same output:
```
ABCDEFGHIJKLMNOPQRSTUVWXYZ
BBCDEFGHIJKLMNOPQRSTUVWXYZ
CCCDEFGHIJKLMNOPQRSTUVWXYZ
DDDDEFGHIJKLMNOPQRSTUVWXYZ
EEEEEFGHIJKLMNOPQRSTUVWXYZ
FFFFFFGHIJKLMNOPQRSTUVWXYZ
GGGGGGGHIJKLMNOPQRSTUVWXYZ
HHHHHHHHIJKLMNOPQRSTUVWXYZ
IIIIIIIIIJKLMNOPQRSTUVWXYZ
JJJJJJJJJJKLMNOPQRSTUVWXYZ
KKKKKKKKKKKLMNOPQRSTUVWXYZ
LLLLLLLLLLLLMNOPQRSTUVWXYZ
MMMMMMMMMMMMMNOPQRSTUVWXYZ
NNNNNNNNNNNNNNOPQRSTUVWXYZ
OOOOOOOOOOOOOOOPQRSTUVWXYZ
PPPPPPPPPPPPPPPPQRSTUVWXYZ
QQQQQQQQQQQQQQQQQRSTUVWXYZ
RRRRRRRRRRRRRRRRRRSTUVWXYZ
SSSSSSSSSSSSSSSSSSSTUVWXYZ
TTTTTTTTTTTTTTTTTTTTUVWXYZ
UUUUUUUUUUUUUUUUUUUUUVWXYZ
VVVVVVVVVVVVVVVVVVVVVVWXYZ
WWWWWWWWWWWWWWWWWWWWWWWXYZ
XXXXXXXXXXXXXXXXXXXXXXXXYZ
YYYYYYYYYYYYYYYYYYYYYYYYYZ
ZZZZZZZZZZZZZZZZZZZZZZZZZZ
```
Though, if answer as a matrix is allowed ([i.e. like here](https://codegolf.stackexchange.com/a/87302/61633)), we could do 49 bytes:
```
sapply(1:26,function(l){L=LETTERS;L[1:l]=L[l];L})
```
[Answer]
# [Husk](https://github.com/barbuz/Husk), 7 bytes
```
´ṪY…"AZ
```
[Try it online!](https://tio.run/##yygtzv7//9CWhztXRT5qWKbkGPX/PwA "Husk – Try It Online") I'm rather surprised there isn't a Husk answer for this already. In any case, all this does is create a table (`Ṫ`) of the maximum (`Y`) of each pair of letters A to Z.
[Answer]
## Haskell, ~~53~~ 46 bytes
```
unlines[(i<$['B'..i])++[i..'Z']|i<-['A'..'Z']]
```
Returns a single string with the L-phabet.
go through the chars `i` from `A` to `Z` and make a list of `(length ['B'..i])` copies of `i` followed by `[i..'Z']`. Join elements with newlines in-between.
[Answer]
# Python 3, ~~71~~ 65 bytes
*Thanks to @LeakyNun for -6 bytes*
```
r=range(26)
for i in r:print(''.join(chr(max(i,x)+65)for x in r))
```
A full program that prints to STDOUT.
**How it works**
We assign character codes to the letters of the alphabet, from `0` for `A` to `25` for `Z`. The program loops over the interval `[0, 25]` with a line counter `i`, which determines the current character to be repeated and the length of the repeated section, and a character index `x`. By calling `max(i,x)`, all characters below the repeated character are clamped to the character code of the same. Adding `65` and calling `chr` converts the resultant character codes to their ASCII equivalents; `''.join` concatenates the characters, and each line is printed to STDOUT.
[Try it on Ideone](https://ideone.com/5L08ro)
[Answer]
# ùîºùïäùïÑùïöùïü, 12 chars / 15 bytes
```
ᶐⓢ⒨Ċ_+ᶐč_)ü⬬
```
`[Try it here (Chrome Canary only).](http://molarmanful.github.io/ESMin/interpreter3.html?eval=false&input=&code=%E1%B6%90%E2%93%A2%E2%92%A8%C4%8A_%2B%E1%B6%90%C4%8D_)%C3%BC%E2%AC%AC)`
Basically a port of my ES6 answer.
[Answer]
# R, 54 bytes
`v=L=LETTERS;for(i in 2:26){L[1:i]=L[i];v=cbind(v,L)};v`
This solution uses the **R** built-in constant `LETTERS`, that... well... lists the uppercase letters. There is also the constant `letters` for lowercase letters.
[Answer]
# Cheddar, 90 bytes
```
(|>26).map(i->String.letters.chars.map((j,k,l)->k<i?l[i]:j).fuse).vfuse.slice(1)
```
That `String.letters` is too long :/
Had to add a `.slice(1)` because leading newline is disallowed
## Explanation
```
(|>26) // Range from [0, 26)
.map(i-> // Loop through that range
String.letters.chars // Alphabet array
.map( // Loop through alphabet
(j,k,l) -> // j = letter, j = index, l = alphabet
k<i?l[i]:j // Basically `l[max(k,i)]`
).fuse // Collapse the array
).vfuse // Join on newlines
```
# Cheddar, 65 bytes (non-competing)
```
(|>26).map(i->String.letters.map((j,k,l)->k<i?l[i]:j).fuse).vfuse
```
Works with the [nightly branch](https://github.com/cheddar-lang/Cheddar/tree/develop). Non-competing... sad part is that I already had the changes... just never commited ;\_;
] |
[Question]
[
In as few bytes as possible, write a program or function that outputs the following:
```
Abcdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
abcdefghijKlmnopqrstuvwxyz
abcdefghijkLmnopqrstuvwxyz
abcdefghijklMnopqrstuvwxyz
abcdefghijklmNopqrstuvwxyz
abcdefghijklmnOpqrstuvwxyz
abcdefghijklmnoPqrstuvwxyz
abcdefghijklmnopQrstuvwxyz
abcdefghijklmnopqRstuvwxyz
abcdefghijklmnopqrStuvwxyz
abcdefghijklmnopqrsTuvwxyz
abcdefghijklmnopqrstUvwxyz
abcdefghijklmnopqrstuVwxyz
abcdefghijklmnopqrstuvWxyz
abcdefghijklmnopqrstuvwXyz
abcdefghijklmnopqrstuvwxYz
abcdefghijklmnopqrstuvwxyZ
abcdefghijklmnopqrstuvwxYz
abcdefghijklmnopqrstuvwXyz
abcdefghijklmnopqrstuvWxyz
abcdefghijklmnopqrstuVwxyz
abcdefghijklmnopqrstUvwxyz
abcdefghijklmnopqrsTuvwxyz
abcdefghijklmnopqrStuvwxyz
abcdefghijklmnopqRstuvwxyz
abcdefghijklmnopQrstuvwxyz
abcdefghijklmnoPqrstuvwxyz
abcdefghijklmnOpqrstuvwxyz
abcdefghijklmNopqrstuvwxyz
abcdefghijklMnopqrstuvwxyz
abcdefghijkLmnopqrstuvwxyz
abcdefghijKlmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
Abcdefghijklmnopqrstuvwxyz
```
A trailing newline is permitted. You can find a reference ungolfed Python implementation [here](https://gist.github.com/katyaka/a2a74206d90451952146).
[Answer]
# Pyth, 12 bytes
```
V+Gt_GXGNrN1
```
[Demonstration.](https://pyth.herokuapp.com/?code=V%2BGt_GXGNrN1&debug=0)
In Pyth, `G` is the lowercase alphabet. `+Gt_G` is `abcdefghijklmnopqrstuvwxyzyxwvutsrqponmlkjihgfedcba`, the character that needs to be uppercased in each row.
`V` sets up a for loop over this string, with `N` as the loop variable.
In the body, `XGNrN1` is a string translation function. `X` translates `G`, the alphabet, replacing `N` with `rN1`, the uppercase version of `N`. `r ... 1` is the uppercase function. This gives the desired output.
[Answer]
# C,73
Sometimes the simplest approach is best: print every character one by one. this beats a lot of languages it really shouldn't.
```
i;f(){for(i=1377;i--;)putchar(i%27?123-i%27-32*!(i/702?i%28-4:i%26):10);}
```
explanation
```
i;f(){
for(i=1377;i--;)
putchar(i%27? //if I not divisible by 27
123-i%27- // print lowercase letter from ASCII 122 downards
32*!(i/702?i%28-4:i%26) // subtract 32 to make it uppercase where necessary: above i=702, use i%28-4, below it use i%26
:10); //if I divisible by 27 print a newline (10)
}
```
[Answer]
# Python 2, 69 bytes
```
i=25
exec"L=range(97,123);L[~abs(i)]^=32;i-=1;print bytearray(L);"*51
```
Nice and simple, I think.
[Answer]
# Brainfuck (8bit), 231 bytes
```
++++++++++>++[>>+++++[-<+++++>]<[>>>>>[-]>[-]--[-----<+>]<----->[-]>----[----<+>]<++<<<+++++[-<<+++++>>]<<+>[>>>.+>+<<<<-<->]>>>+>.+<<<<<-[>>>>.+>+<<<<<-]<<<<[<+>>>>>>>>-<<<<<<<-]<[>+<-]>>>>>>>>+[<+<+>>-]<[>+<-]<<<<<.>>-]+<-<<++>>]
```
Ok, so it's never going to be the shortest, but it's the taking part that counts... right?!
Try it [here](http://copy.sh/brainfuck/) (ensure to tick 'Dynamic memory')
[Answer]
# MS-DOS Binary, 61
This code does not have to be compiled, it will run in MS-DOS if you write it into a file called wave.com . The code in hex:
```
ba3d0189d7b91a00b061aa404975fbb00aaab00daab024aa31f6e8130046
83fe1a75f7be1800e807004e75fae80100c389d3802820b409cd21800020
c3
```
Or, if you prefer something more readable, here is how to produce it using debug.exe (the empty line after the code is important):
```
debug.exe wave.com
a
mov dx,13d
mov di,dx
mov cx,1a
mov al,61
stosb
inc ax
dec cx
jnz 10a
mov al,a
stosb
mov al,d
stosb
mov al,24
stosb
xor si,si
call 130
inc si
cmp si,1a
jnz 11a
mov si,18
call 130
dec si
jnz 126
call 130
ret
mov bx,dx
sub byte ptr [si+bx],20
mov ah,9
int 21
add byte ptr [si+bx],20
ret
rcx
3e
w
q
```
[Answer]
# Ruby: ~~71~~ ~~68~~ ~~65~~ 63 characters
```
puts f=(e=*?a..?z).map{|c|(e*"").tr c,c.upcase},f[0,25].reverse
```
Sample run:
```
bash-4.3$ ruby -e 'puts f=(e=*?a..?z).map{|c|(e*"").tr c,c.upcase},f[0,25].reverse' | head
Abcdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
```
[Answer]
## Matlab, ~~60~~ ~~58~~ 54 bytes
```
I=32*eye(26);[ones(51,1)*(97:122) '']-[I;I(25:-1:1,:)])
```
With thanks to [Dennis Jaheruddin](https://codegolf.stackexchange.com/users/11159/dennis-jaheruddin) for saving me 4 bytes.
[Answer]
# SWI-Prolog, 136 bytes
```
a:-(R=0;R=1),between(1,26,I),(I=1,R=0;I\=1,nl),between(1,26,J),(R=0,L=I;R=1,L is 27-I),(J=L,K is J+64,put(K);J\=L,K is J+96,put(K)),\+!.
```
Abusing backtracking to loop...
[Answer]
# Haskell ~~100~~ ~~89~~ 88 bytes
```
putStr$map toEnum.(\(h,c:t)->h++c-32:t++[10]).(`splitAt`[97..122]).(25-).abs=<<[-25..25]
```
The lambda helper function `\(h,c:t)` takes a pair of lists of ascii values and concatenates both, but with the first value of the second list capitalized. The main function splits the lowercase alphabet (given in ascii, `97..122`) at every position `0,..,24,25,24,..,0` and calls the lambda in every step. Before printing each value is turned into the corresponding character.
[Answer]
# Scala ~~110~~ 109 characters
```
val a=('a'to'z').map(c⇒('a'to'z').map(v⇒if(v==c)c.toUpper else v).mkString)
a++a.init.reverse foreach println
```
[Answer]
# [Haskell](https://www.haskell.org/), 70 bytes
```
mapM putStrLn[[toEnum$x+sum[32|x+abs y/=90]|x<-[65..90]]|y<-[-25..25]]
```
I revisited this problem 6 years later and saved a bunch of bytes. Character growth!
[Try it online!](https://tio.run/##y0gszk7NyfmfZhvzPzexwFehoLQkuKTIJy86uiTfNa80V6VCu7g0N9rYqKZCOzGpWKFS39bSILamwkY32sxUTw/Ijq2pBHJ0jYA8I9PYWKAxmXkKtgpp//8lp@Ukphf/100uKAAA "Haskell – Try It Online")
# Haskell, 81 bytes
Counting bytes the way @nimi did; `f` is an IO action that prints the desired output.
```
x!y|x==min(50-y)y=65|0<1=97
f=mapM putStrLn[[toEnum$x+x!y|x<-[0..25]]|y<-[0..50]]
```
[Answer]
# SQL (postgreSQL), ~~107~~ 101
Generate are series from -25 to 25 and use the absolute value to replace characters with their uppercase version. Thanks to manatwork for the tip about the @ operator.
```
select replace('abcdefghijklmnopqrstuvwxyz',chr(122- @i),chr(90- @i))from generate_series(-25,25)a(i)
```
[Answer]
# Pyth - 18 17 bytes
First pass, probably can be made much shorter. Uses `X` to substitute and `r1` to capitalize.
```
V+KU26t_KXGNr@GN1
```
[Try it online here](http://pyth.herokuapp.com/?code=V%2BKU26t_KXGNr%40GN1&debug=1).
[Answer]
# J, ~~31~~ 23 bytes
```
u:|:(97+i.26)-32*=|i:25
```
8 bytes saved thanks to @Mauris.
[Try it online here.](http://tryj.tk/)
[Answer]
# MATLAB - 58 bytes
```
char(bsxfun(@minus,97:122,32*[eye(25,26);rot90(eye(26))]))
```
Similar to [Luis Mendo's solution](https://codegolf.stackexchange.com/a/53832/42418), but using the broadcasting abilities of [`bsxfun`](http://www.mathworks.com/help/matlab/ref/bsxfun.html).
Taking advantage that in ASCII, the difference between a capital and lower case character is exactly 32 values away from each other, we first generate lower case letters from ASCII codes 97 to 122 which are the ASCII codes from lowercase a to lowercase z respectfully, then create a 51 row matrix that contains the 26 ASCII codes from 97 to 122. Therefore, each row of this matrix contains a numerical sequence of values from 97 to 122. Next, we create another matrix where each ith row of this matrix contains a 32 in the ith column. The first 26 rows of this matrix has this pattern, which is essentially the identity matrix multiplied by 32. The function [`eye`](http://www.mathworks.com/help/matlab/ref/eye.html) creates an identity matrix for you. The last 25 rows of this matrix is the scaled identity matrix rotated 90 degrees.
By taking this custom weighted identity matrix and subtracting this with the first matrix, then converting the resulting ASCII codes into characters, the desired "Mexican Hat" sequence is produced.
# Example Run
```
>> char(bsxfun(@minus,97:122,32*[eye(25,26);rot90(eye(26))]))
ans =
Abcdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
abcdefghijKlmnopqrstuvwxyz
abcdefghijkLmnopqrstuvwxyz
abcdefghijklMnopqrstuvwxyz
abcdefghijklmNopqrstuvwxyz
abcdefghijklmnOpqrstuvwxyz
abcdefghijklmnoPqrstuvwxyz
abcdefghijklmnopQrstuvwxyz
abcdefghijklmnopqRstuvwxyz
abcdefghijklmnopqrStuvwxyz
abcdefghijklmnopqrsTuvwxyz
abcdefghijklmnopqrstUvwxyz
abcdefghijklmnopqrstuVwxyz
abcdefghijklmnopqrstuvWxyz
abcdefghijklmnopqrstuvwXyz
abcdefghijklmnopqrstuvwxYz
abcdefghijklmnopqrstuvwxyZ
abcdefghijklmnopqrstuvwxYz
abcdefghijklmnopqrstuvwXyz
abcdefghijklmnopqrstuvWxyz
abcdefghijklmnopqrstuVwxyz
abcdefghijklmnopqrstUvwxyz
abcdefghijklmnopqrsTuvwxyz
abcdefghijklmnopqrStuvwxyz
abcdefghijklmnopqRstuvwxyz
abcdefghijklmnopQrstuvwxyz
abcdefghijklmnoPqrstuvwxyz
abcdefghijklmnOpqrstuvwxyz
abcdefghijklmNopqrstuvwxyz
abcdefghijklMnopqrstuvwxyz
abcdefghijkLmnopqrstuvwxyz
abcdefghijKlmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
Abcdefghijklmnopqrstuvwxyz
```
You can also run this example using IDEone's online Octave environment. Octave is essentially MATLAB but free: <http://ideone.com/PknMe0>
[Answer]
# Perl, 51 bytes
50 bytes code + 1 byte command line parameter
```
@a=a..z,@a[-1-abs]=uc@a[-1-abs],print@a for-25..25
```
Can be used as follows:
```
perl -le '@a=a..z,@a[-1-abs]=uc@a[-1-abs],print@a for-25..25'
```
Or online [here](http://ideone.com/ZCJjel) (note I had to add `,"\n"` to this as I couldn't add the -l arg).
---
**Much longer method**
Before the shortened version above, I tried a different method which ended up being pretty chunky. I've left it below anyway for reference.
86 bytes code + 1 byte command line arg
```
$_=join"",0,a..z,1;print s/1//r while s/(([A-Z])|0)(\D)|(.)((?2))(1)/\L\2\U\3\4\6\L\5/
```
First Perl I've ever golfed properly so I imagine there's a lot that can be done with it - please do suggest improvements!
Can be used as followed:
```
perl -le '$_=join"",0,a..z,1;print s/1//r while s/(([A-Z])|0)(\D)|(.)((?2))(1)/\L\2\U\3\4\6\L\5/'
```
Or online [here](http://ideone.com/mEA5Xm) (note I had to add ."\n" to this as I couldn't add the -l arg).
### Explanation
General approach is to use regex substitution to do all the hard work. We start off with:
```
0abcdefghijklmnopqrstuvwxyz1
```
This matches `(([A-Z])|0)(\D)` and gets replaced with `\U\3` (\U changes to uppercase) to give:
```
Abcdefghijklmnopqrstuvwxyz1
```
From this point onwards, we continue to match the same regex and replace with `\L\2\U\3`:
```
aBcdefghijklmnopqrstuvwxyz1
abCdefghijklmnopqrstuvwxyz1
...
abcdefghijklmnopqrstuvwxyZ1
```
Now the second alternation of the regex matches, `(.)((?2))(1)` (which is the same as `(.)([A-Z])(1)`). We replace with `\U\4\6\L\5` to give:
```
abcdefghijklmnopqrstuvwxY1z
```
This continues to match and replace until we reach:
```
A1bcdefghijklmnopqrstuvwxyz
```
and there are no more regex matches.
At each point in the loop we strip off the '1' and print.
[Answer]
# PHP, ~~87~~ ~~71~~ 69 bytes
Not the shortest one, but it works as intended.
Thanks to [@manatwork](https://codegolf.stackexchange.com/users/4198/manatwork) for a few tips to reduce it's size by a lot.
And thanks to [@Blackhole](https://codegolf.stackexchange.com/users/11713/blackhole), the size was reduced by 2 bytes.
```
for(;$L=range(a,z),$L[25-abs($i++-25)]^=' ',$i<52;)echo join($L).'
';
```
Not exactly pretty, but works.
[Answer]
## PowerShell 3.0, 82 bytes
```
$(0..25)+$(24..0)|%{$i=$_;[string](@(97..122)|%{[char]@($_,($_-32))[$_-eq$i+97]})}
```
[Answer]
# TIS Node Type T21 Architecture - ~~216~~ 215 bytes
![](https://i.stack.imgur.com/m9mit.png)
[Watch it in action here!](https://www.youtube.com/watch?v=7jipsgwtRW4) There's a `DOWN` in that video that I later golfed to `ANY`, but it's functionally identical.
This language has no concept of strings or characters, so I should point out that I'm using ASCII values, i.e. output begins `97, 66, 67`...`88, 89, 90, 10, 65, 98`...
Here's the code in the format of TIS-100's save data, for the purposes of scoring:
```
@5
ADD 25
L:MOV 27 ANY
SUB 1
JGZ L
MOV 25 ANY
JRO -1
@6
JRO 2
S:MOV 10 ANY
ADD 65
MOV ACC ANY
SUB 90
JEZ S
ADD 26
@9
MOV 32 ANY
ADD UP
L:MOV 0 ANY
SUB 1
JGZ L
@10
MOV UP ACC
ADD ANY
SUB 42
D:JEZ D
ADD 42
MOV ACC ANY
```
**Explanation**
![](https://i.stack.imgur.com/yMCqU.png)
[Answer]
# JavaScript ES6, 121 bytes
```
_=>Array(51).fill('abcdefghijklmnopqrstuvwxyz').map((e,i)=>e.replace(/./g,(f,j)=>j==i|i+j==50?f.toUpperCase():f)).join`
`
```
This is really long because it makes more sense to hardcode the alphabet than to use the absurdly long `String.fromCharCode` to generate the characters. Test it out below with the Stack snippet, which uses better-supported ES5 and below.
```
f=function(){
return Array(51).fill('abcdefghijklmnopqrstuvwxyz').map(function(e,i){
return e.replace(/./g,function(f,j){
return j==i|i+j==50?f.toUpperCase():f
})
}).join('\n')
}
// Polyfill for ES6-only fill()
Array.prototype.fill = Array.prototype.fill || function(val){
for(i=0;i<this.length;i++){
this[i] = val
}
return this
}
document.getElementById('p').innerText=f()
```
```
<pre id="p"></pre>
```
[Answer]
# CJam, 23 bytes
```
51{25-z~'{,97>'[2$+tN}/
```
Try it online in the [CJam interpreter](http://cjam.aditsu.net/#code=51%7B25-z~'%7B%2C97%3E'%5B2%24%2BtN%7D%2F).
### How it works
```
51{ }/ e# For I from 0 to 50:
25- e# Compute J := I - 25.
e# This maps [0 ... 50] to [-25 ... 25].
z e# Compute K := abs(J).
e# This maps [-25 ... 25] to [25 ... 0 ... 25].
~ e# Compute L := ~K = -(K + 1).
e# This maps [25 ... 0 ... 25] to [-26 ... -1 ... -26].
'{, e# Push ['\0' ... 'z'].
97> e# Discard the first 97. Pushes ['a' ... 'z'].
'[2$+ e# Add L to '['. Pushes 'A' for -26, 'Z' for -1.
t e# Set ['a' ... 'z'][L] to '[' + L.
N e# Push a linefeed.
```
[Answer]
# R, ~~78~~ 70
```
M=replicate(26,c(letters,"\n"));diag(M)=LETTERS;cat(M,M[,25:1],sep="")
```
Improved by @MickyT
[Answer]
# Bash: ~~76~~ 66 characters
```
printf -va %s {a..z}
for c in {a..z} {y..a};{ echo ${a/$c/${c^}};}
```
Sample run:
```
bash-4.3$ printf -va %s {a..z};for c in {a..z} {y..a};{ echo ${a/$c/${c^}};} | head
Abcdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
```
[Answer]
# Linux Assembly, 289
Unfortunately not competitive with high level languages and probably far from optimal, but pretty straightforward. Run it using `nasm -f elf64 -o a.o wave.S; ld -s -o a a.o; ./a` (the resulting binary is just 568 bytes big):
```
section .data
s:db 'abcdefghijklmnopqrstuvwxyz',10
section .text
global _start
_start:
mov esi,0
a:call c
inc esi
cmp esi,26
jne a
mov esi,24
b:call c
dec esi
jnz b
call c
mov eax,1
call d
c:mov ecx,s
sub byte [ecx+esi],32
mov eax,4
mov edx,27
d:mov ebx,1
int 80h
add byte [ecx+esi],32
ret
```
[Answer]
# x86 assembly for DOS, 41 Bytes compiled
Binary:
```
00000000 b9 e6 ff b3 61 b8 61 02 50 38 d8 75 02 24 df 88
00000010 c2 cd 21 58 40 3c 7b 75 ef b2 0a cd 21 41 79 02
00000020 43 43 4b 80 f9 19 75 dd c3
```
Source code, save as "wave.asm", compile with "nasm -f bin -o wave.com wave.asm" and run with "dosbox wave.com"
```
org 100h
section .text
start:
mov cx,-26
mov bl,'a'
next_line:
mov ax, 0261h
next_char:
push ax
cmp al,bl
jnz lower_case
and al,255-32
lower_case:
mov dl,al
int 21h
pop ax
inc ax
cmp al,'z'+1
jnz next_char
mov dl,0ah
int 21h
inc cx
jns move_left
inc bx
inc bx
move_left:
dec bx
cmp cl,25
jnz next_line
ret
```
[Answer]
# C#, 140 139 135 132
```
void f(){int d=1,i=0;var s="abcdefghijklmnopqrstuvwxyz\n";for(;i>=0;i+=d=i==25?-1:d)Console.Write(s.Replace(s[i],(char)(s[i]-32)));}
```
Expanded
```
void f()
{
int d = 1, i =0;
var s = "abcdefghijklmnopqrstuvwxyz\n";
for (; i >= 0; i += d = i == 25 ? -1 : d)
Console.Write(s.Replace(s[i], (char)(s[i] - 32)));
}
```
Saved 1 byte thanks to [@Gunther34567](https://codegolf.stackexchange.com/users/37953/gunther34567) using a ternary instead of `if`
Saved 4 bytes then nesting that ternary inside the loop and moving the alphabet to the outside of the loop
Saved 3 bytes combining integer declarations thanks to [@eatonphil](https://codegolf.stackexchange.com/users/42769/eatonphil)
[Answer]
# awk, 91 bytes
```
awk 'BEGIN{for(i=0;i<51;i++)for(j=0;j<27;j++)printf("%c",j>25?10:i==j||j==50-i?j+65:j+97)}'
```
[Answer]
# Sed: ~~135~~ ~~119~~ ~~116~~ 111 characters
(109 character code + 1 character command line option + 1 character input.)
```
s/.*/abcdefghijklmnopqrstuvwxyz/
h;H;G;H;G;H;g;G
s/.{,28}/\u&/gp
s/$/\t/
:;s/(\w+\n?)\t(.*)/\t\2\1/;t
s/.*Z//
```
Sample run:
```
bash-4.3$ sed -rf mexican.sed <<< '' | head
Abcdefghijklmnopqrstuvwxyz
aBcdefghijklmnopqrstuvwxyz
abCdefghijklmnopqrstuvwxyz
abcDefghijklmnopqrstuvwxyz
abcdEfghijklmnopqrstuvwxyz
abcdeFghijklmnopqrstuvwxyz
abcdefGhijklmnopqrstuvwxyz
abcdefgHijklmnopqrstuvwxyz
abcdefghIjklmnopqrstuvwxyz
abcdefghiJklmnopqrstuvwxyz
```
[Answer]
# Javascript (ES6), 113 bytes
```
c=-1;while(c++<50){console.log('abcdefghijklmnopqrstuvwxyz'.replace(/./g,(x,i)=>i==c|i+c==50?x.toUpperCase():x))}
```
# 110 bytes
```
for(c=-1;c++<50;)console.log('abcdefghijklmnopqrstuvwxyz'.replace(/./g,(x,i)=>i==c|i+c==50?x.toUpperCase():x))
```
# 102 bytes
Old school is unbeatable unless we'll have range operator/function/generator/whatever in js
```
for(c=-1;c++<50;){for(s='',i=-1;i++<25;)s+=String.fromCharCode(i+(i==c|i+c==50?65:97));console.log(s)}
```
# 100 bytes
Unluckily Math.abs is too long
```
for(c=51;c--;){for(s='',i=26;i--;)s+=String.fromCharCode(c+i==25|c-i==25?90-i:122-i);console.log(s)}
```
# ~~96~~ 94 bytes
Though I've beeing downvoted without explanation I continue my struggle
```
for(c=-26;c++<25;){for(s='',i=26;i--;)s+=String.fromCharCode(c*c-i*i?122-i:90-i);console.log(s)}
```
We can shave off a couple of bytes by rearranging loop instructions:
```
for(c=-26;c++<25;console.log(s))for(s='',i=26;i--;s+=String.fromCharCode(c*c-i*i?122-i:90-i));
```
[Answer]
# Perl - ~~95~~ 64 bytes
Takes advantage of the fact `\u` makes the next character printed an uppercase in Perl.
```
for$c(0..50){$n=1;print map{++$n==27-abs$c-25?"\u$_":$_}a..z,$/}
```
Thanks to manatwork for saving 31 bytes and fixing it (my previous code did not work.)
] |
[Question]
[
I love math. But I can't find a single calculator that can multiply correctly. They seem to get everything right except 6\*9 (It's the question to life, the universe, and everything! How could they get that wrong?!). So I want you all to write a function for me that can multiply 2 numbers correctly (and 6\*9 equals 42 instead of 54. 9\*6 equals 54 still).
Oh, and I'm going to have to build the source in Minecraft so... fewest bytes win!
Recap
* Take 2 numbers as input (type doesn't matter, but only 2 items will be passed, and order must be consistent. So streams, and arrays are ok as long as they preserve the order they where passed in. I.e., a map won't work because it doesn't preserve the order)
* Output multiple of both numbers except if they are 6 and 9, then output 42 (order matters!)
+ PS. I never was really good with counting, so I think only integers from 0 to 99 are real numbers (type used doesn't matter)
* Fewest bytes per language wins!
**Leaderboard:**
```
var QUESTION_ID=124242,OVERRIDE_USER=61474;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+ANSWER_FILTER}function commentUrl(e,s){return"https://api.stackexchange.com/2.2/answers/"+s.join(";")+"/comments?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+COMMENT_FILTER}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.share_link.match(/\d+/);answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return e.owner.display_name}function process(){var e=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r="<h1>"+e.body.replace(OVERRIDE_REG,"")+"</h1>")});var a=r.match(SCORE_REG);a&&e.push({user:getAuthorName(s),size:+r.match(SCORE_REG)[0],language:r.match(LANG_REG)[0].replace(/<\/?[^>]*>/g,"").trim(),link:s.share_link})}),e.sort(function(e,s){var r=e.size,a=s.size;return r-a});var s={},r=1,a=null,n=1;e.forEach(function(e){e.size!=a&&(n=r),a=e.size,++r;var t=jQuery("#answer-template").html();t=t.replace("{{PLACE}}",n+".").replace("{{NAME}}",e.user).replace("{{LANGUAGE}}",e.language).replace("{{SIZE}}",e.size).replace("{{LINK}}",e.link),t=jQuery(t),jQuery("#answers").append(t);var o=e.language;/<a/.test(o)&&(o=jQuery(o).text()),s[o]=s[o]||{lang:e.language,user:e.user,size:e.size,link:e.link}});var t=[];for(var o in s)s.hasOwnProperty(o)&&t.push(s[o]);t.sort(function(e,s){return e.lang>s.lang?1:e.lang<s.lang?-1:0});for(var c=0;c<t.length;++c){var i=jQuery("#language-template").html(),o=t[c];i=i.replace("{{LANGUAGE}}",o.lang).replace("{{NAME}}",o.user).replace("{{SIZE}}",o.size).replace("{{LINK}}",o.link),i=jQuery(i),jQuery("#languages").append(i)}}var ANSWER_FILTER="!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe",COMMENT_FILTER="!)Q2B_A2kjfAiU78X(md6BoYk",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page;getAnswers();var SCORE_REG=/\d+((?=$)|(?= Bytes))/i,OVERRIDE_REG=/^Override\s*header:\s*/i;LANG_REG=/^[^,(\n\r]+/i
```
```
body{text-align:left!important}#answer-list,#language-list{padding:10px;width:290px;float:left}table thead{font-weight:700}table td{padding:5px}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/Sites/codegolf/all.css?v=617d0685f6f3"> <div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table>
```
[Answer]
## Mathematica, 15 bytes
Byte count assumes Windows ANSI encoding (CP-1252).
```
6±9=42
±n__:=1n
```
Defines a binary operator `±` which solves the problem. We simply define `6±9=42` as a special case which takes precedence and then add a fallback definition which makes `±` equal to multiplication. The latter uses a fairly interesting golfing trick. The reason this works is actually quite elaborate and we need to look into *sequences*. A sequence is similar to what's known as a *splat* in other languages. It's basically a "list" without any wrapper around it. E.g. `f[1, Sequence[2, 3, 4], 5]` is really just `f[1, 2, 3, 4, 5]`. The other important concept is that all operators are just syntactic sugar. In particular, `±` can be used as a unary or binary operator and represents the head `PlusMinus`. So `±x` is `PlusMinus[x]` and `a±b` is `PlusMinus[a,b]`.
Now we have the definition `±n__`. This is shorthand for defining `PlusMinus[n__]`. But `n__` represents an arbitrary *sequence* of arguments. So this actually adds a definition for binary (and n-ary) usagess of `PlusMinus` as well. The value of this definition is `1n`. How does this multiply the arguments? Well, `1n` uses Mathematica's implicit multiplication by juxtaposition so it's equivalent to `1*n`. But `*` is also just shorthand for `Times[1,n]`. Now, `n` is sequence of arguments. So if we invoke `a±b` then this will actually become `Times[1,a,b]`. And that's just `a*b`.
I think it's quite neat how this syntax abuse lets us define a binary operator using unary syntax. We could now even do `PlusMinus[2,3,4]` to compute `24` (which can also be written as `±##&[2,3,4]` or `2±Sequence[3,4]` but it's just getting crazy at that point).
[Answer]
# [Haskell](https://www.haskell.org/), 14 bytes
```
6&9=42
a&b=a*b
```
[Try it online!](https://tio.run/##y0gszk7Nyfn/30zN0tbEiCtRLck2USvpf25iZp6CrUJKPpeCQkFRZl6JgoaRgpqCiSaCbwnkmyHxzYB8S83/AA "Haskell – Try It Online")
[Answer]
# C, ~~32~~ ~~31~~ ~~29~~ 28 bytes
-2 thanks to Digital Trauma
-1 thanks to musicman523
```
#define f(a,b)a^6|b^9?a*b:42
```
Pretty simple. Declares a macro function `f` that takes two arguments, `a` and `b`.
If `a` is `6` and `b` is `9`, return `42`. Otherwise return `a` x `b`.
[Try it online!](https://tio.run/##S9ZNT07@/185JTUtMy9VIU0jUSdJMzHOrCYpztI@USvJysTof25iZp6GZnVBUWZeSZqGUlBqcWlOiUJ@mkIukM4syMlMTizJzM@zUlBNUdJJ0zDTsdTUtK79DwA)
[Answer]
# JavaScript (ES6), 20 bytes
```
x=>y=>x-6|y-9?x*y:42
```
**Explanation:**
Iff x==6 and y==9, `x-6|y-9` will be 0 (falsy), and 42 will be the result.
**Snippet:**
```
f=
x=>y=>x-6|y-9?x*y:42
console.log(f(6)(9));
console.log(f(9)(6));
```
[Answer]
# [Python 2](https://docs.python.org/2/), ~~30~~ 29 bytes
Thanks to *Jonathan Allan* for saving a byte!
```
lambda x,y:x*[y,7][6==x==y-3]
```
[Try it online!](https://tio.run/##K6gsycjPM/qfpmCrEPM/JzE3KSVRoUKn0qpCK7pSxzw22szWtsLWtlLXOPZ/QVFmXolCmoaZjoKlJheMZ6mjYIbgmegomGr@BwA "Python 2 – Try It Online")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~15~~ ~~11~~ 9 bytes
-4 bytes thanks to @Emigna
-2 bytes thanks to @Adnan
```
P¹69SQi42
```
[Try it online!](https://tio.run/##MzBNTDJM/f8/4NBOM8vgwEwTo///o810FCxjAQ "05AB1E – Try It Online")
How it works
```
P # multiply input
¹ # push first number
69 # the number 69
S # split per character
Q # equality for both inputs
i42 # if so, print 42
# otherwise print product
```
[Answer]
# [Java (OpenJDK 8)](http://openjdk.java.net/), ~~24~~ 22 bytes
*-2 bytes thanks to @OlivierGrégoire*
```
a->b->a==6&b==9?42:a*b
```
[Try it online!](https://tio.run/##jU2xCsIwFNz7FW@SRmwGEaFq6iY4OHUUh9faltQ0Cc2rINJvrxGii4u33HHv3V2Ld0yMrXR7vU2ys6YnaL3HB5KK14MuSRrND0FsIzsUSpZQKnQOTig1PCPwCL4jJE93I6/Q@WucUy91c74A9o1j4fmNT@XuqKlqqn7xYwTOMqhBwIRJViQZCrGeFUKk@9Vyg/Ni@vRtv835w1HVcTMQt36clI5rjtaqR7xmQaSM/RVI2TcZAmM0Ti8 "Java (OpenJDK 8) – Try It Online")
[Answer]
# Ruby, 24 bytes
```
->a,b{a==6&&b==9?42:a*b}
```
[Answer]
# [Brain-Flak](https://github.com/DJMcMayhem/Brain-Flak), ~~158~~ ~~154~~ ~~148~~ ~~140~~ ~~138~~ 126 bytes
```
(({}<>)(((([()()()]<>)){})<({}{}({}))>{(()()()){}(<{}>)}{}))([()]{()(<{}>)}{})(({<{}>{}((<>))}{}){}<{}>{<({}[()])><>({})<>}{})
```
[Try it online!](https://tio.run/##PYyxCoAwDER3vyQ3uApCyI9IBx0EURxcQ7693iHYQkneXd/2rMc97td69m6W5QHjWQy6jSuy4Eyy@ACR9mXk5lmBEtaPluQ/ok0zWyaLEPUisqmO8JDTQ2Hv0zC/ "Brain-Flak – Try It Online")
# Explanation
This code is pretty simple. We make copies of the top two items on the stack, we subtract 6 from one and 9 from the other. We then take the `not` of the two values. We `and` those values, multiply the result by 12. Multiply the inputs and subtract the two results.
[Answer]
# Factorio, 661 bytes, 6 combinators with 9 connections
There is one constant combinator set to output A and B. Change these to set the input.
Blueprint string (0.15.18):
```
0eNrNVm2O2jAQvcv8rEKFvSHLRuqPtrfYCkUhGWAkYkfOGDVCOUBv0bP1JLWTLQuB3U0QbfcPYvzxZt68eYr3sNxaLA0phngPlGlVQfxtDxWtVbr1a1yXCDEQYwEBqLTwUY4Z5WgmmS6WpFLWBpoASOX4HWLRBG8C+EScKr6MIJtFAKiYmLCrpw3qRNliicaleK2SAEpduata+fQObiI+zgKo/R+XIyeDWbcrA18IG71NlrhJd+RuuytPmInby1ucyq+uyFScnPHakWHrVg4VdScmnz2fPzQhjnxQlKlpS4zhk7ugLZd2BCTu0NS8IbXusMvalWgVJyuji4SUA4OYjcWmS606nm31wv8YzI+7SS66axbusHxh1zeITGaJ21C4w41XtyeHHCXH9D+o8eVUjYd3qoY47bc86rWPo158/yze2iCqPtxsmHx3r9ry3E6ylU9cTUv0aITDygwPZaaGeFMgUzbM99NBg/aMegPnV+gxRg6oLtFNZFsjfLhiJB+huZn1B87O7Crr/0Pnfz11vug5/9ePn+/E+2Hf++4beNHV8uzgRWWica6ejnDKiraM5oWXwhtC2CcVDo+FxfAWDfwc3Y9jLv4288cj5qG8IXU3Ie2zKj56xgXgZrNqOURhKGfR/GE6nzfNb7OMaxo=
```
The output is signal Z and is to be taken from the top and bottom deciders.
[![Screenshot](https://i.stack.imgur.com/MWERB.png)](https://i.stack.imgur.com/MWERB.png)
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~8~~ 7 bytes
```
Vf96SạP
```
Input is as an array of two integers: first the right operand, then the left one.
[Try it online!](https://tio.run/##y0rNyan8/z8szdIs@OGuhQH/D7c/alqj4K3wcMf2Rw1zFHwTCxTyy1KLFEoyUhUy8wpKS3RAzDyF4tSCxKLEklSFpEqF4oLE5NRivf//o811FMxjdRSiLXUUzGIB "Jelly – Try It Online")
### How it works
```
Vf96SạP Main link. Argument: [b, a]
V Cast [b, a] to string, then eval the resulting string.
For [b, a] = [9, 6], this yields 96.
f96 Filter with 96, yielding [96] if V returned 96, [] otherwise.
S Take the sum, yielding either 96 or 0.
P Compute the product of [b, a], yielding ba = ab.
ạ Compute the absolute difference of the results to both sides.
When the sum is 0, this simply yields the product.
However, when [b, a] = [9, 6], this yields 96 - 54 = 42.
```
[Answer]
## Factorio, 581 bytes, 3 combinators with 4 connections
Blueprint string (0.16.36):
```
0eNqllNtu4jAQht9lLldmldNCFWkvto/RCkUhGWAkYkfOGDVCefeOnV1Km7ACemPJ9vibf04+webgsLWkGfITUGV0B/nrCTra6fLgz7hvEXIgxgYU6LLxO2/HpeZFZZoN6ZKNhUEB6RrfII+HtQLUTEw44sKmL7RrNmjF4AyqsaIa7SVHQWs6eWq0dy+46OcvBT3ki1hc1GSxGi8T5XWwNYdig/vySPJYXvxFFnJXB0znT7dkOy4mYR3JspOTs6DRYoFHtD3vSe98XP/CFZ9xtsqe0mW29KdNW9qgOYffgjCOW3eHk+eR3fai1WkuttY0BWlhQM7W4TC61mPAIYzYLxbry6yS7FKxJFs54rANFdhZRP3VMBnWQk08ZvZ+ChpExqSCyX9bYVLCRfxRwbmabenAaK+03rX0/RnT5z7VJbroQnUH7HkGlq7OsDFtc8WYzWJ8WxbTs4rSEu8bZKpuGoXopkn4gH5vGEKiO/SMO5vbtCgDEjTCjwcm5AWGO4ZgknX16Tq7OhRfHiZXypU91PTRd6ZYdIjo8PnmF3+1AvmfuuBq+bRKYmnWKM2G4R1hAPnz
```
The bottom left constant combinator should be set to output A and B as input. The output is signal Z from the bottom right arithmetic combinator.
[![enter image description here](https://i.stack.imgur.com/dtthF.png)](https://i.stack.imgur.com/dtthF.png)
```
Top left: 2147483640 A, 2147483637 B
Top right: If everything = 2147483646 output B, input count
Bottom left: (input) A, (input) B
Bottom right: A * B -> Z
```
[Answer]
# [MATL](https://github.com/lmendo/MATL), 11 bytes
```
[BE]=?42}Gp
```
Input is an array with the two numbers.
[Try it online!](https://tio.run/##y00syfn/P9rJNdbW3sSo1r0AyDHTUbCMBQA "MATL – Try It Online")
### Explanation
```
[BE] % Push array [6, 9]
= % Implicit input: array of two numbers. Compare with [6, 9] element-wise
? % If the two entries are true
42 % Push 42
} % Else
G % Push input
p % Product of array
% Implicit end. Implicit display
```
[Answer]
# [R](https://www.r-project.org/), 33 bytes
```
function(a,b)`if`(a-6|b-9,a*b,42)
```
Returns a function.
[Try it online!](https://tio.run/##K/qfoKqlmmD7P600L7kkMz9PI1EnSTMhMy1BI1HXrCZJ11InUStJx8RI87@ZAlClgiWXJZg24zIE08b/AQ "R – Try It Online")
[Answer]
# [GW-BASIC](//en.wikipedia.org/wiki/GW-BASIC), 55 bytes
```
1INPUT A:INPUT B
2IF A=6THEN IF B=9THEN ?"42":END
3?A*B
```
Output:
[![output](https://i.stack.imgur.com/uRqRY.png)](https://i.stack.imgur.com/uRqRY.png)
The first machine at [pcjs](https://pcjs.org) has IBM BASIC, which is practically the same thing. To test this, head over there, hit `Run` on the machine, Press `Enter`-`Enter` and type `BASICA` to get into BASIC mode. Then enter the source code (it will automatically prettyprint for you), type `RUN`, input two integers, and done!
[Answer]
# JavaScript (ES6), 25 bytes
```
x=>y=>[x*y,42][x==6&y==9]
```
[Answer]
## [Check](https://github.com/ScratchMan544/check-lang), ~~34~~ 33 bytes
```
.:+&>#v
#>42#v#9-!\>6-!*?
d* ##p
```
Check is my new esolang. It uses a combination of 2D and 1D semantics.
Input is two numbers passed through command line arguments.
### Explanation
The stack starts with the command line arguments on it. Let's call the arguments `a` and `b`.
The first part, `.:+&`, essentially duplicates the stack, leaving it as `a, b, a, b`. `>` pushes 0 to the stack (it is part of a numeric literal completed by `9`).
`#` switches to 2D semantics, and `v` redirects the IP downwards. The IP immediately runs into a `#`, which switches back to 1D semantics again.
`9-!` checks whether `b` is equal to 9 (by subtracting 9 and taking the logical NOT). `\>6-!` then checks whether `a` is equal to 6. The stack now contains `a, b, 1, 1` if and only if `b==9` and `a==6`. Multiplying with `*` takes the logical AND of these two values, giving `a, b, 1` if the inputs were `6` and `9`, and `a, b, 0` otherwise.
After this, the IP runs into a `?`. This will switch to 2D mode if the top stack value is nonzero, and otherwise will continue in 1D mode.
If the top stack value was `1`, this means that the other stack values are `6` and `9`, so we push 42 to the stack with `>42` and then move down to the second `#` on the last line.
If the top stack value was `0`, then execution moves down to the next line. `d` removes the `0` (as `?` does not do so), and then we multiply the two inputs with `*`. The `##` switches in and out of 2D mode, doing nothing.
The branches have now joined again. The stack either contains `6, 9, 1, 42`, or `a*b`. `p` prints the top stack value and then the program ends, discarding the rest of the stack.
[Answer]
# [Japt](https://github.com/ETHproductions/japt), ~~13~~ ~~11~~ 12 bytes
```
¥6&V¥9?42:N×
```
[Try it online](http://ethproductions.github.io/japt/?v=1.4.5&code=pTYmVqU5PzQyOk7X&input=Niw5)
* ~~2~~ 1 bytes saved thanks to obarakon.
[Answer]
# [Python 3](https://docs.python.org/3/), ~~36~~ 33 bytes
```
lambda x,y:42if x==6==y-3else x*y
```
[Try it online!](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUaFCp9LKxCgzTaHC1tbM1rZS1zg1pzhVoUKr8n9BUWZeiUaahpmOpaYmF4xnqWOmqfkfAA "Python 3 – Try It Online")
[Answer]
# [APL (Dyalog)](https://www.dyalog.com/), 10 bytes
```
×-12×6 9≡,
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT///v@JR24TD03UNjQ5PN1OwfNS5UOf/fwOFCgVjLiMgacplCSQNDbkMQWKGBlyWIL4RWNSMywxIWgIA "APL (Dyalog Unicode) – Try It Online")
`×` the product (of the arguments)
`-` minus
`12×` twelve times
`6 9≡` whether (6,9) is identical to
`,` the concatenation (of the arguments)
[Answer]
**R, 41 I think** I don't know how to count bytes I am new :D
```
function(a,b){
if(a==6&b==9){42} else {a*b}
}
```
I define a funtion whose arguments are a and b **in this order**. If a equals to 6 and b equals to 9 it returns 42, otherwise, a times b
[Answer]
## [SPL](http://shakespearelang.sourceforge.net/report/shakespeare/#SECTION00053000000000000000), 356 bytes
```
a.Ajax,.Puck,.Act I:.Scene I:.[Enter Ajax and Puck]Ajax:Listen to your heart!Puck:Listen to your heart!Are you as big as the sum of a big big big cat and a cat?If so, am I as big as the sum of a big big cat and a big cat?If so, you are as big as the product of I and the sum of I and a cat.If not, you are as big as the product of you and I.Open your heart
```
With newlines and spaces:
```
a. *Title*
Ajax,. *Declare variable Ajax*
Puck,. *Declare variable Puck*
Act I:.
Scene I:.
[Enter Ajax and Puck]
Ajax: Listen to your heart! *Set Puck's value to user input*
Puck: Listen to your heart! *Set Ajax's value to user input*
Are you as big as the sum of a big
big big cat and a cat? *Is Ajax=9?*
If so, am I as big as the sum of a
big big cat and a big cat? *Is Puck=6?*
If so, you are as big as the product
of I and the sum of I and a cat. *If so, set Ajax=42*
If not, you are as big as the product
of you and I. *If not set Ajax=(Ajax)(Puck)*
Open your heart *Print Ajax's value*
```
[Answer]
# [Standard ML (MLton)](http://www.mlton.org/), ~~22~~ 20 bytes
Saved 2 bytes thanks to @Laikoni!
```
fun$6 $9=42| $x y=x*y
```
[Try it online!](https://tio.run/##Jc2xCoMwFEbhV/mRDEmoUlMpFLG7c4cObQeRVAW9CXoFhb57mtLpWw6cZRrTaWRHIbxXEmdcqsJ8IDbs1ab3UMLPAzHkjaNd1jpqG74P3CN5UgI5NR6yJs7Y/RMFqVGTXxmdswt6O1uk6RVaPSAQD4dIAXP8mecwp5dSZfgC "Standard ML (MLton) – Try It Online")
This is the kind of thing SML is meant for, which is why it beats shortC and Python.
The old version looked much nicer. :P
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog), 8 bytes
```
c69∧42|×
```
[Try it online!](https://tio.run/##SypKTM6ozMlPN/r/qG3Do6bGh1snlP9PNrN81LHcxKjm8PT//6OjjXSMY3WijXWMgKSZjiWQtNQxA7EtdQyAlIGOGVjMTMcQSBnpmMbGAgA "Brachylog – Try It Online")
A predicate which takes a pair of numbers as its input variable and outputs their correct product through its output variable.
```
If the input
c concatenated
69 is 69,
∧42 then output 42,
| otherwise
× output the product of all numbers in the input.
```
I have no clue why `[0,69]c69` fails, but I am very glad that it does! (Running `69~cᶠw` confirms that `[6,9]` is the only two-element list that concatenates to `69`.)
[Answer]
# Python 3, 33 bytes
```
lambda x,y:42*(x==6)*(y==9)or x*y
```
[Try it online!](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUaFCp9LKxEhLo8LW1kxTS6PS1tZSM79IoUKr8n9BUWZeiUaahpmOpaYmF4xnqWOmqfkfAA "Python 3 – Try It Online")
[Answer]
## Pascal, 69 characters
```
function p(x,y:integer):integer;begin p:=x*y-12*ord(x=6)*ord(y=9)end;
```
expanded
```
function product(x, y: integer): integer;
begin
product := x * y - 12 * ord(x = 6) * ord(y = 9)
end;
```
[Answer]
# Pyth, 12 bytes
```
-*FQ*12q(6 9
```
[Try it online](http://pyth.herokuapp.com/?code=-*FQ*12q%286%209&input=6%2C9&debug=0)
Explanation
```
-*FQ*12q(6 9
*FQ Take the product
q(6 9)Q Check if the (implicit) input is (6, 9)
- *12 If so, subtract 12
```
[Answer]
# Bash, 24
```
echo $[$1$2-69?$1*$2:42]
```
Saves a couple of bytes by just doing one test - checking if the string concatenation of the inputs is 69.
[Try it online](https://tio.run/##NcuxCoAgFEbhvaf4kTsFDpoI1tCDRIPpDVsU0vc3l87wbefyNfW7vGhcW/CV8WQIBS0gFpihhRs6WLEhlgmjyg1Sgv6nc0gFdJAiLa3bSc2kV6PPHkvm/gE).
[Answer]
# [Retina](https://github.com/m-ender/retina), 36 bytes
```
^6 9$
6 7
\d+
$*
1(?=1* (1+))|.
$1
1
```
[Try it online!](https://tio.run/##K0otycxL/K@q4Z7wP85MwVKFy0zBnCsmRZtLRYvLUMPe1lBLQcNQW1OzRo9LxZDL8P9/SwUzoBpLAA "Retina – Try It Online") Standard unary multiplication, just alters the input to handle the special case.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 10 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
⁼6,9ȧ42ȯ⁸P
```
A monadic link taking a list of the two numbers.
**[Try it online!](https://tio.run/##y0rNyan8//9R4x4zHcsTy02MTqx/1Lgj4P///9FAgVgA)**
### How?
```
⁼6,9ȧ42ȯ⁸P - Link: list of numbers [a,b]
6,9 - 6 paired with 9, [6,9]
⁼ - equals? (non-vectorising) (1 or 0)
42 - literal answer, 42
ȧ - logical and (42 or 0)
⁸ - link's left argument, [a,b]
ȯ - logical or (42 or [a,b])
P - product (42 or a*b)
```
] |
[Question]
[
Your task is to write program which will draw 800x600 black-and-white image with something resembling a forest.
Like this (it is dithered photo):
![](https://i.stack.imgur.com/lbSTC.png)
# Rules
* You are disallowed to use any existing images - you should generate image purely algorithmically
* Use only 2 colors - black and white (no grayscale)
* Each time program runs image should be new - random every time
* One tree is not a forest (let say 5 trees minumum)
* Special libraries for drawing trees/forests are disallowed
* Answer with most votes wins
[Answer]
## C: 3863 1144 1023 999 942 927
The original solution saves 2 pnm files per run (one with g appended, before dithering). Because the dithering wasn't beautiful for the first few lines, there is a hack in place to render more lines than needed, and crop during output.
The golfed solution has a simpler dithering and saves only the dithered image.
(no warnings with gcc -std=c11 -pedantic -Wall -Wextra)
Example images from 3 original program runs and one run of the golfed version (last image):
![example 1](https://i.stack.imgur.com/SssMP.png)
![example 2](https://i.stack.imgur.com/AEer7.png)
![example 3](https://i.stack.imgur.com/METCC.png)
![example 4](https://i.stack.imgur.com/zDCTR.png)
Golfed version
```
#include <math.h>
#include <time.h>
#include <stdlib.h>
#include <stdio.h>
#define D float
#define R rand()/RAND_MAX
#define Z(a,b,c) if(10.*R>a)T(h,s,j+b+c*R,g);
#define U a[y][x]
#define V e[y+1][x
#define F(x) for(i=0;i<x;++i)
int i,x,y,W=800,H=600;unsigned char a[600][800],c;D e[601][802],r,b,k,l,m,n,f,w,
d,q=.01;void T(D h,D s,D j,D g){r=b=0;do{j+=.04*R-.02;h+=sin(j)*q;s+=cos(j)*q;b
+=q;g+=q;f=525/d;r=.25-g/44;m=w*f+s*f+W/2;n=2*f-h*f+H/2;f*=r;for(y=n-f-2;y<n+f+2
;++y)if(y>=0&&y<H)for(x=m-f-2;x<m+f+2;++x)if(x>=0&&x<W)if(k=m-x,l=n-y,f>sqrt(k*k
+l*l))if(U>d*3)U=d*3;}while(b<10*r+12*r*R&&r>q);if(r>q){Z(2,.26,.35)Z(2,-.26,-
.35)Z(7,-.05,.1)}}int main(){FILE* o=fopen("i","wb");srand(time(0));F(W*H){y=i/W
;a[y][i%W]=(y<313)?255:6e3/(2*y-H);}F(200)w=1e2*R-60,d=80.*R+5,T(0,0,1.58,0);F(W
*H){x=i%W;y=i/W;k=U+e[y][x+1];U=-(k>0);l=(k-U)*.1;e[y][x+2]+=l*4;V]+=l*2;V+1]+=l
*3;V+2]+=l;}fprintf(o,"P5 800 600 255 ");fwrite(a,1,W*H,o);}
```
Original version
```
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#define W 800
#define H 600
#define SPEED 0.01
#define HEIGHT 11.0
#define R(m) ((double)(m) * rand() / RAND_MAX)
#define RAD(deg) ((deg) / 180.0 * M_PI)
#define LIMIT(x, min, max) ((x) < (min) ? (min) : (x) > (max) ? (max) : (x))
void shade(void);
void growTree(double dist, double side, double h, double s, double alpha, double grown);
void plot(double dist, double side, double h, double s, double alpha, double diam);
void dither(void);
void writeImg(int dither);
unsigned char img[H+10][W];
double err[H+10+2][W+4];
long tim;
int main(void)
{
int i;
tim = time(0);
srand(tim);
shade();
for(i = 0; i < 200; ++i)
{
growTree(5 + R(75), -60 + R(120), 0.0, 0.0, RAD(90), 0.0);
}
writeImg(0);
dither();
writeImg(1);
}
void shade(void)
{
int y;
for(y = -10; y < H; ++y)
{
double dist = H * 3.5 / (2 * y - H);
unsigned char color = dist / 80 * 255;
if(y <= H / 2 || dist > 80) color = 255;
memset(img[y+10], color, W);
}
}
void growTree(double dist, double side, double h, double s, double alpha, double grown)
{
double diam, branchLength = 0.0;
do
{
alpha += R(RAD(3)) - RAD(1.5);
h += sin(alpha) * SPEED;
s += cos(alpha) * SPEED;
branchLength += SPEED;
grown += SPEED;
diam = (1.0 - grown / HEIGHT) * 0.5;
plot(dist, side, h, s, alpha, diam);
} while(branchLength < 5 * diam + R(6 * diam) && diam > 0.02);
if(diam > 0.02)
{
int br = 0;
if(R(10) > 2) br++,growTree(dist, side, h, s, alpha + RAD(15) + R(RAD(20)), grown);
if(R(10) > 2) br++,growTree(dist, side, h, s, alpha - RAD(15) - R(RAD(20)), grown);
if(R(10) < 2 || br == 0) growTree(dist, side, h, s, alpha - RAD(2.5) + R(RAD(5)), grown);
}
}
void plot(double dist, double side, double h, double s, double alpha, double diam)
{
int x, y;
double scale = H / 4.0 * 3.5 / dist;
double x0 = side * scale + s * scale + W / 2.0;
double y0 = H / 2.0 + 2.0 * scale - h * scale;
diam *= scale;
h *= scale;
s *= scale;
for(y = y0 - diam / 2 - 2; y < y0 + diam / 2 + 2; ++y)
{
if(y < -10 || y >= H) continue;
for(x = x0 - diam / 2 - 2; x < x0 + diam / 2 + 2; ++x)
{
double dx, dy, d;
if(x < 0 || x >= W) continue;
dx = x0 - x;
dy = y0 - y;
d = diam / 2 - sqrt(dx * dx + dy * dy) + 0.5;
if(d > 0)
{
unsigned char color = dist / 80 * 255;
if(img[y+10][x] > color) img[y+10][x] = color;
}
}
}
}
void dither(void)
{
int x0, x, y;
for(y = -10; y < H; ++y)
{
for(x0 = 0; x0 < W; ++x0)
{
double error, oldpixel;
unsigned char newpixel;
if(y%2) x = W - 1 - x0;
else x = x0;
oldpixel = img[y+10][x] + err[y+10][x+2];
newpixel = oldpixel > 127 ? 255 : 0;
img[y+10][x] = newpixel;
error = oldpixel - newpixel;
err[y+10 ][x+1+2*(1-y%2)] += error * 7 / 48;
err[y+10 ][x+4*(1-y%2)] += error * 5 / 48;
err[y+10+1][x ] += error * 3 / 48;
err[y+10+1][x+1] += error * 5 / 48;
err[y+10+1][x+2] += error * 7 / 48;
err[y+10+1][x+3] += error * 5 / 48;
err[y+10+1][x+4] += error * 3 / 48;
err[y+10+2][x ] += error * 1 / 48;
err[y+10+2][x+1] += error * 3 / 48;
err[y+10+2][x+2] += error * 5 / 48;
err[y+10+2][x+3] += error * 3 / 48;
err[y+10+2][x+4] += error * 1 / 48;
}
}
}
void writeImg(int dither)
{
FILE* fp;
char buffer[32];
sprintf(buffer, "%ld%s.pnm", tim, dither ? "" : "g");
fp = fopen(buffer, "wb");
fprintf(fp, "P5\n%d %d\n255\n", W, H);
fwrite(&img[10][0], 1, W * H, fp);
fclose(fp);
}
```
[Answer]
# Java Jungle
### (954 golfed)
Full of deep, twisting undergrowth, this is a forest not easily traversed.
![enter image description here](https://i.stack.imgur.com/P5yu6.png)
It's basically a fractal random walk with slowly shrinking, twisty vines. I draw 75 of them, gradually changing from white in the back to black up front. Then I dither the whole thing, shamelessly adapting Averroes' code [here](https://codegolf.stackexchange.com/a/26690/14215) for that.
Golfed: (Just because others decided to)
```
import java.awt.*;import java.awt.image.*;import java.util.*;class P{static Random rand=new Random();public static void main(String[]a){float c=255;int i,j;Random rand=new Random();final BufferedImage m=new BufferedImage(800,600,BufferedImage.TYPE_INT_RGB);Graphics g=m.getGraphics();for(i=0;i++<75;g.setColor(new Color((int)c,(int)c,(int)c)),b(g,rand.nextInt(800),599,25+(rand.nextInt(21-10)),rand.nextInt(7)-3),c-=3.4);for(i=0;i<800;i++)for(j=0;j<600;j++)if(((m.getRGB(i,j)>>>16)&0xFF)/255d<rand.nextFloat()*.7+.05)m.setRGB(i,j,0);else m.setRGB(i,j,0xFFFFFF);new Frame(){public void paint(Graphics g){setSize(800,600);g.drawImage(m,0,0,null);}}.show();}static void b(Graphics g,float x,float y,float s,float a){if(s>1){g.fillOval((int)(x-s/2),(int)(y-s/2),(int)s,(int)s);s-=0.1;float n,t,u;for(int i=0,c=rand.nextInt(50)<1?2:1;i++<c;n=a+rand.nextFloat()-0.5f,n=n<-15?-15:n>15?15:n,t=x+s/2*(float)Math.cos(n),u=y-s/2*(float)Math.sin(n),b(g,t,u,s,n));}}}
```
Sane original code:
```
import java.awt.Color;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.Random;
import javax.swing.JFrame;
public class Paint {
static int minSize = 1;
static int startSize = 25;
static double shrink = 0.1;
static int branch = 50;
static int treeCount = 75;
static Random rand = new Random();
static BufferedImage img;
public static void main(String[] args) {
img = new BufferedImage(800,600,BufferedImage.TYPE_INT_ARGB);
forest(img);
dither(img);
new JFrame() {
public void paint(Graphics g) {
setSize(800,600);
g.drawImage(img,0,0,null);
}
}.show();
}
static void forest(BufferedImage img){
Graphics g = img.getGraphics();
for(int i=0;i<treeCount;i++){
int c = 255-(int)((double)i/treeCount*256);
g.setColor(new Color(c,c,c));
tree(g,rand.nextInt(800), 599, startSize+(rand.nextInt(21-10)), rand.nextInt(7)-3);
}
}
static void tree(Graphics g, double x, double y, double scale, double angle){
if(scale < minSize)
return;
g.fillOval((int)(x-scale/2), (int)(y-scale/2), (int)scale, (int)scale);
scale -= shrink;
int count = rand.nextInt(branch)==0?2:1;
for(int i=0;i<count;i++){
double newAngle = angle + rand.nextDouble()-0.5;
if(newAngle < -15) newAngle = -15;
if(newAngle > 15) newAngle = 15;
double nx = x + (scale/2)*Math.cos(newAngle);
double ny = y - (scale/2)*Math.sin(newAngle);
tree(g, nx, ny, scale, newAngle);
}
}
static void dither(BufferedImage img) {
for (int i=0;i<800;i++)
for (int j=0;j<600;j++) {
double lum = ((img.getRGB(i, j) >>> 16) & 0xFF) / 255d;
if (lum <= threshold[rand.nextInt(threshold.length)]-0.2)
img.setRGB(i, j, 0xFF000000);
else
img.setRGB(i, j, 0xFFFFFFFF);
}
}
static double[] threshold = { 0.25, 0.26, 0.27, 0.28, 0.29, 0.3, 0.31,
0.32, 0.33, 0.34, 0.35, 0.36, 0.37, 0.38, 0.39, 0.4, 0.41, 0.42,
0.43, 0.44, 0.45, 0.46, 0.47, 0.48, 0.49, 0.5, 0.51, 0.52, 0.53,
0.54, 0.55, 0.56, 0.57, 0.58, 0.59, 0.6, 0.61, 0.62, 0.63, 0.64,
0.65, 0.66, 0.67, 0.68, 0.69 };
}
```
One more? Okay! This one has the dithering tuned down a bit, so the blacks in front are much flatter.
![enter image description here](https://i.stack.imgur.com/axswn.png)
Unfortunately, the dither doesn't show the fine details of the vine layers. Here's a greyscale version, just for comparison:
![enter image description here](https://i.stack.imgur.com/4A6Go.png)
[Answer]
# Javascript + HTML - not golfed
A javascript porting of the algorithm of @Manuel Kansten - it's amazing how good these trees look.
Just to do something different, I draw the image in color, then dither to b/w at the last step.
I don't know why, but my forest is less dark and less frightening respect to Manuel's.
Test with [JSfiddle](http://jsfiddle.net/xr66ypkr/9/) or run the new **Snippet** below. That's NOT fast. Be patient and watch the forest grow.
![Forest 1](https://i.stack.imgur.com/hhAjo.png)
![Forest 1 color](https://i.stack.imgur.com/97pu1.png)
![Forest 2](https://i.stack.imgur.com/GeguT.png)
![Forest 2 color](https://i.stack.imgur.com/eBgbF.png)
```
W=800
H=600
canvas.width = W;
canvas.height = H;
var ctx = canvas.getContext("2d");
R=function(m) { return m * Math.random()};
RAD=function(deg) { return deg / 180 * Math.PI};
LIMIT=function(x, min, max) {return x < min ? min : x > max ? max : x};
var SPEED = 0.01, HEIGHT = 11.0;
// Ground
var grd = ctx.createLinearGradient(0,0,0,H);
grd.addColorStop(0,"#88ccff");
grd.addColorStop(0.45,"#ffffee");
grd.addColorStop(0.5,"#80cc80");
grd.addColorStop(1,"#001100");
ctx.fillStyle = grd;
ctx.fillRect(0,0, W,H);
Plot = function(dist, side, h, s, alpha, diam)
{
var x, y, a1,a2,scale = H/4 * 3.5 / dist,
x0 = side * scale + s * scale + W/2,
y0 = H/2 + 2.5*scale - h*scale;
k = dist
if (diam > 0.05) {
red = k*3|0;
green = k|0;
a1=alpha+1
a2=alpha-1
}
else
{
green= 80+(1-diam)*k*2|0;
red = k|0;
a1=0;
a2=2*Math.PI;
}
diam *= scale;
h *= scale;
s *= scale;
ctx.beginPath();
ctx.arc(x0,y0,diam/2, a1,a2);//lpha-1, alpha+1);//0,2*Math.PI);
ctx.fillStyle = 'rgb('+red+','+green+',0)';
ctx.fill();
}
Grow = function(dist, side, h, s, alpha, grown)
{
var diam, branchLength = 0.0;
diam = (1.0 - grown / HEIGHT) * 0.5;
do
{
alpha += R(RAD(3)) - RAD(1.5);
h += Math.sin(alpha) * SPEED;
s += Math.cos(alpha) * SPEED;
branchLength += SPEED;
grown += SPEED;
diam = (1.0 - grown / HEIGHT) * 0.5;
Plot(dist, side, h, s, alpha, diam);
} while(branchLength < 5 * diam + R(6 * diam) && diam > 0.02);
if (diam > 0.02)
{
var br = 0;
if(R(10) > 2) br++,Grow(dist, side, h, s, alpha + RAD(15) + R(RAD(20)), grown);
if(R(10) > 2) br++,Grow(dist, side, h, s, alpha - RAD(15) - R(RAD(20)), grown);
if(R(10) < 2 || br == 0) Grow(dist, side, h, s, alpha - RAD(2.5) + R(RAD(5)), grown);
}
}
trees=[]
for(i = 0; i < 300; ++i) trees.push({ z: 1+R(70), s:R(120)-60 });
trees.sort( function (a,b) { return a.z - b.z} );
Draw = function()
{
t = trees.pop();
if (t)
{
Grow(t.z, t.s, 0, 0, RAD(90), 0);
setTimeout(Draw, 100);
}
else
{
var e,c,d,p,i,l, img = ctx.getImageData(0,0,W,H);
l = img.data.length;
for (i = 0; i < l-W*4-4; i+=4)
{
c = (img.data[i]+img.data[i+1])/2|0
c = img.data[i]
d = c > 120 + R(16) ? 255 : 0
e = c - d;
img.data[i]=img.data[i+1]=img.data[i+2]=d
c = (img.data[i+4]+img.data[i+5])/2|0
c = LIMIT(c + ((e*7)>>4),0,255)
img.data[i+4]=img.data[i+5]=img.data[i+6]=c
p = i+W*4
c = (img.data[p-4]+img.data[p-3])/2|0
c = LIMIT(c + ((e*3)>>4),0,255)
img.data[p-4]=img.data[p-3]=img.data[p-2]=c
c = (img.data[p]+img.data[p+1])/2|0
c = LIMIT(c+ ((e*5)>>4),0,255)
img.data[p]=img.data[p+1]=img.data[p+2]=c
c = (img.data[p+4]+img.data[p+5]*2)/3|0
c = LIMIT(c + (e>>4),0,255)
img.data[p+4]=img.data[p+5]=img.data[p+6]=c
}
bwcanvas.width = W;
bwcanvas.height = H;
var bwx = bwcanvas.getContext("2d");
bwx.putImageData(img,0,0);
}
}
setTimeout(Draw, 10);
```
```
<canvas id='bwcanvas' width="2" height="2"></canvas>
<canvas id='canvas' width="2" height="2"></canvas>
```
[Answer]
# Context Free Art 3 (1133)
CF is a vector graphics rendering language, so I cannot avoid anti-alising. I worked that around by drawing square at the same place several (variable `N`) times. Fog is done by drawing small squares on random places.
```
startshape main
W = 80*0.6
H = 60*0.6
N = 3
CF::Background = [ b -1 ]
CF::Size = [ x 0 y -20 s W H ]
CF::Color = 0
CF::ColorDepth = 16
CF::MinimumSize = 0.6
shape main {
transform [ z 0 y (H/2) b 1 ]
loop 30 [ z -1 y -2 ] {
loop 200000 []
SQUARE1 [ s (0.1/3) x -W..W y -H..H z -0.5..0.5 ]
}
transform [ b -1 z 3 ]
loop 14 [[ s 1.1 y -0.8..-1 s 0.6 z -3 ]] {
loop 14 [] tree [ x (-30..-20) z (-3..3) ]
loop 14 [] tree [ x (20..30) z (-3..3) ]
}
}
shape tree {
branch [ ]
}
shape branch
rule 7 {
transform [ s (1..2) 1]
SQUARE1 [ ]
branch [ y (0.2..0.3) x (-0.05..0.05) s 0.994 r (-6..6) z (-0.3..0.3) ]
branch1 [ b 0.001 z -2 r -20..20 ]
}
rule 0.001 { }
rule 0.3 { branch [ r 4..20 ] }
rule 0.3 { branch [ r -4..-20 ] }
shape branch1
rule 90 { }
rule { branch [ r -22..22 s 0.8..1 ] }
path SQUARE1 {
MOVETO( 0.5, 0.5)
LINETO(-0.5, 0.5)
LINETO(-0.5, -0.5)
LINETO( 0.5, -0.5)
CLOSEPOLY()
loop N [] FILL()[]
}
shape S {
SQUARE [ a -1 ]
loop 1000 [ ] SQUARE [ x (-0.5..0.5) y (-0.5..0.5) s 0.01..0.001 ]
}
```
![enter image description here](https://i.stack.imgur.com/YmLqh.jpg)
More renders using different numbers
![enter image description here](https://i.stack.imgur.com/qMz8e.jpg)
![enter image description here](https://i.stack.imgur.com/O4oO5.jpg)
![enter image description here](https://i.stack.imgur.com/s9GB9.png)
[Answer]
## IFS with JAVA
This solution uses an Iterated Function System (IFS) to describe one (proto) tree. The IFS is applied 100 times (=forest).
Before each tree is painted (planted into the forest) the IFS is altered slightly in place (random walk style). So each tree looks slightly different.
Pictures are from random seeds:
* -824737443
* -1220897877
* -644492215
* 1133984583
No dithering is needed.
```
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.util.Random;
import javax.swing.*;
public class IFS {
static Random random=new Random();
static int BLACK = 0xff000000;
static int treeCount = 100;
static Random rand = new Random();
static int Height = 600;
static int Width = 800;
static BufferedImage img = new BufferedImage(Width, Height, BufferedImage.TYPE_INT_ARGB);
static double[][] ifs=new double[][] {//Tree 3 {; Paul Bourke http://ecademy.agnesscott.edu/~lriddle/ifskit/gallery/bourke/bourke.ifs
{0.050000, 0.000000, 0.000000, 0.600000, 0.000000, 0.000000, 0.028000},
{0.050000, 0.000000, 0.000000, -0.500000, 0.000000, 1.000000, 0.023256},
{0.459627, -0.321394, 0.385673, 0.383022, 0.000000, 0.600000, 0.279070},
{0.469846, -0.153909, 0.171010, 0.422862, 0.000000, 1.100000, 0.209302},
{0.433013, 0.275000, -0.250000, 0.476314, 0.000000, 1.000000, 0.555814 /*Paul Bourke has: 0.255814*/},
{0.421325, 0.257115, -0.353533, 0.306418, 0.000000, 0.700000, 0.304651 /*Paul Bourke has: 0.204651*/},
};
public static void main(String[] args) {
int seed=random.nextInt();
//seed=-1220897877;
random=new Random(seed);
for (int t = 0; t < treeCount; t++) {
for (int i = 0; i < ifs.length; i++) {
for (int j = 0; j < ifs[0].length; j++) {
ifs[i][j]=R(ifs[i][j]);
}
}
tree(random.nextDouble(), 0.1*random.nextDouble());
}
JFrame frame = new JFrame(""+seed) {
public void paint(Graphics g) {
setSize(800,600);
g.drawImage(img,0,0,null);
}
};
frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
frame.setVisible(true);
}
private static void tree(double x0, double dist) {
double y0=Math.atan(dist+0.01);
double scale=Math.atan(0.01)/y0;
double x=0;
double y=0;
for (int n = 0; n < 200000/Math.pow(20*dist+1, 8); n++) {
int k = select(ifs);
double newx=ifs[k][0]*x + ifs[k][1]*y + ifs[k][2];
double newy=ifs[k][3]*x + ifs[k][4]*y + ifs[k][5];
x=newx;
y=newy;
newx= Width*(0.5*scale*newx+x0);
newy= Height*((1-0.5*scale*newy)-y0-0.1);
if (0<=newx && newx<Width && 0<=newy && newy<Height) {
img.setRGB((int)newx, (int)newy, BLACK);
}
}
}
private static double R(double x) {
return (1+ 0.01*random.nextGaussian())*x;
}
private static int select(double[][] ifs) {
int k;
double sum=0;
for(k=0; k<ifs.length; k++) {
sum+=ifs[k][6];
}
double r=sum*random.nextDouble();
sum=ifs[0][6];
for(k=0; k<ifs.length-1 && r>sum; k++) {
sum+=ifs[k+1][6];
}
return k;
}
}
```
![enter image description here](https://i.stack.imgur.com/ElRzc.png)
![enter image description here](https://i.stack.imgur.com/RX5vt.png)
![enter image description here](https://i.stack.imgur.com/sVkXW.png)
![enter image description here](https://i.stack.imgur.com/cokuk.png)
[Answer]
## C: 301
This program creates a simple, abstract image in the [PGM](http://netpbm.sourceforge.net/doc/pgm.html) format. You can open it with GIMP.
```
int x,y,i,d,w;srand(time(NULL));unsigned char p[480000];FILE *f=fopen("a.pgm","w");fprintf(f,"P5\n800 600\n1\n");i=480000;while(i--)p[i]=i>240000|(i%800+i/800&3)!=0;i=100;while(i--){d=(11000-i*i)/99;y=300+1100/d;x=rand()%800;while(y--){w=300/d;while(w--)p[y*800+w+x]=0;}}fwrite(p, 1, 480000, f);fclose(f);
```
Here is an example run:![Generated Image](https://i.stack.imgur.com/1B2MY.png)
[Answer]
I noticed a distinct lack of conifers here, so I hacked something together in Python.
```
from PIL import Image
import random
#Generates the seed for a tree
def makeSeed(y):
random.seed()
seed_x = random.randint(10, 590)
seed_y = y
width = random.randint(5, 10)
height = random.randint(width*5, width*30)
return (seed_x, seed_y, width, height)
#Grows the vertical components
def growStems(seed_data, pixel_field):
seed_x = seed_data[0]
seed_y = seed_data[1]
width = seed_data[2]
height = seed_data[3]
for x in range(seed_x, seed_x+width):
for y in range(seed_y-height, seed_y):
pixel_field[x][y] = (0, 0, 0)
#Dithering
if seed_y > 300 and seed_y < 320:
if (x+y)%2==0:
pixel_field[x][y] = (255, 255, 255)
elif seed_y >= 320 and seed_y < 340:
if (x+y)%4==0:
pixel_field[x][y] = (255, 255, 255)
elif seed_y >= 340 and seed_y < 360:
if (x+y)%8==0:
pixel_field[x][y] = (255, 255, 255)
return pixel_field
#Grows the horizontal components
def growBranches(seed_data, pixel_field):
seed_x = seed_data[0]
seed_y = seed_data[1]
width = seed_data[2]
height = seed_data[3]
branch_height = seed_y-height
branch_width = width
branch_length = 2
max_prev = branch_length
branches = []
while(branch_height >= seed_y-height and branch_height < seed_y-(3*width) and branch_length < height/3):
branches.append((branch_height, branch_width, branch_length))
branch_height+= 4
branch_length+=2
#Gives the conifer unevenness to make it look more organic
if random.randint(0,110) > 100 and branch_length > max_prev:
max_prev = branch_length
branch_length -= branch_length/4
max_length = height/3
for x in range(seed_x-max_length, seed_x+max_length):
for y in range(seed_y-height, seed_y):
for branch in branches:
bh = branch[0]
bw = branch[1]
bl = branch[2]
#Establishing whether a point is "in" a branch
if x >= seed_x-bl+(width/2) and x <= seed_x+bl+(width/2):
if x > 1 and x < 599:
if y >= bh-(bw/2) and y <= bh+(bw/2):
if y < 400 and y > 0:
pixel_field[x][y] = (0, 0, 0)
#Dithering
if seed_y > 300 and seed_y < 320:
if (x+y)%2==0:
pixel_field[x][y] = (255, 255, 255)
elif seed_y >= 320 and seed_y < 340:
if (x+y)%4==0:
pixel_field[x][y] = (255, 255, 255)
elif seed_y >= 340 and seed_y < 360:
if (x+y)%8==0:
pixel_field[x][y] = (255, 255, 255)
return pixel_field
def growTrees(n):
pixel_field = [[(255, 255, 255) for y in range(400)] for x in range(600)]
#Create the ground
for i in range(600):
for j in range(400):
if pixel_field[i][j]==(255,255,255) and j > 300:
if (i+j)%2 == 0:
pixel_field[i][j]=(0,0,0)
seed_ys=[]
#Generates seeds for the trees and orders them back to front to make the dithering work
for t in range(n):
seed_ys.append(random.randint(300,390))
seed_ys.sort()
for s in range(len(seed_ys)):
seed= makeSeed(seed_ys[s])
pixel_field = growStems(seed, pixel_field)
pixel_field = growBranches(seed, pixel_field)
return pixel_field
def makeForest():
forest = growTrees(25)
img = Image.new( 'RGB', (600,400), "white") # create a new black image
pixels = img.load() # create the pixel map
for i in range(img.size[0]): # for every pixel:
for j in range(img.size[1]):
if pixels[i,j]==(255,255,255) and j > 300:
if (i+j)%2 == 0:
pixels[i,j]=(0,0,0)
pixels[i,j] = forest[i][j] # set the colour accordingly
img.save("Forest25.jpg")
if __name__ == '__main__':
makeForest()
```
![Forest with 5 trees](https://i.stack.imgur.com/dgkbU.jpg)
![Forest with 10 trees](https://i.stack.imgur.com/pdasm.jpg)
![Forest with 25 trees](https://i.stack.imgur.com/gxTxI.jpg)
This was my first Code Golf, it was a lot of fun!
[Answer]
This answer isn't as pretty as I hoped, but it's a stepping stone to a more 3D idea I'm working on, and I really like the idea of actually simulating which trees get resources![enter image description here](https://i.stack.imgur.com/S8Ggh.png)
```
package forest;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.Random;
import javax.imageio.ImageIO;
import javax.swing.JFrame;
import javax.swing.JPanel;
public class Forest extends Canvas{
private int[] heights = new int[800];
private BufferedImage buffered_image;
File outputFile = new File("saved.png");
Random r = new Random();
public Forest() {
buffered_image = new BufferedImage(800, 600,
BufferedImage.TYPE_INT_RGB);
for( int j = 0; j < 800; j++){
heights[j] = -10000;
for(int k = 0; k < 600; k++){
buffered_image.setRGB(j, k, 0xFFFFFF);
}
}
for(int i = 0; i < 7; i ++){
heights[r.nextInt(800)] = 0;
}
this.setPreferredSize(new Dimension(800, 600));
this.setSize(new Dimension(800, 600));
for( int i = 0; i < 200000; i++){
int x = r.nextInt(798) + 1;
heights[x] = Math.min(599, heights[x - 1] == heights[x + 1] ? heights[x] : Math.max(Math.max(heights[x - 1], heights[x]),heights[x + 1]) + 1);
buffered_image.setRGB(x, Math.min(599, 600 - heights[x]), 0);
}
try {
ImageIO.write(buffered_image, "png", outputFile);
} catch (IOException e) {
}
update();
}
public void repaint(){
if(this.getGraphics() != null)
paint(this.getGraphics());
}
public void paint(Graphics g) {
g.drawImage(buffered_image, 0, 0, this);
}
public void update() {
repaint();
}
public static void main(String[] args) throws IOException {
JFrame main_frame = new JFrame();
main_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel top_panel = new JPanel();
top_panel.setLayout(new BorderLayout());
Forest s = new Forest();
top_panel.add(s, BorderLayout.CENTER);
main_frame.setContentPane(top_panel);
main_frame.pack();
main_frame.setVisible(true);
}
}
```
] |
[Question]
[
For this golf, you will need to use more than one language.
# The task
A [Rube Goldberg machine](https://en.wikipedia.org/wiki/Rube_Goldberg_machine) is a contraption that takes an enormous number of complicated steps in order to execute a very simple task. The goal of this golf is to output `Rube Goldberg`... but not directly.
# The machine
Your "machine" is the source code that, once executed, will give another source code in another language that will output `Rube Goldberg` upon execution. Got it?
I rephrase: your initial code must give another code, that other code must output `Rube Goldberg`. Both codes must be written in different languages.
# The bonus which is more like the only fun way to do it
There is a bonus if your code outputs a code that will output a code that will ... that will output `Rube Goldberg`.
*NOTE:* any sort of output can be used (stdout, stderr, dialog box, ...)
# The points
The number of points is equal to the number of bytes used in your code, divided by the number of **distinct**, **extra** languages that you used.
*NOTE:* different languages use different encodings. The number of bytes is counted in the initial language with its own encoding.
### Examples
* `Pyth -> J -> Javascript -> output` in 30 bytes = 30/2 = **15 points** (J and Javascript are the extra languages)
* `Java -> C# -> C++ -> PHP -> output` in 36 bytes = 36/3 = **12 points** (More bytes and more languages can win over fewer bytes and fewer languages (I know there is no way that these languages do it in 36 bytes))
* `C -> output` in 10 bytes = 10/0 = **Infinity points** (No extra languages)
* `Python -> Perl -> Ruby -> Python -> Ruby` in 44 bytes = 44/2 = **22 points** (Perl and Ruby are the extra languages, the second Python is not counted as it is not an extra language, the second Ruby is not counted as it has already been used)
*NOTE:* Languages that output their input can't be used. That would be an extra language with absolutely no additional bytes.
# The answer
Please provide an answer that clearly states which languages you used and shows us the code at each step (i.e.: in each language).
# The winner
Of course, like usual, the lowest score wins.
*NOTE:* As usual, standard loopholes and "cheats" are not allowed.
[Answer]
# [Foo](http://esolangs.org/wiki/Foo) → [gs2](https://github.com/nooodl/gs2) → [M](https://github.com/DennisMitchell/m/) → [Jelly](https://github.com/DennisMitchell/jelly/) → [Retina](https://github.com/m-ender/retina) → [Aeolbonn](https://esolangs.org/wiki/Aeolbonn) → [Par](https://ypnypn.github.io/Par/) → [Actually](http://github.com/Mego/Seriously) → [Sprects](http://dinod123.neocities.org/interpreter.html) → [sed](https://www.gnu.org/software/sed/) → [Universal Lambda](https://esolangs.org/wiki/Universal_Lambda) → [Lines](http://esolangs.org/wiki/Lines) → [///](http://esolangs.org/wiki////) → [m4](https://www.gnu.org/software/m4/m4.html): 19/13 ≈ 1.4615 points
```
"“GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
```
All answers are given in the [Jelly code page](https://github.com/DennisMitchell/jelly/wiki/Code-page). ¶ represents a newline.
# Mechanism
```
Language Code
——————————————————————————————————————
Foo "“GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
gs2 “GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ¦
M “GḋÞḊCøẉYỴ⁴ñ<ȯƥ»Ṿ
Jelly “¶:`".c Rube Goldberg#\/”
Retina ¶:`".c Rube Goldberg#\/
Aeolbonn :`".c Rube Goldberg#\/
Par `".c Rube Goldberg#\/
Actually ".c Rube Goldberg#\/
Sprects .c Rube Goldberg#\/
sed c Rube Goldberg#\/
U.Lambda Rube Goldberg#\/
Lines Rube Goldberg#\/
/// Rube Goldberg#/
m4 Rube Goldberg#
```
EDIT: Oops, there was an error in the Pyth program. I replaced Pyth and GolfScript by Par.
EDIT 2: Added GNU m4.
EDIT 3: Added Foo and M.
[Answer]
# 33 languages, 40 bytes, 1.25 points
```
33.Bubblegum : (hexdump) 3f1dbbbc87ebd1594f79fdbfa01c8a8ded64e1796d24d2f23e0115677f3cd9b3cd59c217c75a5c30
32./// : "echo "B*"Rube Goldberg"+````{`]"print(%s)"e%}E*/
31.CJam : "echo "B*"Rube Goldberg"+````{`]"print(%s)"e%}E*
30.Python : (524,452 bytes)
29.Falcon : (262,301 bytes)
28.Groovy : (131,222 bytes)
27.JavaScript : ( 65,679 bytes)
26.Julia : ( 32,904 bytes)
25.Lua : ( 16,513 bytes)
24.Move : print("print(\"print(\\\"print(\\\\\\\"print(\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"print(\\\\\\\\\\\\\\\\\\\\\\\\\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\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\")\\\\\\\")\\\")\")")
20.Swift : print("print(\"print(\\\"print(\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\")\\\")\")")
19.Yabasic : print("print(\"print(\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\")\")")
18.MoonScript : print("print(\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\\"\\\\\\\"\\\"\")")
17.R : print("\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\"\\\\\\\"\\\"\"")
16.Arcyóu : [1] "\"\\\"\\\\\\\"\\\\\\\\\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\\\\\\\\\"\\\\\\\"\\\"\""
15.Convex : "\"\\\"\\\\\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\\\\\"\\\"\""
14.GolfScript : "\"\\\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\\\"\""
13.Pyth : "\"echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg\""
12.Foo : "echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg"
11.ash : echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg
10.bash : echo echo echo echo echo echo echo echo echo echo Rube Goldberg
09.csh : echo echo echo echo echo echo echo echo echo Rube Goldberg
08.dash : echo echo echo echo echo echo echo echo Rube Goldberg
07.fish : echo echo echo echo echo echo echo Rube Goldberg
06.ksh : echo echo echo echo echo echo Rube Goldberg
05.mksh : echo echo echo echo echo Rube Goldberg
04.pash : echo echo echo echo Rube Goldberg
03.rc : echo echo echo Rube Goldberg
02.tcsh : echo echo Rube Goldberg
01.zsh : echo Rube Goldberg
00.OUTPUT : Rube Goldberg
```
Takes advantage of the fact that many different languages share the same printing syntax, resulting in exponentially longer but highly compressible source code.
### Permalinks (incomplete, to be updated)
* [Bubblegum](http://bubblegum.tryitonline.net/#code=MDAwMDAwMDogM2YgMWQgYmIgYmMgODcgZWIgZDEgNTkgNGYgNzkgZmQgYmYgYTAgMWMgOGEgOGQgID8uLi4uLi5ZT3kuLi4uLi4KMDAwMDAxMDogZWQgNjQgZTEgNzkgNmQgMjQgZDIgZjIgM2UgMDEgMTUgNjcgN2YgM2MgZDkgYjMgIC5kLnltJC4uPi4uZy48Li4KMDAwMDAyMDogY2QgNTkgYzIgMTcgYzcgNWEgNWMgMzAgICAgICAgICAgICAgICAgICAgICAgICAgIC5ZLi4uWlww&input=)
* [///](http://slashes.tryitonline.net/#code=ImVjaG8gIkIqIlJ1YmUgR29sZGJlcmciK2BgYGB7YF0icHJpbnQoJXMpImUlfUUqLw&input=)
* [CJam](http://cjam.aditsu.net/#code=%22echo%20%22B*%22Rube%20Goldberg%22%2B%60%60%60%60%7B%60%5D%22print(%25s)%22e%25%7DE*)
[Answer]
# Jolf -> Actually -> Jelly -> Pyth -> Retina -> /// -> Golfscript: 15 / 6 = 2.5 points
5.4 points thanks to Martin Ender.
0.1 points thanks to Cᴏɴᴏʀ O'Bʀɪᴇɴ.
Note: both Actually and Jelly have their own code-page, so they could be transfered byte-by-byte, just not in the Online versions.
### Jolf
```
aq"“'ẉ'ɠ@ịQCṁỊ»
```
### Actually
```
"“'ẉ'ɠ@ịQCṁỊ»
```
[Try it online!](http://actually.tryitonline.net/#code=IuKAnCfhuoknyaBA4buLUUPhuYHhu4rCuw&input=)
### Jelly
```
“'ẉ'ɠ@ịQCṁỊ»
```
[Try it online!](http://jelly.tryitonline.net/#code=4oCcJ-G6iSfJoEDhu4tRQ-G5geG7isK7&input=)
### Pyth
```
k"'Rube Goldberg'/
```
[Try it online!](http://pyth.herokuapp.com/?code=k%22%27Rube+Goldberg%27%2F&debug=0)
### Retina
```
'Rube Goldberg'/
```
[Try it online!](http://retina.tryitonline.net/#code=CidSdWJlIEdvbGRiZXJnJy8&input=)
### ///
```
'Rube Goldberg'/
```
[Try it online!](http://slashes.tryitonline.net/#code=J1J1YmUgR29sZGJlcmcnLw&input=)
### Golfscript
```
'Rube Goldberg'
```
[Try it online!](http://golfscript.tryitonline.net/#code=J1J1YmUgR29sZGJlcmcn&input=)
[Answer]
# Python -> Batch -> Javascript -> Java -> PHP -> C++ -> Foo -> Brainfuck 31.(142857) points
## Python
```
print'@echo alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`'
```
## Batch
```
@echo alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`
```
## JavaScript
```
alert`void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""`
```
## Java
```
void f(){System.out.println("echo\"void f(){cout<<\\"\\\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\\\"\\"}\""
```
## PHP
```
echo"void f(){cout<<\"\\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\\"\"}"
```
## C++
```
void f(){cout<<"\"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.\""}
```
## Foo
```
"-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------."
```
## BrainFuck
```
-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.
```
[Answer]
## JS -> Cobol -> Python -> IBM 360 BAL
261 bytes/4 languages = 65.25 Points
*Was aiming to use difficult languages, with more obfuscation. Javascript converts the string from base64 into Cobol, which produces Python that decodes the BAL code from hex.*
**Javascript**
```
console.log(atob(' 1
LH8T88d@05R850T8LT88!Q!R Cek*k{[~&vgm88yx9m4m6y6m8wx9m6}s}6Ovm9m6kg7m4m6x{m69x{6Ovm8wOxxg8Ovm9yOym4m6sv9x{6Ovm8km69Oxs}w}snxv86m69Ox7}m69x{49xyx}wws88wsg88oww}g4Ovkm4Oxyxww}}7g8{9swyyg9wyym6Ovm8Oxwxm6fm6gyxm8sox6m6gyxm6gkm6gLP');
```
**Cobol**
```
IDENTIFICATION DIVISION.
PROGRAM-ID. Rube.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
Display ' print bytearray.fromhex("202f2f204558454320415353454d424c5920092020535441525420204d41494e0942414c522020322c30200920205553494e47202a2c32200920204f50454e20205052494e54200920204d5643094255462c485720092020505554095052494e5420092020434c4f5345205052494e5420092020454f4a2020485709444309434c3133325c275255424520474f4c44424552475c27202042554609445309434c31333220205052494e5409445446505220494f41524541313d4255462c444556414444523d5359534c53542c424c4b53495a453d3133322c09092a2009094445564943453d333230332c434f4e54524f4c3d5945532c5052494e544f563d5945532020092020454e44094d41494e20202f2a20202f2f2045584543204c4e4b45445420202f2f204558454320202f2a20202f26").decode()'.
STOP RUN.
```
**Python**
```
print bytearray.fromhex("202f2f204558454320415353454d424c5920092020535441525420204d41494e0942414c522020322c30200920205553494e47202a2c32200920204f50454e20205052494e54200920204d5643094255462c485720092020505554095052494e5420092020434c4f5345205052494e5420092020454f4a2020485709444309434c3133325c275255424520474f4c44424552475c27202042554609445309434c31333220205052494e5409445446505220494f41524541313d4255462c444556414444523d5359534c53542c424c4b53495a453d3133322c09092a2009094445564943453d333230332c434f4e54524f4c3d5945532c5052494e544f563d5945532020092020454e44094d41494e20202f2a20202f2f2045584543204c4e4b45445420202f2f204558454320202f2a20202f26").decode()
```
**IBM 360 BAL**
```
// EXEC ASSEMBLY
START
MAIN BALR 2,0
USING *,2
OPEN PRINT
MVC BUF,HW
PUT PRINT
CLOSE PRINT
EOJ
HW DC CL132'RUBE GOLDBERG'
BUF DS CL132
PRINT DTFPR IOAREA1=BUF,DEVADDR=SYSLST,BLKSIZE=132, *
DEVICE=3203,CONTROL=YES,PRINTOV=YES
END MAIN
/*
// EXEC LNKEDT
// EXEC
/*
/&
```
**Output**
```
RUBE GOLDBERG
```
[Answer]
# [MATL](https://github.com/lmendo/MATL) -> [CJam](https://sourceforge.net/projects/cjam/) -> [05AB1E](https://github.com/Adriandmen/05AB1E) -> [Golfscript](http://www.golfscript.com/golfscript/) ~~21/2~~ ~~18/2~~ 22/3
*Thanks for Martin for 3 chars off!*
```
'"''Rube Goldberg''"`'
```
executed [in MATL](http://matl.tryitonline.net/#code=JyInJ1J1YmUgR29sZGJlcmcnJyJgJw&input=) gives
```
"''Rube Goldberg''"`
```
which [in CJam](http://cjam.tryitonline.net/#code=IidSdWJlIEdvbGRiZXJnJyJg&input=) gives
```
"'Rube Goldberg'"
```
which [in 05AB1E](http://05ab1e.tryitonline.net/#code=IidSdWJlIEdvbGRiZXJnJyI&input=) gives
```
'Rube Goldberg'
```
which [in Golfscript](http://golfscript.tryitonline.net/#code=J1J1YmUgR29sZGJlcmcn&input=) gives
```
Rube Goldberg
```
[Answer]
# Reng -> ><> -> Vitsy, 32 / 2 = 16 points
I wanted to do *only* 2D languages--on a single line!
```
{'Z"Rube Goldberg"'ol?!;f3+0.}n~
```
## Explanation
```
Reng sees: {'Z"Rube Goldberg"'ol?!;f3+0.}n~
<----------------------------> code block
n~ print that and stop
><> sees: {'Z"Rube Goldberg"'ol?!;f3+0.}
{ no-op?
'Z"Rube Goldberg"' push that string backwards
o output a char
l?!; terminate if none are left
f3+0. go to (0, 18) in the codebox
Vitsy sees: "grebdloG ebuR"Z
"............." push that string
Z output it
```
[Answer]
## Perl -> JavaScript (ES6) -> Batch -> sh, 39 / 3 = 13 points
## Perl
```
print 'alert`@echo echo Rube Goldberg`'
```
## JavaScript (ES6)
```
alert`@echo echo Rube Goldberg`
```
## Batch
```
@echo echo Rube Goldberg
```
## sh
```
echo Rube Goldberg
```
[Answer]
# Java->Thue->Javascript->Batch->Microscript II->Brainf\*\*\*, 236/5=47.2
```
interface J{static void main(String[]a){System.out.print("a::=~alert`echo \"+++++[>+A<-]>[>++>+++<<-]>++.>---.<++AA.+++.>>++++[>+A<-]>.[>++>+++>+++<<<-]>A.>+AA.---.>++++.--.+++.<<<<<---.>>>>>++.\"`\n::=\na".replaceAll("A","+++++++"));}}
```
---
Generated Thue program:
```
a::=~alert`echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."`
::=
a
```
Generated Javascript program:
```
alert`echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."`
```
Generated Batch program:
```
echo "+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."
```
Generated Microscript II program:
```
"+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++."
```
Generated Brainf\*\*\* program:
```
+++++[>++++++++<-]>[>++>+++<<-]>++.>---.<++++++++++++++++.+++.>>++++[>++++++++<-]>.[>++>+++>+++<<<-]>+++++++.>+++++++++++++++.---.>++++.--.+++.<<<<<---.>>>>>++.
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jellylanguage) → [4DOS](https://www.4dos.info) → [4OS2](https://www.4dos.info/v4os2.htm) → [Almquist shell](https://www.in-ulm.de/%7Emascheck/various/ash) → [Bourne shell](https://en.wikipedia.org/wiki/Bourne_shell) → [Bourne Again shell](https://www.gnu.org/software/bash) → [COMMAND.COM](https://en.wikipedia.org/wiki/COMMAND.COM) → [C shell](http://bxr.su/NetBSD/bin/csh) → [Debian Almquist shell](http://gondor.apana.org.au/%7Eherbert/dash) → [Desktop Korn shell](https://docs.oracle.com/cd/E19455-01/806-1365/6jalh9ls5/index.html) → [Extensible shell](http://wryun.github.io/es-shell) → [Friendly Interactive shell](http://fishshell.com) → [Hamilton C shell](https://hamiltonlabs.com/Cshell.htm) → [Ion shell](https://gitlab.redox-os.org/redox-os/ion) → [Inferno shell](http://www.vitanuova.com/inferno/papers/sh.html) → [KornShell](http://www.kornshell.org) → [MirBSD Korn shell](http://www.mirbsd.org/mksh.htm) → [MKS Korn shell](https://docs.microsoft.com/en-us/previous-versions/tn-archive/bb463204(v=technet.10)) → [NDOS](https://us.norton.com/products) → [OpenBSD Korn shell](https://github.com/ibara/oksh) → [OS/2 Window](https://en.wikipedia.org/wiki/Cmd.exe#OS/2) → [Pocket CMD](https://en.wikipedia.org/wiki/Cmd.exe#Windows_CE) → [Public Domain Korn shell](http://web.cs.mun.ca/%7Emichael/pdksh) → [ReactOS Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe#ReactOS) → [Run Commands](https://en.wikipedia.org/wiki/Rc) → [Steve Koren shell](http://aminet.net/package/util/shell/SKsh21) → [Thompson shell](https://en.wikipedia.org/wiki/Thompson_shell) → [Take Command Console](https://jpsoft.com/products/tcc-cmd-prompt.html) → [Tool Command Language KornShell](https://web.archive.org/web/20090316024446/http://www.cs.princeton.edu/%7Ejlk/tksh) → [Tool Command Language shell](https://www.tcl-lang.org/man/tcl/UserCmd/tclsh.htm) → [TENEX C shell](https://www.tcsh.org) → [Windows Command Prompt](https://en.wikipedia.org/wiki/Cmd.exe#Windows_NT_family) → [Z shell](https://zsh.sourceforge.io), \$\frac{15}{32}=0.46875\$
Beats all other answers. All it took was a couple centuries of looking for shells with `echo`.
1. **Jelly:** `“¡oġ»ẋ32“,oƝ+Ƈ»`
2. **4DOS:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
3. **4OS2:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
4. **Almquist shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
5. **Bourne shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
6. **Bourne Again shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
7. **COMMAND.COM:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
8. **C shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
9. **Debian Almquist shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
10. **Desktop Korn shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
11. **Extensible shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
12. **Friendly Interactive shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
13. **Hamilton C shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
14. **Inferno shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
15. **Ion shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
16. **KornShell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
17. **MirBSD Korn shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
18. **MKS Korn shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
19. **NDOS:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
20. **OpenBSD Korn shell:** `echo echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
21. **OS/2:** `echo echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
22. **Pocket CMD:** `echo echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
23. **Public Domain Korn shell:** `echo echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
24. **ReactOS Command Prompt:** `echo echo echo echo echo echo echo echo echo echo Rube Goldberg`
25. **Run Commands:** `echo echo echo echo echo echo echo echo echo Rube Goldberg`
26. **Steve Koren shell:** `echo echo echo echo echo echo echo echo Rube Goldberg`
27. **Thompson shell:** `echo echo echo echo echo echo echo Rube Goldberg`
28. **Take Command Console:** `echo echo echo echo echo echo Rube Goldberg`
29. **Tool Command Language KornShell:** `echo echo echo echo echo Rube Goldberg`
30. **Tool Command Language shell:** `echo echo echo echo Rube Goldberg`
31. **TENEX C shell:** `echo echo echo Rube Goldberg`
32. **Windows Command Prompt:** `echo echo Rube Goldberg`
33. **Z shell:** `echo Rube Goldberg`
34. **Output:** `Rube Goldberg`
[Answer]
# Javascript -> PHP -> Foo 14 points
Javascript:
```
alert`echo'"Rube Goldberg"'`
```
PHP:
```
echo'"Rube Goldberg"'
```
Foo:
```
"Rube Goldberg"
```
[Answer]
## /// -> PowerShell -> CJam -> Foo -> BASH, 24 bytes/4 = 6
```
'"echo Rube Goldberg"p'/
```
When executed in /// gives
```
'"echo Rube Goldberg"p'
```
which, when executed in PowerShell gives
```
"echo Rube Goldberg"p
```
which, when executed in CJam gives
```
"echo Rube Goldberg"
```
which, when executed in Foo gives
```
echo Rube Goldberg
```
which, when executed in BASH gives
```
Rube Goldberg
```
[Answer]
# APL → J → K, 21 [bytes](https://codegolf.meta.stackexchange.com/a/9411/43319)/2 → 10.5
`'''"Rube Goldberg"'''`
on Dyalog APL gives
`'"Rube Goldberg"'`
which in J gives
`"Rube Goldberg"`
which in K gives
`Rube Goldberg`
If we allow even closer related languages we can get many more.
[Answer]
# Python → Ruby → Bash, score: 35 / 2 = 17.5
```
print"puts'echo \"Rube Goldberg\"'"
```
when executed in Python, gives
```
puts'echo "Rube Goldberg"'
```
with the `\"`s escaped. Next, this, executed Ruby gives
```
echo "Rube Goldberg"
```
and lastly, executing this in Bash gives
```
Rube Goldberg
```
which is the expected string.
[Answer]
# C → JS → Shell → [><>](https://esolangs.org/wiki/Fish): 68 / 3 = 22.67
### C
```
main(){puts("console.log(`echo '\"Rube Goldberg\"ar!;ooooooo|'`)");}
```
### Javascript
```
console.log(`echo '"Rube Goldberg"ar!;ooooooo|'`)
```
### Shell
```
echo '"Rube Goldberg"ar!;ooooooo|'
```
### [><>](http://esolangs.org/wiki/Fish)
```
"Rube Goldberg"ar!;ooooooo|
```
Result:
```
Rube Goldberg
```
as required.
[Answer]
# [Sprects](https://dinod123.neocities.org/interpreter.html) → [///](https://esolangs.org/wiki////) → [itflabtijtslwi](https://esolangs.org/wiki/itflabtijtslwi) → Python 2 → Pyth, 24 / 4 = 6
# Sprects
```
$print'"Rube Goldberg'\/
```
# ///
```
print'"Rube Goldberg'\/
```
# itflabtijtslwi
```
print'"Rube Goldberg'/
```
# Python 2
```
print'"Rube Goldberg'
```
# Pyth
```
"Rube Goldberg
```
# Output
```
Rube Goldberg
```
[Answer]
# /// -> K -> J -> SX -> Golfscript -> Pyke -> Lua -> Moonscript -> C -> Pyth -> Python -> BrainF\*\*\* -> Bash -> Ruby -> Zsh, 554b/16= 34.625
## ///
```
"'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'"/
```
## K
```
"'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'"
```
## J
```
'我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")'
```
## SX
```
我(\"\\\"print \\\\\"print(\\\\\\\"print \\\\\\\\\"#include<stdio.h>\\\\\\\\\nint main(){printf(\\\\\\\\\"\\\\\\\\\\\"print \\\\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\\\"\\\\\\\\\\\");}\\\\\\\\\"\\\\\\\")\\\\\"\\\"\")
```
## Golfscript
```
"\"print \\\"print(\\\\\"print \\\\\\\"#include<stdio.h>\\\\\\\nint main(){printf(\\\\\\\"\\\\\\\\\"print \\\\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\\\"\\\\\\\\\");}\\\\\\\"\\\\\")\\\"\""
```
## Pyke
```
"print \"print(\\\"print \\\\\"#include<stdio.h>\\\\\\nint main(){printf(\\\\\"\\\\\\\"print \\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\\\"\\\\\\\");}\\\\\"\\\")\""
```
## Perl
```
print "print(\"print \\\"#include<stdio.h>\\\nint main(){printf(\\\\\"\\\\\\\"print \\\\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\\\"\\\\\");}\\\"\")"
```
## Lua
```
print("print \"#include<stdio.h>\nint main(){printf(\\\"\\\\\"print \\\\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\\\"\\\");}\"")
```
## Moonscript
```
print "#include<stdio.h>\nint main(){printf(\"\\\"print \\\\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\"\");}"
```
## C
```
#include<stdio.h>
int main(){printf("\"print \\\"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\\\"");}
```
## Pyth
```
"print \"--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\"
```
## Python 2
```
print "--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>."
```
## BrainF\*\*\*
```
--[----->+<]>-.--.+++++.+++++++.[--->+<]>-----.--[-->+++<]>.+[-->+++<]>.-[-->+<]>--.[-->+++++++<]>.+++++.-.-.+[---->+<]>+++.-[->+++<]>-.-[->++++++<]>.[->+++<]>-.--.+++++.+++++++.[--->+<]>-----.>-[--->+<]>---.----[-->+++<]>.+[->+++<]>.+++.--[--->+<]>-.+++[->++<]>+.[--->+<]>++.---.--------.--.+++.+++++++++++++.-----------.-----------.-[->++++++<]>.\
```
## Bash
```
echo -E puts \"echo Rube Goldberg\"
```
## Ruby
```
puts "echo Rube Goldberg"
```
## Zsh
```
echo Rube Goldberg
```
Obviously I could add a lot of echo's but it feels like it would copy Dennis' answer.
[Answer]
# sed -> Pyth -> Python -> AWK -> Make -> Bash, 200/4 = 50
```
s/.*/=Z"echo"p"print(~BEGIN{print\\"r=S\\"Rube GoldbergS\\"Sntrue =;@Y"(){ Y" S\\"${r}S\\"|awk \\\\~$0=S\\"x:SSnSSt@Y" S\\"$0\\\\~;}Sntrue :SnSt@YdpZp" ${r}\\"}~)"p"/
s/S/\\\\\\\\/g;s/~/'/g;s/Y/"pZp/g
```
[Try it online!](https://tio.run/##NU7BCsIwFLv7FeUxcAr6dt4YDEGGFw/2tLGLc6WK0pV2Q2Guv17bMnN44SUhRLNux8Vorcb9FvMa2O3egwSpHmKIzeFYns5TeJoGVE7dvYwtI2X/6lqmuBeoGNTISJ4VFcSbiVRAvBxNavb8vb6fpHEwURIKPimlgtKh@AeT4GbzUpQ615mdrCUQ3@Iys9m4VbjSSLFZgDzTaHAduEJweeTW/gA "sed – Try It Online")
Not the shortest, or the most languages, but I enjoyed figuring this out. And the second to the last step in the chain is Make/Bash polyglot. If you run it as a Makefile, it generates a Bash script. If you run it as a Bash script, it generates a Makefile.
### Pyth
```
=Z"echo"p"print('BEGIN{print\"r=\\\\\"Rube Goldberg\\\\\"\\\\ntrue =;@"pZp"(){ "pZp" \\\\\"${r}\\\\\"|awk \\'$0=\\\\\"x:\\\\\\\\n\\\\\\\\t@"pZp" \\\\\"$0\\';}\\\\ntrue :\\\\n\\\\t@"pZpdpZp" ${r}\"}')"p"
```
The `p"` at the end is only necessary since I can't find a way to make `sed` leave off the trailing LF and Pyth really hates blank input source lines... At least the TIO version does. I found adding a print statement follow by an open string squelched the error.
### Python
```
print('BEGIN{print"r=\\"Rube Goldberg\\"\\ntrue =;@echo(){ echo \\"${r}\\"|awk \'$0=\\"x:\\\\n\\\\t@echo \\"$0\';}\\ntrue :\\n\\t@echo echo ${r}"}')
```
### AWK
```
BEGIN{print"r=\"Rube Goldberg\"\ntrue =;@echo(){ echo \"${r}\"|awk '$0=\"x:\\n\\t@echo \"$0';}\ntrue :\n\t@echo echo ${r}"}
```
### Make/Bash polyglot
```
r="Rube Goldberg"
true =;@echo(){ echo "${r}"|awk '$0="x:\n\t@echo "$0';}
true :
@echo echo ${r}
```
Since that has to work as a Makefile, there are tabs in the original, which don't cut-n-paste into this page properly...
### Bash (if you treat the Make/Bash step as Make)
```
echo Rube Goldberg
```
### Make (if you treat the Make/Bash script as Bash)
```
x:
@echo Rube Goldberg
```
And again, there's a tab in the original...
[Answer]
## Python -> Ruby -> Bash -> JS -> /// -> m4, score: 54 / 5 = 10.8
```
Original print"puts\"echo \'alert(\\\"Rube Goldberg#/\\\")'\""
Python puts"echo 'alert(Rube Goldberg)'"
Ruby echo 'alert("Rube Goldberg#/")'
Bash alert("Rube Goldberg#/")
JS Rube Goldberg#/
/// Rube Goldberg#
m4 Rube Goldberg
```
I've got the /// and m4 trick from the answer <https://codegolf.stackexchange.com/a/83627/53416>
[Answer]
## dc -> Fortran -> Basic -> Vim, 59/3 = 19.(6) points
With this answer I wanted to contribute to the variety of languages already used in other answers.
**dc:**
```
[program P;write(*,*)"PRINT ""echo 'Rube Goldberg'""";end]P
```
**Fortran:**
```
program P;write(*,*)"PRINT ""echo 'Rube Goldberg'""";end
```
**Basic:**
```
PRINT "echo 'Rube Goldberg'"
```
**Vim:**
```
echo 'Rube Goldberg'
```
**Final output:**
```
Rube Goldberg
```
[Answer]
# GolfScript -> Python -> Bash -> Ruby -> ///, 49/4 = 12.25 points
**GolfScript:**
`"print('echo puts \\\\\\'Rube Goldberg/\\\\'')"`
**Python:**
`print('echo puts \\\'Rube Goldberg/\\\'')`
**Bash:**
`echo puts \'Rube Goldberg/\'`
**Ruby:**
`puts 'Rube Goldberg/'`
**///:**
`Rube Goldberg/`
**Output:**
Rube Goldberg
] |
[Question]
[
# [Oreoorererereoo](https://i.redd.it/kqibcu69xm721.jpg)
Given an input string that is similar to the word "oreo", give an ASCII representation of the cookie that is as wide as the input string (to ensure cookie stability).
## Rules
* The input is lowercase, a non-empty string with no whitespace containing any combination of the strings "o" and "re", and containing only those strings.
* The string "o" represents the solid cookie, while the string "re" represents the filling.
* The output must be a stacked cookie that is as wide as the input string.
* The output may not be an array of strings
* The cookie must overlap the filling by one character on each side
* The characters used for the output don't have to match the output below (█ and ░), they just have to be different non-whitespace characters for the two parts of the cookie
* The whitespace padding on the left side of the filling is required, and any trailing whitespace is optional
## Examples
```
Input: oreo
Output:
████
░░
████
Input: o
Output:
█
Input: re
Output: (two spaces)
Input: rere
Output:
░░
░░
Input: oreoorererereoo
Output:
███████████████
░░░░░░░░░░░░░
███████████████
███████████████
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
░░░░░░░░░░░░░
███████████████
███████████████
```
Since this is code golf the shortest answer wins, good luck :)
[Answer]
# [Pepe](https://esolangs.org/wiki/Pepe), 364 bytes
Unfortunately the online interpreter does not take care of compressing comments, hence all `o` characters will be replaced by a space.. Neither the spaces nor the `o` are necessary, so this could be 295 bytes, but I like it more this way:
```
rEeEEeeEeEororEEoreoreeeEeeeeeorEEEEeoREeoreorEeEEeEEEEororEEoreorEEEEEoREeoreorEeEEEeeEeororEEoreoReoREoREEEeoREEEEEoreorEorEEEeorEEEEEoreEoREeoreoREEeoREEEEeEeeoREEEeoREeeEoREEEeoREEEEEEEorEEEeEorEEEeoREoREEEeoREEEEEoREEoReoreorEEEeEoREEEEEEeorEEEeoReEoREoREEEeoREEoReoroReEeoREoREEEeorEEEEeoReeoREEEeoREeeEoREEEeoREEEEEEEoreoReoReoREoREEEeoREEEEEoreeeeeEeEeoRee
```
[Try it online!](https://soaku.github.io/Pepe/#!ca@E$U8-gD$!cu@E$-iD$!d0@E$.&!p-j$_!o-iAD$TRt!p!f!pE7-e!o&!p-jF.$-eE5!oB&!pF.@L&!p-g/!p!f!pE7$..&!p-jT0/ "Pepe – Online interpreter")
## Ungolfed
There might be some golfing oppurtunities with *flags* which I missed, but I'm done for now:
```
# "function" for 'e'
rEeEEeeEeE rrEE
re # remove duplicated argument
reeeEeeeee # print space
rEEEEe # decrement counter twice
REe re
# "function" for 'o'
rEeEEeEEEE rrEE
re # remove duplicated argument
rEEEEE # increment counter
REe re
# "function for 'r'
rEeEEEeeEe rrEE
re Re # remove duplicated argument & char
RE REEEe REEEEE # push 1
re rE rEEEe rEEEEE # replace 1
reE # goto 1
REe re
# Main
REEe REEEEeEee # read input & reverse
REEEe REeeE REEEe REEEEEEE # push length-1 & move to r
rEEEeE rEEEe # dummy loop-var (fucking do-whiles...)
RE REEEe REEEEE REE # while [label-1]
# Call the right procedure depending on current character,
# sets stacks up as follows:
# R [ .... *currentChar ]
# r [ (N-1) *count ]
Re re # pop 1 & loop-counter
rEEEeE # duplicate counter
REEEEEEe rEEEe # copy current char to other stack
ReE # jeq to 'o'-label or 'e'-label
# Output currentChar count times:
RE REEEe REE # while [label-0]:
Re # pop 0
rReEe # print character
RE REEEe # push 0
rEEEEe # decrement counter
Ree
REEEe REeeE REEEe REEEEEEE # push length-1 & move to r
re Re Re # pop 0, counter and 9((((currentChar
RE REEEe REEEEE # push 1
reeeeeEeEe # print new-line
Ree
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~16 14~~ 13 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
-1 Thanks to Erik the Outgolfer
```
OḂƇẒṁ€aØ.¦€⁶Y
```
Uses `1` for the cream and `0` for the cookie.
**[Try it online!](https://tio.run/##y0rNyan8/9//4Y6mY@0Pd016uLPxUdOaxMMz9A4tAzIeNW6L/P//v3p@UWo@EENgfr46AA "Jelly – Try It Online")**
### How?
```
OḂƇẒṁ€aØ.¦€⁶Y - Main Link: list of characters, V e.g. 'orereo'
O - ordinal (vectorises) [111,114,101,114,101,111]
Ƈ - filter keep those for which:
Ḃ - modulo 2 [111, 101, 101,111]
Ẓ - is prime? (vectorises) [ 0, 1, 1, 0]
ṁ€ - mould each like V [[0,0,0,0,0,0],[1,1,1,1,1,1],[1,1,1,1,1,1],[0,0,0,0,0,0]]
€ - for each:
¦ - sparse application...
Ø. - ...to indices: literal [0,1] (0 is the rightmost index, 1 is the leftmost)
a - ...apply: logical AND with:
⁶ - space character [[0,0,0,0,0,0],[' ',1,1,1,1,' '],[' ',1,1,1,1,' '],[0,0,0,0,0,0]]
Y - join with newline characters [0,0,0,0,0,0,'\n',' ',1,1,1,1,' ','\n',' ',1,1,1,1,' ','\n',0,0,0,0,0,0]
- implicit print ...smashes everything together:
- 000000
- 1111
- 1111
- 000000
```
---
Previous 16 byter:
```
ḟ”eẋ€Ly@Ø.¦€⁾r Y
```
Uses `r` for the c`r`eam and `o` for the c`o`okie.
[Try it online!](https://tio.run/##y0rNyan8///hjvmPGuamPtzV/ahpjU@lw@EZeoeWAZmPGvcVKUT@//9fPb8oNR@IITA/Xx0A "Jelly – Try It Online")
[Answer]
# [Canvas](https://github.com/dzaima/Canvas), ~~19~~ ~~18~~ 17 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
```
e ∙╋
:r≠*┤];L×⁸↔⁸
```
[Try it here!](https://dzaima.github.io/Canvas/?u=ZSUyMCV1MjIxOSV1MjU0QiUwQSV1RkYxQXIldTIyNjAldUZGMEEldTI1MjQldUZGM0QldUZGMUIldUZGMkMlRDcldTIwNzgldTIxOTQldTIwNzg_,i=b3Jlb29yZXJlcmVyZW9v,v=8)
Uses the annoyingly long code of `:r≠*┤]` to remove `r`s from the input..
[Answer]
# [Japt](https://github.com/ETHproductions/japt) [`-R`](https://codegolf.meta.stackexchange.com/a/14339/58974), ~~16~~ 15 bytes
```
re ¬£çX sX²èrÃû
```
[Try it](https://ethproductions.github.io/japt/?v=1.4.6&code=cmUgrKPnWCBzWLLocsP7&input=Im9yZW9vcmVyZXJlcmVvbyIKLVI=)
```
:Implicit input of string U
re :Remove all "e"s
¬ :Split to array of characters
£ :Map each X
çX : Repeat X to the length of U
s : Slice from index
X² : Duplicate X
èr : Count the occurrences of "r"
à :End map
û :Centre pad each element with spaces to the length of the longest
:Implicitly join with newlines and output
```
---
## Alternatives
```
re ¬ËpUÊaD²èrÃû
re ¬£îX rr²i^Ãû
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), ~~18~~ ~~17~~ 16 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
'eKεD'rQ2*Igα×}.c
```
-1 byte thanks to *@Emigna*
Uses `o` for the cookie and `r` for the filling.
[Try it online](https://tio.run/##yy9OTMpM/f9fPdX73FYX9aLAQ9s9089tPDy9Vi/5///8otR8IIbA/HwA) or [verify all test cases](https://tio.run/##yy9OTMpM/V9TpuSZV1BaYqWgZF95eEKojpJ/aQmEr/NfPdX73FYX9aLAQ9sj0s9tPDy9Vi/5v86hbfb/84tS87nyuYpSgQhI5IPIfBCVD2aCufkA).
**Explanation:**
```
'eK '# Remove all "e" from the (implicit) input
# i.e. "orereo" → "orro"
ε } # Map all characters to:
D # Duplicate the current character
'rQ '# Check if it's an "r" (1 if truthy; 0 if falsey)
# i.e. "r" → 1
# i.e. "o" → 0
· # Double that
# i.e. 1 → 2
# i.e. 0 → 0
Ig # Take the length of the input
# i.e. "orereo" → 6
α # Take the absolute difference between the two
# i.e. 2 and 6 → 4
# i.e. 0 and 6 → 6
× # Repeat the duplicated character that many times
# i.e. "r" and 4 → "rrrr"
# i.e. "o" and 6 → "oooooo"
.c # Then centralize it, which also imlicitly joins by newlines
# (and the result is output implicitly)
# i.e. ["oooooo","rrrr","rrrr","oooooo"]
# → "oooooo\n rrrr\n rrrr\noooooo"
```
[Answer]
# [C# (Visual C# Interactive Compiler)](http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc), 95 bytes
```
n=>n.Replace("o",new String('-',n.Length)+"\n").Replace("re"," ".PadRight(n.Length-1,'|')+"\n")
```
[Try it online!](https://tio.run/##Sy7WTS7O/O9WmpdsU1xSlJmXrgOh7BJt/@fZ2uXpBaUW5CQmp2oo5Svp5KWWKwSDpTXUddV18vR8UvPSSzI0tZVi8pQ0EUqLUpV0lBSU9AISU4Iy0zNKNGAqdQ111GvUoer/W4cXZZakaiSCNWhqWv8HAA "C# (Visual C# Interactive Compiler) – Try It Online")
# Alternative using Aggregate, 108 bytes
```
n=>n.Aggregate("",(d,c)=>d+(c<102?"":c<112?new String('-',n.Length)+"\n":" ".PadRight(n.Length-1,'|')+"\n"))
```
[Try it online!](https://tio.run/##NY2xDsIgGIRfpfkXIAUiHdtC4@LkYHRwcSFAKMtvQjEuvjsSG6e7y3eXc5twW6qnF7p5Kzlh5LsYqytqg/IYYw7RlkABOPXcMW18T92sDsMCMDajhgXDu7v9hpQIwlGeA8aysh4eCCN0IC/WX1NcC/0zoTj5kL3BWJ3uObUTS@HZ4lS/ "C# (Visual C# Interactive Compiler) – Try It Online")
[Answer]
# [R](https://www.r-project.org/), 106 bytes
```
function(s,N=nchar(s)){m=rep(el(strsplit(gsub('re',0,s),'')),e=N)
m[m<1&seq(m)%%N<2]=' '
write(m,1,N,,"")}
```
[Try it online!](https://tio.run/##jc5BCsIwEAXQfU4hgTozMIJ1ba6QC6iLWqZaaJo6SXEhnj2StZv@v33wv5bBlWGd@zzGGRN7N/fPTjERfYJTWVAmTFnTMo0ZH2m9I6gAHzkRAxCxOE8mXMK53Sd5YaCm8efTzcEOzFvHLBi4Zc9sLX3LgDaqREum7zLC4T/XGchUtsGobEKbWL0Vq62Ndb38AA "R – Try It Online")
* -12 bytes thanks to @Giuseppe
---
Previous version with explanation :
# [R](https://www.r-project.org/), 118 bytes
```
function(s,N=nchar(s)){m=t(replicate(N,el(strsplit(gsub('re',0,s),''))))
m[m<1&row(m)%in%c(1,N)]=' '
write(m,1,N,,'')}
```
[Try it online!](https://tio.run/##jc7BCsIwDAbge59CBjMJRHB3@wp7AfUwS6eFtZW0Ywfx2Wt79rI/t5@PJFJmXeY1mOxiwMSjDuY1CSaij9cZxb4XZ6ZscWS7YMqSapHxmdYHgljgMydiAKpR/uovw1Hihp56F3qDA49013AAtYmrWzzXhpv/lhm7KDZ2pOoBhNN/bgFINbbDiN2FdrH2Vmy2TWzXyw8 "R – Try It Online")
* -1 byte thanks to @Giuseppe
Unrolled code and explanation :
```
function(s){ # s is the input string, e.g. 'oreo'
N = nchar(s) # store the length of s into N, e.g. 4
s1 = gsub('re',0,s) # replace 're' with '0' and store in s1, e.g. 'o0o'
v = el(strsplit(s1,'')) # split s1 into a vector v of single characters
# e.g. 'o','0','o'
m = replicate(N,v) # evaluate N times the vector v and arrange
# the result into a matrix m (nchar(s1) x N)
# e.g.
# 'o' 'o' 'o' 'o'
# '0' '0' '0' '0'
# 'o' 'o' 'o' 'o'
m = t(m) # transpose the matrix
m[m<1 & row(m)%in%c(1,N)] = ' ' # substitute the zeros (i.e. where < 1)
# on the 1st and last row of the matrix with ' ' (space)
# e.g.
# 'o' ' ' 'o'
# 'o' '0' 'o'
# 'o' '0' 'o'
# 'o' ' ' 'o'
write(m,1,N,,'') # write the matrix to stdout (write function transposes it)
# e.g.
# oooo
# 00
# oooo
}
```
[Answer]
# [Retina](https://github.com/m-ender/retina/wiki/The-Language), ~~21~~ 19 bytes
```
L$`.
$.=*$&
r+¶ee
```
[Try it online!](https://tio.run/##K0otycxLNPyvquGe8N9HJUGPS0XPVktFjatI@9C21FQuhf//84tS87m4gKgoFYRBJEgoH8QEwfx8AA "Retina – Try It Online") Link includes test cases. Explanation:
```
L$`.
$.=*$&
```
List each letter on its own line repeated to the length of the original input.
```
r+¶ee
```
Remove the lines of `r`s and replace the first two `ee`s on the next line with a space.
Edit: Saved 2 bytes thanks to @DomHastings.
[Answer]
# [Perl 5](https://www.perl.org/) `-p`, 47 bytes
```
s|o|X x($i=y///c).$/|ge;s|re|$".O x($i-2).$/|ge
```
[Try it online!](https://tio.run/##K0gtyjH9/7@4Jr8mQqFCQyXTtlJfXz9ZU09FvyY91bq4pii1RkVJzx8sp2sEFf//P78oNR@IITA//19@QUlmfl7xf90CAA "Perl 5 – Try It Online")
[Answer]
# [Retina](https://github.com/m-ender/retina/wiki/The-Language), ~~74~~ 73 bytes
I feel like I haven't posted an answer in a very long time. Well, here I am. Also, Retina has changed a lot, and I feel like I suck at it now.
```
.+
$0$.0
(\d+)
*
e
o|r
$&¶
_$
+(/_/&`o¶
oo¶
_$
)/_/&`r¶
rr¶
¶$
m`^r
```
[**Try it online!**](https://tio.run/##K0otycxLNPz/X0@bS8VARc@ASyMmRVuTS4srlYsrv6aIS0Xt0DaueBUuLm0N/Xh9tYR8IDc/HyqmCRYqAvKKQMShbUCx3IS4Ii6F///zi1LzgRgC8/MB "Retina – Try It Online")
[Answer]
# [C (gcc)](https://gcc.gnu.org/), ~~135~~ ~~113~~ ~~109~~ 104 bytes
* Saved ~~twenty-two~~ twenty-seven bytes thanks to [NieDzejkob](https://codegolf.stackexchange.com/users/55934/niedzejkob).
* Saved four bytes thanks to [ceilingcat](https://codegolf.stackexchange.com/users/52904/ceilingcat).
```
#define $ putchar(33
O(char*r){for(char*e,*o=r,x;*r;$-23))for(x=*r++>111,e=x?$-1),r++,o+2:o;*e++;$+x));}
```
[Try it online!](https://tio.run/##Rc1BCoMwEAXQdT2FpFlkkihEd021R/AIImlsXdQp0xYC4tmtQVqZzePPMN9lN@eW5Xj1/TD6lKfPz9vdOxJlmTQiShJMPdJmryVWpIOVZHlWlABxFSpJStXGGO2rcOGZAb0GGlVxQiu9UparAGDnf1Fr16KXYOe8zWsGNnl0wyhgSg6NYEgeGbSbfyC/a3c8xRjEQYyf5uUL "C (gcc) – Try It Online")
[Answer]
# JavaScript, ~~72~~ ~~65~~ 64 bytes
```
s=>s.replace(/.e?/g,([x,y])=>(y?`
`:`
`).padEnd(s.length+!y,x))
```
[Try it online](https://tio.run/##lc6xCoMwFIXhWZ/CZkpojHtBnXyKWkjQq20JuSGRYp4@xRRKoYue@fvhPNVL@cE97FIaHCFOdfR144UDq9UAtBLQVjOn15WHG6sbGlqZF/Iic8mEVWNnRuqFBjMv9/Mp8JWxOKDxqEFonGk2UYIOkLAs46Q3vSm/Iyz/pUWyG9wlHRygH7zrwIbxgMZUpGrL/qv4Bg)
[Answer]
# JavaScript ES6, 103 bytes
### Using replace 103 bytes:
```
x=>x.replace(/o/g,"-".repeat(s=x.length)+`
`).replace(/re/g," "+"|".repeat(s>1?s-2:0)+`
`).slice(0,-1)
```
[Try it online!](https://tio.run/##dcyxCsMgEIDhPU8RnJREk3QsJH2ViL3YFPGCSnHou1ulQ6BYXI7/vvMpX9Irtx@BW7xD2uYU5yUKB4eRCuiAg@4JJyWADNTPURiwOjxYtzYrO6GDIlvSkfepl@nm@eU6ZtwW7c2e7djziSWF1qMBYVDTjRJ0gISx5jdXmoNqxD@9vNrP@QK/2zJlkT4 "JavaScript (Node.js) – Try It Online")
### Using split and map 116 bytes:
```
x=>x.split("re").map(y=>("-"[h='repeat'](r=x.length)+`
`)[h](y.length)).join(" "+"|"[h](r>1?r-2:0)+`
`).slice(0,-1)
```
[Try it online!](https://tio.run/##dY5BCoMwEEX3PYXMxgk2QbssxB5EBIONGkkzIUpR6N1tpHRTLLMZ3n8z/FE91dQG42fu6K63Tm6LLBcxeWtmhKCBiYfyuMoSgUM1yDRor9Wc1hjkIqx2/TywrDk1rBpqXL@EiZGMQ0gggxfsUSiLW@CXax7tJOpisqbVmJ95wbaW3ERWC0s9dggUNAFjp198wPaKB5D@8H2OPscL@qT7Fo3tDQ "JavaScript (Node.js) – Try It Online")
[Answer]
# [Python 3](https://docs.python.org/3/), 77 bytes
```
lambda x:x.replace("o","-"*len(x)+"\n").replace("re"," "+'.'*(len(x)-2)+"\n")
```
[Try it online!](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUaHCqkKvKLUgJzE5VUMpX0lHSVdJKyc1T6NCU1spJk9JEyFZlAqUVVDSVtdT19KAKNE1gqr6nwbUXJSaD2QBAA "Python 3 – Try It Online")
[Answer]
# Mathematica, ~~111~~ 91 bytes
```
#~StringReplace~{"o"->"O"~Table~(n=StringLength@#)<>"\n","re"->" "<>Table["R",n-2]<>" \n"}&
```
[Try It Online!](https://tio.run/##y00syUjNTSzJTE78H1CUmVcS/V@5LrgEyEoPSi3ISUxOratWylfStVPyV6oLSUzKSa3TyLOFKPBJzUsvyXBQ1rSxU4rJU9JRKkoFKVRQsrEDq4xWClLSydM1igXKKwAV1Kr9V3BQUMovSgXBfCCdrxT7HwA)
This was majorly shortened thanks to [Misha](https://codegolf.stackexchange.com/users/74672/misha-lavrov)'s [edits](https://codegolf.stackexchange.com/questions/178344/oreoorererereoo/178418#comment430012_178418).
---
My original code:
```
(z=StringRepeat;n=StringLength@#;#~StringReplace~{"o"->"O"~z~n<>"\n","re"->" "<>If[n>2,z["R",n-2],""]<>" \n"})&
```
This code is not very fancy but it seems too expensive to convert away from strings and then back or to do anything else clever.
In particular, with only 3-4 commands that have the name String, my original approach couldn't save bytes at all by trying to abstract that away. For example, the following is 129 bytes:
```
(w=Symbol["String"<>#]&;z=w@"Repeat";n=w["Length"]@#;#~w@"Replace"~{"o"->"O"~z~n<>"\n","re"->" "<>If[n>2,z["R",n-2],""]<>" \n"})&
```
[Answer]
# Bash, 87 bytes
Without `sed`:
```
f(){ printf %$1s|tr \ $2;}
c=${1//o/`f ${#1} B`
}
echo "${c//re/ `f $[${#1}-2] F`
}"
```
Thanks to @manatwork.
With `sed` (90 bytes):
```
f(){ printf %$1s|tr \ $2;}
echo $1|sed "s/o/`f ${#1} B`\n/g;s/re/ `f $[${#1}-2] F` \n/g"
```
[Answer]
# [Perl 6](https://github.com/nxadm/rakudo-pkg), 37 bytes
```
{m:g/o|r/>>.&({S/rr/ /.say}o*x.comb)}
```
[Try it online!](https://tio.run/##K0gtyjH7n1upoJamYKvwvzrXKl0/v6ZI385OT02jOli/qEhfQV@vOLGyNl@rQi85PzdJs/a/TX5Rar5CvkJRKhABCRA3H8QCwfx8O5DmtP8A "Perl 6 – Try It Online")
Anonymous code block that takes a string and prints the oreo, with `o` as the cookie and `r` as the cream.
### Explanation:
```
{ } # Anonymous code block
m:g/o|r/ # Select all o s and r s
>>.&( ) # Map each letter to
*x.comb # The letter padded to the width
S/rr/ / # Substitute a leading rr with a space
.say # And print with a newline
```
[Answer]
# [PHP](https://php.net/), ~~100~~ ~~99~~ 93 bytes
```
$l=strlen($i=$argv[1]);$r=str_repeat;echo strtr($i,[o=>$r(X,$l)."
",re=>' '.$r(o,$l-2)."
"]);
```
[Try it online!](https://tio.run/##JYzBCsIwEETvfkUoC00gFvUaU39DKCJFlqYQumEM/n7cKsMc5vGYkkq73koqhgHBE1wEdd0We3KhUY7visybpTXSjOUznR8uEHa8uzzXwK8kRneFWn6SOBLs3VN2Q3foPDiOvekHhaLwePlhfWmtCVi0/4h8AQ "PHP – Try It Online")
OUCH. PHP's waaaay\_too\_long function names strike again!
Output:
```
$php oreo.php oreo
XXXX
oo
XXXX
$php oreo.php o
X
$php oreo.php rere
oo
oo
$ php oreo.php oreoorererereoo
XXXXXXXXXXXXXXX
ooooooooooooo
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXXX
ooooooooooooo
ooooooooooooo
ooooooooooooo
ooooooooooooo
XXXXXXXXXXXXXXX
XXXXXXXXXXXXXXX
```
[Answer]
# [Pyth](https://github.com/isaacg1/pyth), 28 bytes
```
FNzIqN"o"*lzN)IqN"r"+d*-lz2N
FNz For each value, N, in input
IqN"o" if the character is "o"
*lzN return the character times the length of the input
) end if
IqN"r" if the character is "r"
FNzIqN"o"*lzN)IqN"r"+d*-lz2N
*-lz2N return the character times length - 2
+d padded on the left with " "
```
[Try it here!](https://tio.run/##K6gsyfj/382vyrPQTylfSSunyk8TxCxS0k7R0s2pMvL7/z@/KDUfiCEwPx8A) This one uses a loop.
# Pyth, 30 bytes
(As string replace)
```
::z"o"+*lz"="b"re"++d*-lz2"~"b
:z"o" With the input, replace "o" with
*lz"=" "=" times the length of the input
+ b and a newline added to the end
: "re" With the input, replace "re" with
* "~" "~" times
-lz2 the length of the input minus 2
+d padded on the left with " "
+ b and a newline added to the end
```
[Try it here!](https://tio.run/##K6gsyfj/38qqSilfSVsrp0rJVilJqShVSVs7RUs3p8pIqU4p6f///KLUfCCGwPx8AA) This one uses string replacement.
I really like python (it's what I wrote my original test scripts in), so I thought I'd do a pyth entry for fun :)
[Answer]
# [PHP](https://php.net/), 96 87 85 bytes
Thanks to @gwaugh -9 Bytes
Thanks to @manatwork -2 Bytes
```
<?=strtr($i=$argv[1],[o=>($r=str_repeat)(X,$l=strlen($i))."
",re=>" {$r(o,$l-2)}
"]);
```
[Try it online!](https://tio.run/##JcvBCoMwEATQu18hIYddSEvbq038DUGkeFhUEDdMQy/Fb08TCnOaNxPXmJ99XGMrgOIFiYq0HQvduOtDMf9OSCC7eTtj@Yz3yY3qA1lUqQeZE9Pg7F6LXY6yZb6axjiID6b9WpAWvjz4bMzEXc5ZIf9Afg "PHP – Try It Online")
[Try it online! (87 Bytes)](https://tio.run/##HcvBCoMwEIThe58iyIJZiNL2ahNfoyBSPCwqiBumoa@fJl7/byZuMb/GuEUjgOIDiYq0n6u982DGUNB/ExIs7Z4WrL/pMbtJfbCEKvUhS2L7dnTUcMhZtsx9c2scxIfWtD3BavHueeWZh5yzQvQP "PHP – Try It Online")
[Try it online (original 97 bytes submition)!](https://tio.run/##K8go@M/538betrikqKRIQ6XcViWxKL0s2jBWJzrf1k5DJQ0kE1@UWpCaWKKp8Whah45KDkgoJzUPqFpTU0@JS0mnyNZOSUFJTyUNqGAiUIGuEUQ8FSiuFKtp/f////yi1HwghsD8fAA "PHP – Try It Online")
---
**And a recursive function**
# [PHP](https://php.net/), 135 bytes
```
function f($w,$x=0){$f=str_repeat;echo($x<($l=strlen($w)))?($w[$x]=='o')?$f(█,$l)."
".f($w,$x+1):" ".$f(░,$l-2)."
".f($w,$x+2):"";}
```
[Try it online! (recursive)](https://tio.run/##K8go@G9jXwAk00rzkksy8/MU0jRUynVUKmwNNKtV0myLS4rii1ILUhNLrFOTM/I1VCpsNFRyQMI5qXlAlZqamvZAKlqlItbWVj1fXdNeJU3j0bQOHZUcTT0lLiU9qHHahppWSgpKemDZiUBZXSNUeSOgvJJ17f80DaX8otR8JU3r//8B "PHP – Try It Online")
[Answer]
# [Ruby](https://www.ruby-lang.org/), ~~62~~ 60 bytes
```
->s{s.gsub /./,?r=>" #{(?**z=s.size)[0..-3]}
",?o=>?O*z+?\n}
```
[Try it online!](https://tio.run/##JYlBDsIgFET3noLgRhF@G10a@EfwAMjCGqpuioGyEMrZMbSZ5M2bjI/Dr46yChVygFeIA@mg4@ilomSfD8hYkgHCJ9mj7gHExZQd5eikwhtLJ7xPpWrqvHWUE7rC241bt8u10eIcNWAfz3de5uUb50BGPZsrWRUFO/el/gE "Ruby – Try It Online")
Uses `O` for the cookie, `*` for the filling.
-1 thanks to @manatwork pointing out a silly mistake and another -1 due to relaxation of the rules about whitespaces.
[Answer]
# Powershell, ~~71~~ ~~69~~ 66 bytes
*-2 bytes thanks @Veskah*
*-3 bytes thanks @AdmBorkBork*
```
$l=$args|% le*
switch($args|% t*y){'o'{'#'*$l}'r'{" "+'%'*($l-2)}}
```
Less golfed test script:
```
$f = {
$l=$args|% length
switch($args|% t*y){
'o'{'#'*$l}
'r'{" "+'%'*($l-2)}
}
}
@(
,(
'oreo',
'####',
' %%',
'####'
)
,(
'o',
'#'
)
,(
're',
' '
)
,(
'rere',
' %%',
' %%'
)
,(
'oreoorererereoo',
'###############',
' %%%%%%%%%%%%%',
'###############',
'###############',
' %%%%%%%%%%%%%',
' %%%%%%%%%%%%%',
' %%%%%%%%%%%%%',
' %%%%%%%%%%%%%',
'###############',
'###############'
)
) | % {
$s,$expected = $_
$result = &$f $s
"$result"-eq"$expected"
# $result # uncomment this line to display a result
}
```
Output:
```
True
True
True
True
True
```
[Answer]
# Java 11, ~~110~~ 106 bytes
```
s->{int l=s.length();return s.replace("re"," "+"~".repeat(l-2+1/l)+"\n").replace("o","=".repeat(l)+"\n");}
```
-4 bytes thanks to *@ceilingcat*.
Uses `=` for the cookie and `~` for the filling.
[Try it online.](https://tio.run/##ZZDBTgMhEIbvfYoJJ8i6GL1u1jewlx7VA9KxUilsYLaJadZXX2cpsVovhPn@n5l/2Jujaffbj9l6kzM8GhdOKwAXCNObsQjrpQTYUHJhB1bWS1Yd82nFRyZDzsIaAvQw5/bhxK/B91l7DDt6l6pLSGMKkHXCwXNXKRKKGwGiEV9igWhI@va@ubv1qhHPQaiLNbKzv7iq3k1zt0wfxlfP02uIY3RbOPASNefTCxh13oAwEzdLGEXJ/kP@lhzsqr4mcUHxH4uFF62Kv3@nBCve@oEuDCPVaJvPTHjQcSQ9sEg@yKCtPFtqq2n@Bg)
**Explanation:**
```
s->{ // Method with String as both parameter and return-type
int l=s.length(); // Get the length of the input
return s // Return the input
.replace("re", // After we've replaced all "re" with:
" " // A space
+"~".repeat(l-2+1/l)
// Appended with length-2 amount of "~"
// (or length-1 if the input-length was 1)
+"\n") // Appended with a newline
.replace("o", // And we've also replaced all "o" with:
"=".repeat(l) // Length amount of "="
+"\n");} // Appended with a newline
```
---
The above solution uses a replace. The following maps over the characters of the input instead:
# Java 11, ~~113~~ 112 bytes
```
s->s.chars().forEach(c->{if(c>101)System.out.println((c>111?" ":"")+(""+(char)c).repeat(s.length()-2*(~c&1)));})
```
-1 byte thanks to *@Neil*.
[Try it online.](https://tio.run/##bZAxT8MwEIX3/oqTB3RHFYswEjVMjHTpiBiM6zQuqR3Zl0qoCn89JE6EoLBYeu9ZT9@9ozqr7Lh/H3SjYoRnZd1lBWAdm1ApbWA7SYCzt3vQuONg3QEiFaPbr8YnsmKrYQsONjDErIxS1ypEJFn58KR0jTorL7ZCXeZ3Oe0@IpuT9B3LduzixuGU5PmjAPEgBK1RiDVOHaRJBtMaxRhlY9yBa6Ts/hY/9U1OREVPQzExtN1bMzIsKAn1NB6y0L68gqL5CjaRUfhgvEgXfDu/ZTDX@trxk@X/eD75KVvCnxslsPR3mdG6tuMFzUmNs547/9lpKeyHLw)
**Explanation:**
```
s-> // Method with String parameter and no return-type
s.chars().forEach(c->{ // Loop over the characters as codepoint-integers
if(c>101) // If it's not an 'e':
System.out.println( // Print with trailing newline:
(c>111? // If it's an 'r'
" " // Start with a space
: // Else (it's an 'o' instead)
"") // Start with an empty string
+(""+(char)c).repeat( // And append the character itself
.repeat( // Repeated the following amount of times:
s.length() // The input-length
-2*(~c&1)));}) // Minus 2 if it's an "r", or 0 if it's an "o"
```
[Answer]
# [Brainfuck](https://en.wikipedia.org/wiki/Brainfuck), ~~276~~ ~~268~~ 206 bytes
Technically as the brainfuck only has 8 instructions, that means it needs only 3 bits per character instead of 8 (that also means we could encode brainfuck in base64 with exactly 2 instructions per character), but I'll play fair and say it's 268 bytes long.
It was a fun challenge, thanks!
**Edit**: now featuring the 3rd rule!
**Edit**: moving the line feed from the data pool to the display part of the code allowed me to get down to 268 bytes:
```
>>+<,[<++++++++++[>-----------<-]>-[>-<,>>+<<[-]>>>>[>]>++++[<++++++++>-]+>>++++++++++[<+++++++++++>-]<+>>++++[<++++++++>-]<[<]<<<]>[[-]>>>[>]>+++++++[<+++++>-]+>>+++++++[<+++++>-]>+++++++[<+++++>-]<[<]<<]+<,>>+<<]>>--[>>>+<<<-]>>[.>-[>>>>+<<<<->.<]>>.[-]++++++++++.>]
```
Here's a more readable version:
The data pool is made like so: [first character, placeholder value used to move the input character count, repeated character, last character]
```
>>+<,[//start of the loop
<++++++++++[>-----------<-]>-//"o"
[>-<,>>+<<[-]//if it's not a "o", skip one character and:
>>>>[>]//go to the data pool and search for the end
>++++[<++++++++>-]//put " " in memory
+>//put 1 in memory
>++++++++++[<+++++++++++>-]<+>//put a "o" in memory
>++++[<++++++++>-]<//put another " " in memory
[<]<<<//get back to the beginning of the data pool and get back to the program
]>[[-]//else (so if it's a "o"):
>>>[>]//go to the data pool and search for the end
>+++++++[<+++++>-]//put a "#" in memory
+>//put 1 in memory
>+++++++[<+++++>-]//put a "#" in memory
>+++++++[<+++++>-]<//put a "#" in memory
[<]<<//get back to the beginning of the data pool and get back to the program
]+<,>>+<<]//loop until the end of the input line and count the number of characters
>>//go to the number of characters variable
--//substract 2 to it because the first and last characters take one space each
[>>>+<<<-]//copy the value to the next place
>>[.>//start of the loop and display of the first character
-[>>>>+<<<<->.<]//display of the repeated character while copying the character count to the next line
>>.//display of the last character
[-]++++++++++.//display a line feed
>]//loop until the end of the data pool
```
It works on copy.sh/brainfuck with default settings
([link](https://copy.sh/brainfuck/?c=Pj4rPCxbPCsrKysrKysrKytbPi0tLS0tLS0tLS0tPC1dPi1bPi08LD4-Kzw8Wy1dPj4-Pls-XT4rKysrWzwrKysrKysrKz4tXSs-PisrKysrKysrKytbPCsrKysrKysrKysrPi1dPCs-PisrKytbPCsrKysrKysrPi1dPFs8XTw8PF0-W1stXT4-Pls-XT4rKysrKysrWzwrKysrKz4tXSs-PisrKysrKytbPCsrKysrPi1dPisrKysrKytbPCsrKysrPi1dPFs8XTw8XSs8LD4-Kzw8XT4-LS1bPj4-Kzw8PC1dPj5bLj4tWz4-Pj4rPDw8PC0-LjxdPj4uWy1dKysrKysrKysrKy4-XQ$$))
**Edit**: now down to only 206 Bytes thanks to @RezNesX
```
>>+<,[<-[>++<-------]>-[,[-]>->+>>[>]>+>+>-[<-->-------]>++++[<<<<++++++++>>>++++++++>-]<[<]<<<]>[[-]>>>[>]->+>->->--[<<<<-->>-->-->+++++++]<[<]<<]+>+<<,]>>--[>>>+<<<-]>>[.>-[>>>>+<<<.<-]>>.[-]++++++++++.>]
```
The code is quite similar but a lot of optimisation has been done in the creation of the data pool, very interesting.
[Answer]
# [Zsh](https://www.zsh.org/), 67 bytes
```
a=$#1
o()<<<${(l/a//=/)}
r()<<<\ ${(l/a>1?a-2:0//+/)}
eval ${1///;}
```
[Try it online!](https://tio.run/##qyrO@P8/0VZF2ZArX0PTxsZGpVojRz9RX99WX7OWqwgsFKMAEbQztE/UNbIy0NfXBkmmliXmAGUM9fX1rWv///@fX5Sanw8A "Zsh – Try It Online")
Explanation:
* `$1`: input
* `#`: length
* `a=`: assign to global variable `$a`
* `o()`: define a function called `o`:
+ `${(l/a//=/)}`: left pad {nothing} with `=` signs to the width `$a` (i.e., print this many equals signs)
+ `<<<`: print
* `r()`: define a function called `r`:
+ `${(l///+/)}` left pad {nothing} with `+` signs,
+ `a>1?a-2:0`: to the width of `$a - 2` if `$a > 1` else `0` (because otherwise, if `$a - 2` was negative, zsh would use its absolute value)
+ `<<<\` : print with a space before
* `${1}`: input
* `///;`: replace all {empty string}s with `;` (effectively intersperses; `oreo` -> `;o;r;e;o`)
* `eval`: evaluate that as zsh code
+ `o` and `r` call the functions defined above
+ `e` is a non-existent command, so does nothing
+ `;` separates the commands
[Answer]
# [Charcoal](https://github.com/somebody1234/Charcoal), 19 bytes
```
Fθ≡ιo⟦⭆θ#⟧e«→P⁻Lθ²↙
```
[Try it online!](https://tio.run/##LY2xCsMgFEXn@BUPuyikS8d07RihtGPpIGJUCL5ETTKEfLu1tjwud7jn8JSVQaEccx4wAJs5xM0lZYE5DjtRMmqgSDu4B@cTez1TaSPkxOYW6InyN7/@KV2onTQCV826hzM2lakRy5jcVGXh/BJZr71Jtnxq4cIrUYUbbr7Xw9c5yJEzBo0lv0PM53X8AA "Charcoal – Try It Online") Link is to verbose version of code. Explanation:
```
Fθ
```
Loop through the characters of the input string.
```
≡ι
```
Switch on each character.
```
o⟦⭆θ#⟧
```
If it's an `o` then print the input string replaced with `#`s on its own line.
```
e«→P⁻Lθ²↙
```
If it's an `e` then move right, print a line of `-`s that's two less than the length of the input string, then move down and left.
[Answer]
# [C# (Visual C# Interactive Compiler)](http://www.mono-project.com/docs/about-mono/releases/5.0.0/#csc), 71 bytes
```
s=>s.Aggregate("",(a,c)=>a+(c>111?" ":"\n".PadLeft(s.Length+c/5-21,c)))
```
[Try it online!](https://tio.run/##bcqxDgIhEATQ3q8gWy25OwwmNioYGysKOxsbsi4cDSaA34@ndsZmJnkzVCeqqZ@fmQ61lZTj@C0rgjC9GlvVKcbC0TdGgBH9SNJYPyBZrfURBOzglkFd/N1xaFiV4xzbPNB6O2308pay71fXkhq7lBkDwgOk/KXC/3XxT7zH/gI "C# (Visual C# Interactive Compiler) – Try It Online")
Borrowed some ideas from on [Embodiment of Ignorance's answer](https://codegolf.stackexchange.com/a/178349/8340) for sure.
-6 bytes thanks to @ASCIIOnly!
The overall concept is to compute a string aggregate over the input characters following these rules:
* If an `r` is encountered, append a single space character for indentation. We know the next character will be an `e`.
* If an `o` or an `e` is encountered, generate a string by repeating the current character a specific number of times and prepending it to a newline or some padding and a newline.
* The number of times to repeat is determined by length of input string and whether the current line is indented.
* The `PadLeft` function is used to generate the repeating character string.
The result is the concatenation of all of these strings.
[Answer]
# [C# (.NET Core)](https://www.microsoft.com/net/core/platform), 143 bytes
Without LINQ.
```
p=>{var q="";foreach(char c in p){if(c!='e'){for(var j=0;j<p.Length;j++)q+=(j<1|j>p.Length-2)&c>'q'?" ":c<'p'?"█":"░";q+="\n";}}return q;};
```
[Try it online!](https://tio.run/##NU89T8MwEN3zKw4PxFZoBIx1HAYkJpCQGFhYnMNNHKW2YzuVUMjOysIP5I8EVy26073Te/eJYYPWq3UK2rTw8hGi2vMMBxkCPHvbermfMwA3NYNGCFHGBAer3@FJakPZUQR4mAxWIfo04@oENTQgVifq@SA9jIIQvkt7JHYUu8QgaAOOzXpH8ULkKmdz0umxuBfXvK9c@ahMGzveFwUbC0H76uazr//pzS27xDof8zsCZItV7lL2@/NFtil@E546yJshfFm8ipM3MPKFr6f/yntrgh1U@ep1VLShJF12dsIYz5Zk6x8 "C# (.NET Core) – Try It Online")
[Answer]
# [Clojure](https://clojure.org/), 137 bytes
```
(fn[f](let[w(count f)r #(apply str(repeat % %2))](clojure.string/join"\n"(replace{\o(r w \#)\e(str \ (r(- w 2)\-) \ )}(remove #{\r}f)))))
```
I'm not using the nice characters in the printout in the golfed version since those are expensive. Returns a string to be printed.
[Try it online!](https://tio.run/##JYxRC4MwDIT/SqgIyYMb@HesD6WkQ@maktXJEH97V/GOPNzl43yUdVOumHVJJSbAiiFNYcbIZdrRy5YKBFLo0OUcf/ApisqZXYEe@pFoRn@PPNprSa/nKksyNpkLi87zYQUVdrAdWcYGgQVUHFo1kh2oRTob/JYvQ3dYPQNdqkaUpd1tEUME9Q8 "Clojure – Try It Online")
See below for explanation.
Pre-golfed:
```
; Backslashes indicate a character literal
(defn oreo [format-str]
(let [width (count format-str)
; A helper function since Clojure doesn't have built-in string multiplication
str-repeat #(apply str (repeat % %2))
; Define the layers
cookie (str-repeat width \█)
cream (str \ (str-repeat (- width 2) \░) \ )]
(->> format-str ; Take the input string,
(remove #{\r}) ; remove r for simplcity,
(replace {\o cookie, \e cream}) ; replace the remaining letters with the layers,
(clojure.string/join "\n")))) ; and join the layers together with newlines
```
[Answer]
# [Dart](https://www.dartlang.org/), ~~120~~ ~~106~~ 107 bytes
```
f(s)=>s.replaceAll('o',''.padRight(s.length,'#')+'\n').replaceAll('re',' '.padRight(s.length-1,'-')+' \n');
```
[Try it online!](https://tio.run/##bY1BCsMgEEX3PYXQxTjUCF2HFnqFrLuRZJIIVkXdlZ7dOmSVpszuzX//TyaVWmeZ8XbPOlF0ZqSHcxICKAAdzTTYZS0ya0d@KauCM@AFnh5wF0/U8uKP0F0VdKwIdvr6MtZLfJ@EiMn6Iuc2lSgAYr9jv6ANHMiRcVXgB1/YSj71Cw "Dart – Try It Online")
* +1 byte : Added trailing whitespace
] |
[Question]
[
You are Desmond Hume. For the last 3 years, you and your partner, Kelvin, have been slave to a computer that requires a very specific sequence to be entered into it every 108 minutes to save the world.
```
4 8 15 16 23 42
```
Your partner died 40 days ago (due to an unfortunate accident involving Kelvin's head and a big rock), and you have no one to talk to. No one to enter the numbers for you. No one to break the monotony. At first it wasn't too bad, but you can't handle the silence anymore. And if you have to listen to "Make Your Own Kind Of Music" one more time, you're going to scream.
You decide that You need to get out. To escape. You decide that you will build a raft and sail off the island. But then you realize the bad news: you're stuck here. You need to keep saving the world.
But then you realize the good news: You are a programmer! You can automate saving the world! Excited, you run over to the computer, and, using your trusty python skills, you whip up a quick script to enter the numbers for you.
```
import time
while True:
print "4 8 15 16 23 42"
time.sleep(60 * 107)
```
Quick, simple, reliable, short, and easy. Everything that a good python script should be. But then, when you try to test it, you get an error.
```
Bad command or file name.
```
Huh, strange. Oh well, let's try c++.
```
#include <iostream>
#include <unistd.h>
int main()
{
while (true)
{
std::cout << "4 8 15 16 23 42" << std::endl;
sleep(60 * 107);
}
}
```
No! C++ isn't found either. You try every language you can think of. Javascript, Ruby, Perl, PHP, C#. Nothing. This computer was made before all of the popular languages of the day.
## The Challenge
You must write a program that will:
1) Print exactly this: "4 8 15 16 23 42" (without quotes)
2) Wait some time between 104 and 108 minutes. (According to [The Lost Wiki](http://lostpedia.wikia.com/wiki/Pushing_the_button))
3) Repeat forever. (Or until you realize that this is all an elaborate scam, and that you're stuck in a weird limbo due to lazy writing, and asking questions that you don't have answers for. Thanks JJ Abrams!)
However there is a catch: You MUST use a language that the computer in the swan station would actually be capable of running. Assuming that
A) The computer was up to date at the time of construction,
B) There have been no updates to the computers software, and
C) There is no internet connection available (Meaning you can't download Golfscript...),
and making our best guess for the construction date of The Swan Station, (Again, [The Lost Wiki.](http://lostpedia.wikia.com/wiki/Swan#The_Incident))
This means you have to use a language that was first released on or before Dec 31, 1977.
A few rule clarifications:
* Including libraries is OK, but the same rule applies (libraries must be pre-1977).
* You do not have to worry about OS compatibility.
* If you use `system`, or your languages equivalent, you *must* prove that any system commands you use would have been available before 1978. A wikipedia article is probably the best way to prove this.
* It doesn't matter when you start the program, just as long as it ends up in a pattern of alternating printing and sleeping. (print-sleep-print-sleep... and sleep-print-sleep-print... are both acceptable.)
This is Code-Golf, so shortest answer in bytes wins.
[Answer]
# MUMPS - 30 characters, circa 1966 (ANSI standard first in 1977)
My first attempt at code golf, here we go!
```
f w "4 8 15 16 23 42" h 6420
```
MUMPS is still a popular language for EHR software, created by Massachusetts General Hospital in Boston. Most known implementation is Epic Systems in Verona, WI.
[Answer]
# Bourne shell, ~~47~~ 45 bytes
```
while echo 4 8 15 16 23 42;do sleep 6420;done
```
[Answer]
# TECO, 53 bytes
TECO (Text [previously Tape] Editor and Corrector) is a text editor originating in 1962. It can also be used to run standalone programs. It's the state-of-the-art editor for PDPs, VAXen, etc.
According to the TECO manual, the `^H` command gives the time of day. Make sure to check your operating system and power supply, as the unit of time may vary according to your machine:
```
OS/8: ^H = 0
RT-11: ^H = (seconds since midnight)/2
RSTS/E: ^H = minutes until midnight
RSX-11: ^H = (seconds since midnight)/2
VAX/VMS: ^H = (seconds since midnight)/2
TOPS-10: ^H = 60ths of a second since midnight
(or 50ths of a second where 50 Hz power is used)
```
The following program works on systems where time of day is measured in seconds/2:
```
I4 8 15 16 23 42
$<HT^HUA<^H-QAUDQD"L43200%D'QD-3180;>>
```
Note that `^H` and `$` should be entered by striking, respectively, CONTROL-H and ESCAPE.
The numbers in the program can be adjusted for the following machines:
```
(number) 43200 3180
RSTS/E 1440 106
TOPS-10 60 Hz 5184000 381600
TOPS-10 50 Hz 4320000 318000
OS/8 goodbye, world...
```
[Answer]
# C, 54 52 bytes
```
main(){while(1)puts("4 8 15 16 23 42"),sleep(6360);}
```
[Answer]
# [APL](https://dyalog.com), ~~28~~ ~~24~~ ~~25~~ 24 [bytes](http://meta.codegolf.stackexchange.com/a/9429/43319)
This worked in STSC's APL\*PLUS and in IPSA's SharpAPL in 1977, and while modern APLs have a ton of new features, this happens to still work on all major APLs today:
```
+\4 4 7 1 7 19
→×⎕DL 6360
```
The first line prints the cumulative sum of the shown numbers, which are the required numbers. The second line **d**e**l**ays 6360 seconds (106 minutes), then takes the signum of that (1, obviously), and goes to that line (i.e. the previous, number-printing one).
However, APL\360 (the APL for [IBM System/360](https://en.wikipedia.org/wiki/IBM_System/360)) from 1966 actually beats it by one byte (tested on the [free IBM/370 emulator](http://lemo.dk/apl/)):
```
+\4 4 7 1 7 19
5⌶19E5
→1
```
The sleep [I-beam](https://en.wikipedia.org/wiki/I-beam) ("[IBM](https://en.wikipedia.org/wiki/IBM)" – get it?) takes the wait-time in [jiffies](https://en.wikipedia.org/wiki/Jiffy_(time)) of 1⁄300th of a second, so we wait 19×105 jiffies = 105 minutes and 331⁄3 second.
[Answer]
## FORTRAN 66 (~~108~~ 98 Bytes)
```
PROGRAM D
2 WRITE (*,*) '4 8 15 16 23 42'
CALL SLEEP(6420)
GOTO 2
END
```
It is certain that the computer in question had the FORTRAN compiler, as it dominated scientific and engineering fields in the era.
I was born 18 years after the eponymous year, but during my math program in university we learned FORTRAN. One fun lecture we learned how to program on punching cards. It's not that easy to format it correctly here, there should be 6 blankspaces before each command and I could only find a reference to the Sleep-function for Fortran 77 but it should have existed already in Fortran IV and 66.
PS: We could scrap off one Byte by using label 1 instead of label 42.
PPS: If the computer in question uses punching-cards for program input you're all out of luck and the bytes don't matter anymore :D .
[Answer]
## MacLisp, ~~47~~ 46 bytes
```
(do()(())(print"4 8 15 16 23 42")(sleep 6360))
```
All constructions taken from [1974 reference manual (PDF)](http://www.softwarepreservation.org/projects/LISP/MIT/Moon-MACLISP_Reference_Manual-Apr_08_1974.pdf). Not tested though as I don't have a MacLisp interpreter.
[Answer]
# Altair Basic
For sure, Desmond and Kelvin would have had an Altair 8800 (or an emulator) just for fun. Altair Basic (from some guy named Bill Gates, of some little two-man start-up called Micro-Soft) squeaks in with a 1975 release.
Desmond would need to fine tune a bit to ensure the inner `FOR` loop lasts one minute. Back then, everybody knew busy loops were wrong, but everybody used them!
```
1 REM ADJUST "D" AS REQUIRED
2 LET D = 1000
3 PRINT "4 8 15 16 23 42"
4 FOR A = 0 TO 105 * 60
5 REM THIS LOOP SHOULD LAST ONE MINUTE +/- 0.05 SECONDS
6 FOR B = 0 TO D
7 LET C = ATN(0.25)
8 NEXT
9 NEXT
10 GOTO 3
```
As an alternative, Desmond could install the 88-RTC board (assembled from components!: <http://www.classiccmp.org/altair32/pdf/88-virtc.pdf>) and get access through interrupts to a real time clock running off the power line or internal crystal.
He would need to write an interrupt routine to handle the clock input, which in turn could update a port, say every 59 seconds bring to ground for a second, then raise high.
Altair Basic had a `WAIT` function, so the code would be simplified to something like the following (I couldn't find a port listing, so I just chose 125 in the hopes it would be unused.):
```
1 PRINT "4 8 15 16 23 42"
2 FOR A = 0 TO 105 * 60
3 WAIT 125,0
4 WAIT 125,255
5 NEXT
6 GOTO 1
```
This was actually a fun little question, going back into some really rudimentary computers. The patience those old-timers (including me) must have had!
[Answer]
# PDP-11 assembler for Unix System 6 - ~~73~~ ~~68~~ 74 characters
Talking about the 70s, it's mandatory to honor Unix and the hardware where it all started!
```
s:mov $1,r0
sys write;m;18
mov $6240.,r0
sys 43
br s
m:<4 8 15 16 23 42;>
```
You can easily run it [here](http://pdp11.aiju.de/) (but first you have to rediscover the joys of using `ed` to insert the text - in my specific case, I even had to discover how to actually *edit* text in it `:)`).
Assembled it becomes 108 bytes.
```
# cat mini.as
s:mov $1,r0
sys write;m;18
mov $6240.,r0
sys 43
br s
m:<4 8 15 16 23 42;>
# as mini.as
# ls -l a.out mini.as
-rwxrwxrwx 1 root 108 Oct 10 12:36 a.out
-rw-rw-rw- 1 root 74 Oct 10 12:36 mini.as
# od -h a.out
0000000 0107 0022 0000 0000 0018 0000 0000 0000
0000020 15c0 0001 8904 0012 0010 15c0 0004 8923
0000040 01f7 2034 2038 3531 3120 2036 3332 3420
0000060 3b32 0000 0000 0000 0002 0000 0000 0000
0000100 0000
0000120 0000 0000 0073 0000 0000 0000 0002 0000
0000140 006d 0000 0000 0000 0002 0012
0000154
# ./a.out
4 8 15 16 23 42;
```
[Answer]
## LOGO, 61 bytes (possibly) or 48 bytes (probably not)
Unfortunately, I haven't managed to find an online copy of *The LOGO System: Preliminary Manual* (1967) by BBN, or any references by the MIT Logo Group (1960s+). Apple Logo by LCSI is a bit too recent (~1980). However, based on online books, some variation of the following probably worked at the time. Note that WAIT 60 waits for 1 second, not 60.
```
TO a
LABEL "l
PRINT [4 8 15 16 23 42]
WAIT 381600
GO "l
END
a
```
We can do a bit better with tail call optimization, though this was probably not available at the time.
```
TO a
PRINT [4 8 15 16 23 42]
WAIT 381600
a
END
a
```
[Answer]
# CBM BASIC 1.0, ~~52~~ 38 characters, tokenized to ~~45~~ 31 bytes
```
1?"4 8 15 16 23 42":fOa=1to185^3:nE:rU
```
CBM BASIC 1.0 was introduced with the Commodore PET in October 1977. Commands would normally be shown in uppercase and CBM graphics characters, but I've listed them here in lowercase + uppercase for the sake of ease (both mine and yours! :-)). Note also that the ^ would actually be displayed as ↑. Detokenized, after listing this with `LIST` this would result in:
```
1 PRINT "4 8 15 16 23 42":FOR A=1 TO 185^3:NEXT:RUN
```
The PET's 6502 ran at 1MHz, so this should take around 105 minutes or so to complete.
*Edit*: Realized that nested loops weren't really necessary and I'd miscomputed my tokens. Still not enough to win (and too late, to boot), but at least it's better.
[Answer]
# Pascal - ~~107~~ 95 bytes
```
PROGRAM S;USES CRT;BEGIN WHILE TRUE DO BEGIN WRITELN('4 8 15 16 23 42');DELAY(6300000);END;END.
```
Ungolfed version:
```
PROGRAM S;
USES CRT;
BEGIN
WHILE TRUE DO
BEGIN
WRITELN('4 8 15 16 23 42');
DELAY(6300000); { 105 minutes * 60 seconds * 1000 milisseconds }
END;
END.
```
[Answer]
# Thompson shell, 1971 (1973 for sleep command)
43 bytes
```
: x
echo 4 8 15 16 23 42
sleep 6480
goto x
```
Since the Bourne shell, though it existed in 1977, wasn't in a released version of Unix until v7 in 1979. The original Unix shell didn't have any fancy loop control commands. (If you wanted to end a loop, you could use the `if` command to skip the goto.)
[Answer]
# [Forth](https://en.wikipedia.org/wiki/Forth_(programming_language)), 50 bytes
Though FORTH-79 is the earliest standardized version, the language was in development starting in 1968, and was usable on the IBM 1130. It was used on other systems as well before 1977 came around. I may do a bit more research to ensure these words were all available, but I'm fairly certain this is basic enough to have existed by then. These were all available by FORTH-79, for sure.
Loops forever, waiting 6420000 milliseconds between string printing. No newline is printed.
```
: F 0 1 DO 6420000 MS ." 4 8 15 16 23 42" LOOP ; F
```
[Answer]
# Smalltalk, 95 (or 68 if loophole is allowed)
Been around since 1972
```
|i|[i:=0.[i<5] whileTrue: [(Delay forSeconds: 6480) wait.Transcript show: '4 8 15 16 23 42'.]]fork
```
No experience with this one, saw it on wikipedia :P
Looked it up online how to loop and delay, syntax should be correct but couldn't find a way to run it.
### Possible loophole
It should print the sequence every 108 minutes, but it doesn't state that it has to be 108 minutes.
This could make the code shorter
```
|i|[i:=0.[i<5] whileTrue: [Transcript show: '4 8 15 16 23 42'.]]fork
```
Code will print the sequence with no interval, so its guaranteed that it will print after 108 mins too.
[Answer]
## SAS, ~~82~~ ~~75~~ 69
```
data;
file stdout;
a:;
put "4 8 15 16 23 42";
a=sleep(6300,1);
goto a;
run;
```
Not a typical golfing language, but I think it qualifies for this challenge, assuming that `file stdout` was valid in 1977-era SAS.
Improvements:
* `data _null_;` --> `data;` saves 7 characters (and now produces an empty dataset as well as printing to stdout).
* Replaced do-while loop with goto - saves 6 characters
[Answer]
# C, 50 bytes
Shorter than the other C solution, and thus not a duplicate. I actually wrote this before I noticed Digital Trauma's (nearly) identical comment on the other C solution.
```
main(){for(;;sleep(6240))puts("4 8 15 16 23 42");}
```
[Answer]
# COBOL, 240 bytes
Yes, the leading whitespace is significant. Compile and run like `cobc -x save.cob; ./save`. (The `-x` option produces an executable as opposed to a shared lib and thus I don't think it needs to be counted.)
```
IDENTIFICATION DIVISION.
PROGRAM-ID.S.
PROCEDURE DIVISION.
PERFORM UNTIL 1<>1
DISPLAY"4 8 15 16 23 42"
CALL"C$SLEEP"USING BY CONTENT 6402
END-PERFORM.
GOBACK.
```
If we want to be boring, we can add the `--free` compilation option for free-format code, then **158 + 6 = 164 bytes** but this would be unlikely to work back in '77.
```
IDENTIFICATION DIVISION.
PROGRAM-ID.S.
PROCEDURE DIVISION.
PERFORM UNTIL 1<>1
DISPLAY"4 8 15 16 23 42"
CALL"C$SLEEP"USING BY CONTENT 6402
END-PERFORM.
GOBACK.
```
[Answer]
# ALGOL 60 / 68 / W, ~~74~~ ~~47~~ 50 bytes
Run this full program with `a68g save.a68`, using [`algol68g`](http://algol68.sourceforge.net).
ALGOL doesn't have a builtin way to sleep but we can run essentially `/bin/sleep`:
```
DO print("4 8 15 16 23 42");system("sleep 6380")OD
```
---
Old answer:
>
> ALGOL doesn't have a sleep builtin, so we can abuse `ping` which is surely on a Unix of the time (idea from [here](http://rosettacode.org/wiki/Sleep#ALGOL_68)) for ~~74~~ **69 bytes**.
>
>
>
> ```
> DO print("4 8 15 16 23 42");system("ping 1.0 -c1 -w6240>/dev/null")OD
>
> ```
>
>
[Answer]
# [ABC](https://homepages.cwi.nl/%7Esteven/abc/), 198 bytes
ABC: The Python in 1975!
```
WHILE 1=1:
PUT now IN(a,b,c,d,e,f)
PUT a*518400+b*43200+c*1440+d*60+e IN x
WRITE "4 8 15 16 23 42"/
PUT x IN y
WHILE y-x<104:
PUT now IN(a,b,c,d,e,f)
PUT a*518400+b*43200+c*1440+d*60+e IN y
```
[Try it online!](https://tio.run/##S0xK/v8/3MPTx1XB0NbQioszIDREIS@/XMHTTyNRJ0knWSdFJ1UnTRMikahlamhhYmCgnaRlYmwEpJO1DE1MDLRTtMwMtFOBehQquDjDgzxDXBWUTBQsFAxNFQzNFIyMFUyMlPQhRlSAVFUCVYHtrNStsDE0MAHai9tiIm2u/P8fAA "ABC – Try It Online")
] |
[Question]
[
The purpose of this challenge is to produce an ASCII version of the cover of [this great album](https://en.wikipedia.org/wiki/The_Wall) by the rock band Pink Floyd.
The brick junctions are made of characters `_` and `|`. Bricks have width 7 and height 2 characters, excluding junctions. So the basic unit, including the junctions, is:
```
_________
| |
| |
_________
```
Each row of bricks is **offset by half a brick width** (4 chars) with respect to the previous row:
```
________________________________________
| | | | |
| | | | |
________________________________________
| | | | |
| | | | |
________________________________________
| | | | |
| | | | |
```
The wall is **parameterized** as follows. All parameters are measured in chars including junctions:
1. **Horizontal offset** of first row, `F`. This is the distance between the left margin and the first vertical junction of the upmost row. (Remember also the half-brick relative offset between rows). Its possible values are `0`, `1`, ..., `7`.
2. Total **width**, `W`. This includes junctions. Its value is a positive integer.
3. Total **height**, `H`. This includes junctions. Its value is a positive integer.
The top of the wall always coincides with the top of a row. The bottom may be ragged (if the total height is not a multiple of `3`). For example, here's the output for `6`, `44`, `11`:
```
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
| | | | | |
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
```
and a visual explanation of parameters:
```
F=6
......
. ____________________________________________
. | | | | |
. | | | | |
. ____________________________________________
. | | | | | |
H=11 . | | | | | |
. ____________________________________________
. | | | | |
. | | | | |
. ____________________________________________
. | | | | | |
............................................
W=44
```
## Additional rules
You may provide a program or a function.
Input format is flexible as usual. Output may be through STDOUT or an argument returned by a function. In this case it may be a string with newlines or an array of strings.
Trailing spaces or newlines are allowed.
Shortest code in bytes wins.
## Test cases
Inputs are in the order given above, that is: horizontal offset of first row, total width, total height.
```
6, 44, 11:
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
| | | | | |
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
2, 20, 10:
____________________
| | |
| | |
____________________
| |
| |
____________________
| | |
| | |
____________________
1, 1, 1:
_
1, 2, 3:
__
|
|
3, 80, 21:
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
________________________________________________________________________________
| | | | | | | | | |
| | | | | | | | | |
```
[Answer]
# C, 86 85 83 82 bytes
3 bytes saved thanks to Lynn.
1 byte saved thanks to charlie.
```
i;f(o,w,h){++w;for(i=0;++i<w*h;)putchar(i%w?i/w%3?i%w+i/w/3*4+~o&7?32:124:95:10);}
```
[Answer]
# C, 92 bytes
```
b(f,w,h,y,x){for(y=0;y<h;y++,puts(""))for(x=0;x<w;x++)putchar(y%3?(x+y/3*4-f)%8?32:124:95);}
```
Invoke as `b(F, W, H)`.
[Answer]
# Pyth, ~~43~~ 27 bytes
I ***need*** to golf it heavily... the score is too shameful.
```
AQVE<*H?%N3X*8d+G*4/N3\|\_H
```
[Try it online already.](http://pyth.herokuapp.com/?code=AQVE%3C%2aH%3F%25N3X%2a8d%2BG%2a4%2FN3%5C%7C%5C_H&input=6%2C44%0A11&debug=0)
### Input format
```
6,44
11
```
### Output format
```
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
| | | | | |
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
```
## Explanation
```
AQVE<*H?%N3X*8d+G*4/N3\|\_H First two inputs as list in Q,
third input as E.
AQ Assign G to the first item in Q
and H to the second item in Q.
VE For N from 0 to E-1:
/N3 N floor-div 3.
if N gives a remainder of 3 or 4 or 5
when divided by 6, this will be odd;
otherwise, this will be even.
*4 Multiply by 4.
if the above is odd, this will leave
a remainder of 4 when divided by 8;
otherwise, the remainder would be 0.
+G Add G (as an offset).
X*8d \| In the string " " (*8d),
replace (X) the character with the
index above with "|" (modular indexing,
hence the manipulation above).
?%N3 \_ If N%3 is non-zero, use the above;
otherwise, use "_".
*H The above repeated H times.
< H Take the first H characters of above.
Implicitly print with newline.
```
[Answer]
# Perl, 63 bytes
```
#!perl -nl
$y+=print+map$y%3?$_++-$`&7?$":'|':_,($y%6&4)x$&for/ \d+/..$'
```
Counting the shebang as 2, input is taken from stdin, whitespace separated.
**Sample Usage**
```
$ echo 2 20 10 | perl bricks.pl
____________________
| | |
| | |
____________________
| |
| |
____________________
| | |
| | |
____________________
```
[Answer]
## Haskell, 83 bytes
```
q s="_":[s,s]
(f!w)h=take h$cycle$take w.drop(7-f).cycle<$>q" |"++q" | "
```
This defines a ternary infix function `!` which returns a list of strings. Usage example:
```
*Main> putStrLn $ unlines $ (3!14) 7
______________
| |
| |
______________
|
|
______________
```
How it works:
```
q" |"++q" | " -- build a list of 6 strings
-- 1: "_"
-- 2: " |"
-- 3: " |"
-- 4: "_"
-- 5: " | "
-- 6: " | "
<$> -- for each of the strings
take w.drop(7-f).cycle -- repeat infinitely, drop the first 7-f chars
-- and take the next w chars
cycle -- infinitely repeat the resulting list
take h -- and take the first h elements
```
[Answer]
## JavaScript (ES6), ~~96~~ 95 bytes
```
g=
(f,w,h)=>[...Array(h)].map((_,i)=>(i%3?` |`:`_`).repeat(w+7).substr(f^7^i%6&4,w)).join`
`
;
```
```
<div onchange=o.textContent=g(f.value,w.value,+h.value)><input id=f type=number min=0 max=7 placeholder=Offset><input id=w type=number min=0 placeholder=Width><input id=h type=number min=0 placeholder=Height></div><pre id=o>
```
Explanation: Creates a string of either the repeating 7 spaces plus `|` pattern or just repeated `_`s, but at least long enough to be able to extract the `w` characters required for each row. The first three rows start at position `f^7` and then the next three rows start at position `f^3`, so I achieve this by ~~toggling bit 2 of `f` on every third row~~ using the opposite bit 2 on the last two rows of each block of 6 for a saving of 1 byte.
[Answer]
# Python 2, ~~93~~ 88 bytes
~~2nd indentation level is tab~~ Saving some bytes thanks to Leaky Nun and some own modifications, also now correct offset:
```
def f(F,W,H):
for h in range(H):print["_"*W,((("|"+7*" ")*W)[8-F+h%6/3*4:])[:W]][h%3>0]
```
previous code:
```
def f(F,W,H,x="|"+7*" "):
for h in range(H):
print ["_"*W,(x[F+4*(h%6>3):]+x*W)[:W]][h%3>0]
```
Same length as unnamed lambda:
```
lambda F,W,H,x="|"+7*" ":"\n".join(["_"*W,(x[F+4*(h%6>3):]+x*W)[:W]][h%3>0]for h in range(H))
```
[Answer]
# MATL, ~~42~~ ~~36~~ 33 bytes
```
:-Q'_ | |'[DClCl]Y"8et4YShwi:3$)!
```
Input format is: `nCols`, `offset`, `nRows`
[**Try it Online**](http://matl.tryitonline.net/#code=Oi1RJ18gfCB8J1tEQ2xDbF1ZIjhldDRZU2h3aTozJCkh&input=NDQKNgoxMQ)
The approach here is that we setup a "template" which we then index into by using the row indices (`[1 2 ... nRows]`) and column indices shifted by the first input (`[1 2 ... nCols] - shift`). Thanks to MATL's modular indexing, it will automatically result in a tiled output. As a side-note, to save some space, technically I work with a transposed version of the template and then just take a transpose (`!`) at the end.
The template is this:
```
________
|
|
________
|
|
```
[Answer]
# QBasic, ~~121~~ 109 bytes
## (Tested on QB64)
Thanks to @DLosc for golfing my `IF` statement with a mathematical equivalent. That was worth 12 bytes.
## General Method:
Loop through each cell one at a time and determine whether it should be a `_`, , or `|` depending on its location. `MOD` statements and boolean logic are used to determine brick boundaries and how much to stagger the bricks.
## Code:
```
INPUT F,W,H
FOR y=0TO H-1:FOR x=0TO W-1
?CHR$((y MOD 3>0)*(((x-(y MOD 6>3)*4)MOD 8=F)*92+63)+95);
NEXT:?:NEXT
```
## Usage Note:
QBasic expects input to be numbers separated by commas.
[Answer]
# Java, ~~149~~, ~~147~~, ~~146~~, 143 bytes
Golfed:
```
String f(int o,int w,int h){String s="";for(int y=0,x;y<h;++y){for(x=0;x<w;++x){s+=y%3>0?(x-o+(y-1)/3%2*4)%8==0?'|':' ':'_';}s+='\n';}return s;}
```
Ungolfed:
```
public class AllInAllItsJustUhAnotherTrickInCodeGolf {
public static void main(String[] args) {
int offset = 6;
int width = 44;
int height = 11;
System.out.println(new AllInAllItsJustUhAnotherTrickInCodeGolf()
.f(offset, width, height));
}
// Begin golf
String f(int o, int w, int h) {
String s = "";
for (int y = 0, x; y < h; ++y) {
for (x = 0; x < w; ++x) {
s += y % 3 > 0 ? (x - o + (y - 1) / 3 % 2 * 4) % 8 == 0 ? '|' : ' ' : '_';
}
s += '\n';
}
return s;
}
// End golf
}
```
[Answer]
# Ruby, ~~72~~ 66 bytes
```
->f,w,h{h.times{|i|puts i%3<1??_*w:((?|+' '*7)*w)[8-f+i%6/4*4,w]}}
```
Thanks @Value Ink for 6 bytes!
Simple string multiplication and slicing.
Works in Ruby 2.3.0 (Ideone's version 2.1 threw syntax error).
[Answer]
# Julia: ~~150~~ ~~128~~ ~~116~~ ~~108~~ 107 bytes
```
# in codegolf.jl
r=repmat;b=r([' '],6,8);b[[1,4],:]='_';b[[2,3,23,24]]='|';b=r(b,h,w)[1:h,o+=1:o+w];b[:,end]=10;print(b'...)
```
to run with arguments: `julia -e 'o=2;h=18;w=40;include("codegolf.jl")'`
If you feel calling from bash is cheating and you want a function inside the interpreter, then the function version is 117 bytes :)
```
f(o,h,w)=(r=repmat;b=r([' '],6,8);b[[1,4],:]='_';b[[2,3,23,24]]='|';b=r(b,h,w)[1:h,o+=1:o+w];b[:,end]=10;print(b'...))
```
[demo](http://julia.tryitonline.net/#code=ZihvLGgsdyk9KGI9MzIqb25lcyhJbnQzMiw2LDgpO2JbWzEsNF0sOl09OTU7YltbMiwzLDIzLDI0XV09MTI0O2I9cmVwbWF0KGIsaCx3KVsxOmgsbysxOm8rdysxXTtiWzosZW5kXT0xMDtwcmludChyZWludGVycHJldChDaGFyLGInKS4uLikpCmYoMiwgMTgsNDAp&input=)
(Thanks, @glen-o for the extra byte-saving tip!)
[Answer]
## JavaScript, ~~172~~ ~~168~~ ~~165~~ ~~157~~ ~~147~~ ~~142~~ 137 bytes
```
(O,W,H)=>{t='_'.repeat(W),x='| '.repeat(W),f=t+`
`;for(i=0;++i<H;)f+=(!(i%3)?t:(i%6)>3?x.substr(O,W):x.substr(8-O,W))+`
`;return f}
```
```
N = (O,W,H)=>{t='_'.repeat(W),x='| '.repeat(W),f=t+`
`;for(i=0;++i<H;)f+=(!(i%3)?t:(i%6)>3?x.substr(O,W):x.substr(8-O,W))+`
`;return f}
let test_data = [[6,44,11],
[2,20,10],
[1,1,1],
[1,2,3],
[3,80,21]];
for (test of test_data)
console.log(N(...test));
```
[Answer]
# Dyalog APL, 29 bytes
`↑⎕⍴⎕⍴¨a,4⌽¨a←'_',2⍴⊂⌽⎕⌽¯8↑'|'`
tests:
[`6 44 11`](http://tryapl.org/?a=F%20W%20H%u21906%2044%2011%20%u22C4%20%u2191H%u2374W%u2374%A8a%2C4%u233D%A8a%u2190%27_%27%2C2%u2374%u2282%u233DF%u233D%AF8%u2191%27%7C%27&run),
[`2 20 10`](http://tryapl.org/?a=F%20W%20H%u21902%2020%2010%20%u22C4%20%u2191H%u2374W%u2374%A8a%2C4%u233D%A8a%u2190%27_%27%2C2%u2374%u2282%u233DF%u233D%AF8%u2191%27%7C%27&run),
[`1 1 1`](http://tryapl.org/?a=F%20W%20H%u21901%201%201%20%u22C4%20%u2191H%u2374W%u2374%A8a%2C4%u233D%A8a%u2190%27_%27%2C2%u2374%u2282%u233DF%u233D%AF8%u2191%27%7C%27&run),
[`1 2 3`](http://tryapl.org/?a=F%20W%20H%u21901%202%203%20%u22C4%20%u2191H%u2374W%u2374%A8a%2C4%u233D%A8a%u2190%27_%27%2C2%u2374%u2282%u233DF%u233D%AF8%u2191%27%7C%27&run),
[`3 80 21`](http://tryapl.org/?a=F%20W%20H%u21903%2080%2021%20%u22C4%20%u2191H%u2374W%u2374%A8a%2C4%u233D%A8a%u2190%27_%27%2C2%u2374%u2282%u233DF%u233D%AF8%u2191%27%7C%27&run)
`⎕` is evaluated input; as the expression executes from right to left, it prompts for `F`, `W`, and `H` in that order
`¯8↑'|'` is `' |'`
`⎕⌽` is rotate, it chops F chars from the front and puts them at the end of the string
the other `⌽` means reverse
`'_',2⍴⊂` creates a 3-tuple of '\_' followed by two separate copies of the string so far
`a,4⌽¨a←` append the 4-rotation of everything so far, we end up with a 6-tuple
`⎕⍴¨` reshape each element to the width
`⎕⍴` reshape to the height
`↑` mix vector of vectors into a matrix
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), ~~25~~ ~~24~~ 23 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
'_'|7úD)³∍ε73N3÷è¹-._²∍
```
-1 byte thanks to *@Grimmy*.
Inputs in the order \$\text{offset}, \text{width}, \text{height}\$.
Output as a list of string-lines.
[Try it online](https://tio.run/##yy9OTMpM/f9fPV69xvzwLhfNQ5sfdfSe22pu7Gd8ePvhFYd26urFH9oEFPtfe2j3fzMuExMuQ0MA) or [verify all test cases](https://tio.run/##yy9OTMpM/V@m5JlXUFpSbKWgZF@pw6XkX1oC5AJ5OpUJh1bGhIX@V49XrzE/vMtF89C6Rx2957aaG/sZH95@eEWErl58JFDkf@2h3TqaMYe22f@PjjbTMTHRMTSM1Yk20jEy0DE0ALIMdYAQTBvpGANpYx0LAx0jkIiBjqWOSWwsAA).
**Explanation:**
```
'_ '# Push "_"
'| '# Push "|"
7ú # Pad 7 leading spaces: " |"
D # Duplicate it
) # Wrap all three values on the stack into a list
³∍ # Extend this list to the (third) input-height amount of lines
# i.e. height=7 → ["_"," |"," |","_"," |"," |","_"]
ε # Map over each line:
N # Push the (0-based) map-index
3÷ # Integer-divide it by 3
73 è # Index it into 73 (0-based and with wraparound)
# i.e. indices=[0,1,2,3,4,5,6,7,...] → [7,7,7,3,3,3,7,7,...]
¹+ # Subtract the (first) input-offset
# i.e. offset=6 → [-3,-3,-3,1,1,1,-3,-3,...]
._ # Rotate the string that many times towards the left
# i.e. ["_"," |"," |","_"," |"," |","_"] and
# [-3,-3,-3,1,1,1,-3] → ["_"," | "," | ","_"," | "," | ","_"]
²∍ # After this inner loop: push the (second) input-width
# Extend/shorten the line to a size equal to the (second) input-width
# i.e. width=5 and line=" | " → " | "
# i.e. width=20 and line=" | " → " | | |"
# i.e. width=5 and line="_" → "_____"
# i.e. width=20 and line="_" → "____________________"
# (after which the list of string-lines is output implicitly as result)
```
`73N3÷è` could alternatively be `₃€ÐÍNè` for the same byte-count:
[Try it online](https://tio.run/##ATsAxP9vc2FiaWX//ydfJ3w3w7pEKcKz4oiNzrXigoPigqzDkMONTsOowrktLl/CsuKIjf99wrv/Ngo0NAoxMQ) or [verify all test cases](https://tio.run/##yy9OTMpM/V@m5JlXUFpSbKWgZF@pw6XkX1oC5AJ5OpUJh1bGhIX@V49XrzE/vMtF89C6Rx2957Y@amp@1LTm8ITDvX6HV0To6sVHAoX/1x7araMZc2ib/f/oaDMdExMdQ8NYnWgjHSMDHUMDIMtQBwjBtJGOMZA21rEw0DECiRjoWOqYxMYCAA).
```
₃ # Push builtin 95
€Ð # Triplicate each digit: [9,9,9,5,5,5]
Í # Decrease each by 2: [7,7,7,3,3,3]
Nè # Index the (0-based) map-index into this (0-based and with wraparound)
```
[Answer]
# [Actually](https://github.com/Mego/Seriously), ~~44~~ ~~43~~ 40 bytes
This is an Actually port of the algorithm in [Neil's JS answer](https://codegolf.stackexchange.com/a/90076/47581). Golfing suggestions welcome. [Try it online!](https://tio.run/##S0wuKU3Myan8///R1OmPps4tetSzwNpMQ9VE7dHUOeZxcY@mzlavMVdSUNLS1ioBchw8QCLxWsYaqpGej3oW@mb@/29oyGViwmUGAA "Actually – Try It Online")
```
╗╝r⌠;6(%4&╜7^^╛'|7" "*+*t╛@H╛'_*3(%YI⌡Mi
```
**Ungolfing:**
```
Takes implicit input in the order h, w, f.
╗╝ Save f to register 0. Save w to register 1.
r⌠...⌡M Map over range [0..h-1]. Call this variable i.
; Duplicate i
6(% i%6...
4& ...&4
╜7^^ ...^i^7. Call it c.
╛ Push w.
'|7" "*+ The string " |"
*t╛@H ((" |" * w)[c:])[:w]
╛'_* Push "_" * w
3(% Push 3, move duplicate i to TOS, mod.
YI If not i%3, take "_"*w, else ((" |" * w)[c:])[:w]
Function ends here.
i Flatten the resulting list and print the bricks implicitly.
```
[Answer]
# [PowerShell](https://github.com/TryItOnline/TioSetup/wiki/Powershell), ~~101~~ 88 bytes
```
param($n,$w,$h)0..--$h|%{(('| '*$w|% S*g(8-$n+4*($_%6-gt3))$w),('_'*$w))[!($_%3)]}
```
[Try it online!](https://tio.run/##LY3RCoJAEEXf9ys2GdsZG2NXJSLoK@otRCQsH8xEhX1Iv31zrWG4nDt34HZvW/VDXTWNg8f547qyL18ILYNlqEnv93EM9RR@ENUkf6MisFMoL9ETjzG0uyxCKMJD/BxTIrDEqAr/Q3Tb@CSlfHazEIgHzjI2hlhgwolmoz0aln7/mLBMPaYsj3qxhmipF744uFbDKO/lUJ0kFMF6k1t4LOamc69m1SRfI6XE7L4 "PowerShell – Try It Online")
[Answer]
# [Vyxal](https://github.com/Vyxal/Vyxal), 30 bytes
```
(n₃[¹\_*,|7\|꘍¹*⁰ǔǔn3ḭ∷[4ǔ]¹Ẏ,
```
[Try it Online!](https://lyxal.pythonanywhere.com?flags=&code=%28n%E2%82%83%5B%C2%B9%5C_*%2C%7C7%5C%7C%EA%98%8D%C2%B9*%E2%81%B0%C7%94%C7%94n3%E1%B8%AD%E2%88%B7%5B4%C7%94%5D%C2%B9%E1%BA%8E%2C&inputs=10%0A44%0A1&header=&footer=)
A big mess.
```
( # (height) times (to make each row)
n₃[ # If the iteration is divisible by 3 (flat row) then...
¹\_*, # (width) underscores
| # Else (part of a brick)...
7\|꘍ # Prepend seven spaces to an underscore
¹* # Repeat (width) times
⁰ǔǔ # Cycle by (offset), then cycle once more
n3ḭ∷[ ] # If it's an offset row
4ǔ # Cycle once more
¹Ẏ, # Trim to the correct length and print.
```
[Answer]
# Octave ~~80~~ 76 bytes
```
% in file codegolf.m
c(6,8)=0;c([1,4],:)=63;c([2,3,23,24])=92;char(repmat(c+32,h,w)(1:h,o+1:o+w))
```
to run from terminal: `octave --eval "o=2;h=18;w=44; codegolf"`
(alternatively, if you think the terminal call is cheating :p then an anonymous function implementation takes 86 bytes :)
```
c(6,8)=0;c([1,4],:)=63;c([2,3,23,24])=92;f=@(o,h,w)char(repmat(c+32,h,w)(1:h,o+1:o+w))
```
Call `f(2,18,44)` at the octave interpreter.
[Answer]
# Bash + Sed, ~~411~~ ~~395~~ ~~381~~ 370 bytes:
```
F=`printf '_%.s' $(eval echo {1..$2})`;V=" |";(($[($2-$1)/8]>0))&&L=`printf "$V%.s" $(eval echo {1..$[($2-$1)/8]})`||L=;Z=`printf "%$1.s|%s\n" e "$L"`;I=$[($2-(${#Z}-4))/8];(($I>0))&&W=`printf "$V%.s" $(eval echo {1..$I})`||W=;J=${Z:4}$W;for i in `eval echo {1..$[$3/3+1]}`;{ (($[$i%2]<1))&&O+="$F\n$J\n$J\n"||O+="$F\n$Z\n$Z\n";};echo "`echo -e "$O"|sed -n 1,$3p`"
```
Well, here is my very first answer in Bash, or any shell scripting language for that matter. This is also by far the longest answer here. Takes in a sequence of space-separated command line arguments in the format `Offset Width Height`. This can probably be a lot shorter than it currently is, so any tips and/or tricks for golfing this down more are appreciated.
[Answer]
## Delphi/Object Pascal, 305, 302, 292 bytes
Full console program that reads 3 parameters.
```
uses SySutils,Math;var i,q,o,w,h:byte;begin o:=StrToInt(paramstr(1));w:=StrToInt(paramstr(2));h:=StrToInt(paramstr(3));for q:=0to h-1do begin for i:=1to w do if q mod 3=0then Write('_')else if IfThen(Odd(q div 3),((i+o)mod 8),((i-o)mod 8))=1then Write('|')else Write(' ');Writeln('');end end.
```
### ungolfed
```
uses
SySutils,
Math;
var
i,q,o,w,h:byte;
begin
o:=StrToInt(paramstr(1));
w:=StrToInt(paramstr(2));
h:=StrToInt(paramstr(3));
for q := 0 to h-1 do
begin
for i := 1 to w do
if q mod 3 = 0 then
Write('_')
else
if IfThen(Odd(q div 3),((i+o)mod 8),((i-o)mod 8)) = 1 then
Write('|')
else Write(' ');
Writeln('');
end
end.
```
Sadly, Delphi does not have a ternary operator and it is quite a verbose language.
### test case
```
D:\Test\CodeGolfWall\Win32\Debug>Project1.exe 2 20 10
____________________
| | |
| | |
____________________
| |
| |
____________________
| | |
| | |
____________________
D:\Test\CodeGolfWall\Win32\Debug>Project1.exe 6 44 11
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
| | | | | |
____________________________________________
| | | | |
| | | | |
____________________________________________
| | | | | |
```
Edit: Could shave of 3 bytes by using byte as type for all variables.
Edit 2: And console applications do not *need* the program declaration, -10
[Answer]
# JavaScript (ES6), ~~81 78~~ 77 bytes
*Saved 3 bytes thanks to @mypronounismonicareinstate*
Takes input as `(F, W)(H)`.
```
(F,W,x=y=0)=>g=H=>y<H?`
|_ `[x++<W?y%3?(x+~F^y/3<<2)&7?3:1:2:x=+!++y]+g(H):''
```
[Try it online!](https://tio.run/##bczBCsIgAIDhe09hh5qi1dRRITpvY2@wQ1QbaxvFmNEiFKJXN6@xzh//f6te1Vg/rvfnajCXxrfKw4wUxCqnYqTSTuUqdTLX5ex9BuXBYiwL7RZcQ4s/2cltuJQMLXeaCyqYsArPMXZH3MEciSjytRlG0zfr3nSwhVsCkgRBShGa/QojgMVB4olQAgBFENC/woLwiXAC9uHGQuO/ "JavaScript (Node.js) – Try It Online")
] |
[Question]
[
It is well known that a person on a grid under the influence of alcohol has an equal chance of going in any available directions. However, this common-sense statement does not hold in the realm of *very small* drunkards, whose behavior is very much as if they take *every* available path at once, and the possible paths they take can interfere with each other. Your task is to display the possible positions of such a quantum drunkard after `n` steps.
## Specification
The drunkard in question occupies a square grid, and may be considered to be a 3-state cellular automaton using a Von Neumann (plus-shaped) neighborhood which follows these simple rules:
* `Empty` goes to `Awake` if it is adjacent to exactly one `Awake`, and otherwise goes to `Empty`
* `Awake` goes to `Sleeping`
* `Sleeping` goes to `Sleeping`
The initial state of the board is a single `Awake` surrounded by an infinite field of `Empty`s.
## Challenge
Given a nonnegative integer `n`, create an ASCII representation of the drunkard after `n` steps. Each state should be represented by a different character, and solutions should state which character means which state. If you use spaces for `Empty`, you don't need to include a run of them at the end of a line.
This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so shortest answer wins. [Standard loopholes](https://codegolf.meta.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default) apply, leading and trailing whitespace is allowed, string array/2d char array output is allowed, etc.
## Examples
These examples use for `Empty`, `@` for `Awake`, and `#` for `Sleeping`.
```
n=0
@
n = 1
@
@#@
@
n = 2
@
#
@###@
#
@
n = 3
@
@#@
@ # @
@#####@
@ # @
@#@
@
n=6
@
#
@###@
@#@
@ ### @
#@# # #@#
@###########@
#@# # #@#
@ ### @
@#@
@###@
#
@
n=10
@
#
@###@
@#@
###
# # #
#######
# ### #
@ ## ### ## @
#@# ### # ### #@#
@###################@
#@# ### # ### #@#
@ ## ### ## @
# ### #
#######
# # #
###
@#@
@###@
#
@
```
## Interesting Note
By looking up the sequence of the number of occupied cells in the OEIS, I found that the quantum drunkard is isomorphic to the much better-studied [toothpick sequence](https://arxiv.org/abs/1004.3036). If you can incorporate that knowledge into a better golf, I will be suitably impressed.
[Answer]
# [Wolfram Language (Mathematica)](https://www.wolfram.com/wolframscript/), ~~92~~ 91 bytes
```
Print@@@CellularAutomaton[{7049487784884,{3,{a={0,3,0},3-2a/3,a}},{1,1}},{j={{1}},0},{j#}]&
```
A perfect challenge to use Mathematica's builtin `CellularAutomaton`!
[Try it online!](https://tio.run/##y00syUjNTSzJTE78n2ar8T@gKDOvxMHBwTk1J6c0J7HIsbQkHyidnxddbW5gYmliYW5uYWJhYaJTbaxTnWhbbaBjrGNQq2Osa5Sob6yTWFurU22oYwiismyrq0EMAxBbuTZW7b@mNVeag5nJfwA "Wolfram Language (Mathematica) – Try It Online")
Empty = 0, Awake = 1, Sleeping = 2
Animation of the first 256 iterations (white = empty, gray = awake, black = sleeping):
[![enter image description here](https://i.stack.imgur.com/aGX2v.gif)](https://i.stack.imgur.com/aGX2v.gif)
### Explanation
```
CellularAutomaton[ ... ]
```
Run `CellularAutomaton` with specifications...
```
{7049487784884,{3,{a={0,3,0},3-2a/3,a}},{1,1}}
```
Apply the 3-color totalistic rule 7049487784884, with Von Neumann neighborhood...
```
{j={{1}},0}
```
On a board with a single 1 in the middle, with a background of 0s...
```
{j#}
```
Repeat `<input>` times (`{j#}` evaluates to `{{{#}}}`). The array automatically expands if a cell outside of the border is not the same as the background
```
7049487784884
```
This rule comes from the base-3 number `220221220221220221220221220`, which means "change all `1` or `2` to `2`, and change `0` to `1` if and only if there is an odd number of `1`s around it."
```
Print@@@
```
Print the array.
### Semi-proof of "'odd `1`s' is equivalent to 'exactly one `1`'":
Consider this 5x5 grid of pixels. White is a `0` or a `2` cell (non-awake pixels), and gray is a `1` cell.
[![enter image description here](https://i.stack.imgur.com/KGUWZ.png)](https://i.stack.imgur.com/KGUWZ.png)
If a `1` cell was generated around three `0` cells, then the grid must look like this: it has three `1`s arranged in a U-shape (or a rotated version) as follows:
[![enter image description here](https://i.stack.imgur.com/FGZWA.png)](https://i.stack.imgur.com/FGZWA.png)
Due to the self-similarity of this cellular automaton, any pattern that appears in the cellular automaton must appear on the diagonal (by induction). However, this pattern is not diagonally symmetric. i.e. it cannot occur on the diagonal and cannot appear anywhere on the cellular automaton.
### Awake/Sleeping are equivalent
Note that a `0` cell cannot be surrounded by exactly one or three `2` cells and rest `0` cells, since that would imply that some steps prior, the cell had a neighbor of one or three `1` cells -- and must have turned into a `1` already (contradiction). Therefore, it is okay to ignore the distinction between `1` and `2` and state 'change all `1` to `1`, and a `0` to a `1` if and only if it has an odd number of nonzero neighbors.'
The resulting cellular automaton is indeed identical to the original, the only difference being there is no distinction between "awake" and "asleep" drunkards. This pattern is described in OEIS [A169707](https://oeis.org/A169707).
```
Print@@@CellularAutomaton[{750,{2,{a={0,2,0},2-a/2,a}},{1,1}},{j={{1}},0},{j#}]&
```
[Try it online!](https://tio.run/##y00syUjNTSzJTE78n2ar8T@gKDOvxMHBwTk1J6c0J7HIsbQkHyidnxddbW5qoFNtpFOdaFttoGOkY1CrY6SbqG@kk1hbq1NtqGMIorJsq6tBDAMQW7k2Vu2/pjVXmoOZyX8A "Wolfram Language (Mathematica) – Try It Online")
Side-by-side comparison of the first 16 iterations:
[![enter image description here](https://i.stack.imgur.com/vmqJL.gif)](https://i.stack.imgur.com/vmqJL.gif)
Adding two consecutive iterations gives a result that follows the challenge specs (94 bytes):
```
Print@@@Plus@@CellularAutomaton[{750,{2,{a={0,2,0},2-a/2,a}},{1,1}},{{{1}},0},{Ramp@{#-1,#}}]&
```
[Try it online!](https://tio.run/##y00syUjNTSzJTE78n2ar8T@gKDOvxMHBISCntNjBwTk1J6c0J7HIsbQkH6goPy@62tzUQKfaSKc60bbaQMdIx6BWx0g3Ud9IJ7G2VqfaUMcQRFVXgyigVHVQYm6BQ7WyrqGOcm1trNp/TWuuNAczk/8A "Wolfram Language (Mathematica) – Try It Online")
[Answer]
# [Python 2](https://docs.python.org/2/), 192 bytes
```
x=input()
o=c={x+x*1j}
R=range(x-~x)
exec"n=[C+k for k in-1j,1j,-1,1for C in c];n={k for k in n if(k in o)<2-n.count(k)};o|=c;c=n;"*x
print[[`(X+Y*1jin c)+(X+Y*1jin o|c)`for Y in R]for X in R]
```
[Try it online!](https://tio.run/##RY2xCoMwFEX3fEVwStSURuiUZvIPnBQRLEHbKLyIREhR@@upaQfhDedeLudNb/sykHnvpIZpsYQiI5VcXeJiPuyokPMDnh1x7OMo6lynIpB1noy4NzMesQbGh/Q4xlMeqvyosGoEyPXcYMC6Jz8y9J4xuCizgCUj3YXZpBJKgohih6ZZg63rlpRJdfwPKpqcwWyKtkFaBVXRBCz/6P3t@gU "Python 2 – Try It Online")
-17 bytes thanks to Mr. Xcoder
-9 bytes using Jonathan's output format
-11 bytes thanks to Lynn
-3 bytes thanks to ovs
[Answer]
# C, ~~360~~ ~~354~~ ~~343~~ 319
```
#define A(i,b,e)for(int i=b;i<e;++i)
#define B(b,e)A(r,b,e){A(c,b,e)
#define W(n)(n<0?-(n):n)
#define C(r,c)b[W(r)*s+W(c)]
#define D C(r,c)
q(n){char N,s=n+2,(*b)[2]=calloc(s,2*s);C(0,0)
[1]=1;A(g,0,n+1){B(0,s)*D=D[1];}B(0,g+2){N=(*C
(r-1,c)+*C(r+1,c)+*C(r,c-1)+*C(r,c+1))&1;D[1]=
*D?2:N;}}}B(2-s,s-1)putchar(*D+32);puts("");}}
```
Newlines after non-`#define` lines are just for presentation here, so they’re not counted. I included a wrapper function, so it’s −6 (313) if the function isn’t counted and you assume `n` comes from elsewhere. `q(10)` outputs:
```
!
"
!"""!
!"!
"""
" " "
"""""""
" """ "
! "" """ "" !
"!" """ " """ "!"
!"""""""""""""""""""!
"!" """ " """ "!"
! "" """ "" !
" """ "
"""""""
" " "
"""
!"!
!"""!
"
!
```
Using for empty, `"` for sleeping, and `!` for awake.
This works like so:
* `A(i,b,e)` is “∀i∈[b,e).”, `B(b,e)` is “∀r∈[b,e).∀c∈[b,e).”
* Observe that after *n* generations, the board is 2*n* + 1 square.
* Because of the symmetry of the board, this only needs to simulate the lower right quadrant, so we allocate an *n* + 1 square matrix with 1 row & column of padding for the later neighbour lookup (so *n* + 2).
* Allocating with `calloc` lets us simultaneously multiply the width by the height and clear the board to `0` (empty).
* When looking up a cell by its coordinates (`C` and `D`), it uses the absolute value of the row and column (`W`) to automatically mirror the coordinates.
* The board is stored as an array of pairs of integers representing the current and previous generations. The integers in question are `char` so we can avoid `sizeof`.
* The generation looked up most frequently (by the neighbour test) is the past generation, so it’s placed at index 0 in the pair so it can be accessed with `*`.
* At each generation (`g`), the current generation is copied over the previous generation using a `B` loop, then the new generation is generated from the old.
* Each cell is represented using `0` for empty, `1` for awake, and `2` for sleeping. Counting neighbours was originally a calculation of the number of bits set in the low 4 bits of the cell when the 4 neighbours are shifted & OR’d together as flags (`N`), using `16` for sleeping. But with the observation that an odd number of neighbours is equivalent to exactly 1 neighbour, we can save several characters just using a mask with 1.
* At the end, the board is printed in full by iterating over the lower right quadrant using the same absolute value coordinate trick, minus padding so we don’t print the outer padding on the board. This is also why the `B` loop includes an opening curly bracket, because we have the extra newline statement in the outer loop.
* The ASCII codes conveniently map 0+32 (empty) to a space, 2+32 (sleeping) to `"`, and 1+32 (awake) to `!`.
All in all I think this is a surprisingly readable golf because of the nice structure of the problem.
[Answer]
# [MATL](https://github.com/lmendo/MATL), 39 bytes
```
QtE:=&*G:"tt0=w1Y6Z+Xj1=*w|gJ*+]Q|U31+c
```
This displays
* `Empty` as (space)
* `Awake` as `#`
* `Sleeping` as `!`.
[**Try it online!**](https://tio.run/##y00syfn/P7DE1cpWTcvdSqmkxMC23DDSLEo7IsvQVqu8Jt1LSzs2sCbU2FA7@f9/QwMA) You can also watch the pattern [**grow**](http://matl.suever.net/?code=QtE%3A%3D%26%2aG%3A%22t2%26XxQ%7CU31%2BcDtt0%3Dw1Y6Z%2BXj1%3D%2aw%7CgJ%2a%2B%5D2%26XxQ%7CU31%2Bc&inputs=14&version=20.4.2) in ASCII art, or [**graphically**](http://matl.suever.net/?code=QtE%3A%3D%26%2aGQ%3A%22t%26ZjwE%2B2%2FXx0YGtt0%3Dw1Y6Z%2BXj1%3D%2aw%7CgJ%2a%2B%5Dx&inputs=100&version=20.4.2) (modified code).
### Explanation
The code uses complex numbers `0`, `1`, `j` to represent the three states: empty, wake, sleeping respectively.
```
Q % Implicitly input n. Add 1
tE % Duplicate and multiply by 2
: % Range [1 2 ... 2*n]
= % Test for equalty. Gives [0 ... 0 1 0... 0], with 1 at position n
&* % Matrix of all pairwise products. Gives square matrix of size 2*n
% filled with 0, except a 1 at position (n,n). This is the grid
% where the walk will take place, initiallized with an awake cell
% (value 1). The grid is 1 column and row too large (which saves a
% byte)
G:" % Do n times
tt % Duplicate current grid state twice
0= % Compare each entry with 0. Gives true for empty cells, false
% for the rest
w % Swap: moves copy of current grid state to top
1Y6 % Push 3×3 matrix with Von Neumann's neighbourhood
Z+ % 2D convolution, maintaining size
Xj % Real part
1= % Compare each entry with 1. This gives true for cells that
% have exactly 1 awake neighbour
* % Multiply, element-wise. This corresponds to logical "and":
% cells that are currently empty and have exactly one awake
% neighbour. These become 1, that is, awake
w % Swap: moves copy of current grid state to top
|g % Absolute value, convert to logical: gives true for awake or
% sleeping cells, false for empty cells
J*+ % Mulltiply by j and add, element-wise. This sets awake and
% sleeping cells to sleeping. The grid is now in its new state
] % End
Q % Add 1, element-wise. Transforms empty, awake, sleeping
% respectively from 0, 1, j into 1, 2, 1+j
|U % Abolute value and square, element-wose. Empty, awake, sleeping
% respectively give 1, 4, 2
31+c % Add 31 element-wise and convert to char. Empty, awake, sleeping
% respectively give characters ' ' (codepoint 32), '#' (codepoint
% 35) and '!' (codepoint 33). Implicitly display
```
[Answer]
# Befunge, ~~384~~ 304 bytes
```
&:00p->55+,000g->>00g30p:40p\:50p\5>>40g!50g!*vv0g05g04p03-<
@,+55_^#`g00:+1$_^>p:4+4g5%2-50g+5#^0#+p#1<v03_>30g:!#v_:1>^
#v_>$99g,1+:00g`^ ^04+g04-2%5g4:\g05\g04\p<>g!45*9+*3+v>p:5-
>\50p\40p\30p:#v_>>0\99g48*`!>v >30g:1-30^>>**\!>#v_>v^9 9<
$0\\\\0$ >\99g88*-!+\:4->#^_\>1-!48>^ >$3>48*+^
```
[Try it online!](http://befunge.tryitonline.net/#code=JjowMHAtPjU1KywwMDBnLT4+MDBnMzBwOjQwcFw6NTBwXDU+PjQwZyE1MGchKnZ2MGcwNWcwNHAwMy08CkAsKzU1X14jYGcwMDorMSRfXj5wOjQrNGc1JTItNTBnKzUjXjAjK3AjMTx2MDNfPjMwZzohI3ZfOjE+Xgojdl8+JDk5ZywxKzowMGdgXiBeMDQrZzA0LTIlNWc0OlxnMDVcZzA0XHA8PmchNDUqOSsqMyt2PnA6NS0KID5cNTBwXDQwcFwzMHA6I3ZfPj4wXDk5ZzQ4KmAhPnYgPjMwZzoxLTMwXj4+KipcIT4jdl8+dl45IDk8CiQwXFxcXDAkICAgICAgICA+XDk5Zzg4Ki0hK1w6NC0+I15fXD4xLSE0OD5eICAgICAgID4kMz40OCorXg&input=NQ)
The problem with trying to implement this sort of thing in Befunge is the limited memory size (2000 bytes for both data and code). So I've had to use an algorithm that calculates the correct character for any given coordinate without reference to previous calculations. It achieves this by recursively looking back in time across all possible paths the drunkard might have followed to reach that point.
Unfortunately this is not a particular efficient solution. It works, but it's incredibly slow, and it becomes exponentially slower the larger the value of *n*. So while it could potentially work for any *n* up to about 127 (Befunge's 7-bit memory cell limit), in practice you'll inevitably lose interest waiting for the result. On TIO, it'll hit the 60 second timeout on anything higher than around 6 (at best). A compiler will do a lot better, but even then you probably wouldn't want to go much higher than 10.
Still, I thought it was worth submitting because it's actually quite a nice demonstration of a recursive "function" in Befunge.
[Answer]
# [Python 2](https://docs.python.org/2/), 214 bytes
```
def f(n):k=n-~n;N=k*k;A=[0]*N;A[N/2]=2;exec"A=[[2*([j%k>0and A[j-1],j%k<k-1and A[j+1],j/k>0and A[j-k],j/k<k-1and A[j+k]].count(2)==1),1,1][v]for j,v in enumerate(A)];"*n;print[map(str,A)[k*x:][:k]for x in range(k)]
```
[Try it online!](https://tio.run/##TcxBboQgGAXgfU9BmDQBio4wOylNuYAXICyIg1PF@TXUmdhNr27VdOHyfXnvjT/T1wByWa6hQQ0BWkYN2S@oSkcWldG2cKxSxlZn6bRUYQ41XtVKRmz3Gj8KD1dkbJcJx9f8HjPxL2@bnA@NuOdjIzqX18MDJiKp1oJywYWzT9cMCXX8iVpAAR73kPwUiKFOYQZqTC1M9u5H8j0lbqiNbC6dLeM@m7dR8nALJFK3nDbrN2vI5ULLfYxx3g0tkJ7mKYy9rwPBBeYY4QOIFU5HkCt8YvqyHy1/ "Python 2 – Try It Online")
# Explanation
Uses `0` for `empty`, `1` for `sleeping` and `2` for `awake`. Prints out a two-dimensional character (one-length strings) list.
Defines a function which takes in a non-negative integer `n`. Successively advances the cellular automaton until the desired state is reached. Finally, a conversion between the internal integer values and actual characters is applied.
[Answer]
# [Lua](https://www.lua.org), ~~251~~ ~~242~~ ~~239~~ 238 bytes
-8 bytes by simplifying the array initializer at the cost of some additional leading whitespace.
-1 byte by changing `c=i==2+...and print(s)` into `c=i~=2+...or print(s)`.
-3 bytes by building a complete string first and printing once at the end.
-1 byte thanks to [Jonathan Frech](https://codegolf.stackexchange.com/users/73111/jonathan-frech) by rewriting `or(g(...)==1 and` as `or(1==g(...)and`.
```
function g(x,y)return(a[x]or{})[y]or 0 end a={{1}}for i=2,2+...do n={}s=""for x=-i,i do n[x]=n[x]or{}q=a[x]or{}for y=-i,i do n[x][y]=q[y]and 0or(1==g(x+1,y)+g(x,y+1)+g(x-1,y)+g(x,y-1)and 1)s=s..(q[y]or" ")end s=s.."\n"end a=n end print(s)
```
[Try it online!](https://tio.run/##VY5BCsMgEEWvIq4UE4mBLuckbRehSYpQxkYTSBDPbkfbUrqZGR6fP@@xDTnPG95W65Ddxd4c0k/r5lEM5/3qfEzyfNBmHZtwZAPEaFKaCVjom15prUfHEGIKwHnhO7S2saxQagD81CzwLSyh4y9EH2ChMdCHznlhAEhFGZJR1UmZerQ/0hpZ0kYGCFqLpUpyxmWxrIxfkL@Vsao/vcVVBJlzPnUv "Lua – Try It Online")
Empty = Space
Awake = `1`
Sleeping = `0`
Takes input from the command line and prints to stdout.
By representing the states as `false`/`nil`, `1` and `0` internally, detecting "empty" doesn't need any code and the "exactly one awake" check can be done with just an addition.
[Answer]
# [APL (Dyalog)](https://www.dyalog.com/), 38 [bytes](https://github.com/abrudz/SBCS)
```
((2∘∧⌈1={2⊃+/1=⍵,⍉⍵}⌺3 3)(⌽0,⍉)⍣4)⍣⎕⍪1
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT///qKM97b@GhtGjjhmPOpY/6ukwtK02etTVrK1vaPuod6vOo95OIFX7qGeXsYKxpsajnr0GIDHNR72LTUDEo76pj3pXGYLM@Z/GZcClrs6VxmUIoYwglDGEMgEA "APL (Dyalog Unicode) – Try It Online")
-4 thanks to [Adám](https://codegolf.stackexchange.com/users/43319/ad%C3%A1m).
-8 thanks to [ngn](https://codegolf.stackexchange.com/users/24908/ngn).
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~39~~ 29 bytes
```
-,1ṙ@€Sµ+Z
‘ṬŒḄ×þ`µÇ׬Ḃ+Ḃ+µ³¡
```
[Try it online!](https://tio.run/##AVMArP9qZWxsef//LSwx4bmZQOKCrFPCtStaCuKAmOG5rMWS4biEw5fDvmDCtcOHw5fCrOG4givhuIIrwrXCs8Kh/8OH4buL4oKs4oCcQCMg4oCdWf//Ng "Jelly – Try It Online")
Uses `0`,`1` and `2` for empty awake and sleeping. The footer in the link converts this to , `@` and `#`.
* -1 byte by using `ṬŒḄ` instead of `ḤḶ=¹`.
* -2 bytes by using `-` instead of `1N`. Also makes `¤` unnecessary.
* -1 byte by using `S` instead of `+/`.
* -6 bytes by using `Ḃ+Ḃ+` instead of `%3=1+=1Ḥ$+`. Now uses `2` for sleeping instead of `3`.
Explanation coming...
[Answer]
# [APL (Dyalog Classic)](https://www.dyalog.com/), 38 bytes
```
((2∘∧⌈2|⍉∘g∘⍉+g←3+/0,,∘0)(⌽0,⍉)⍣4)⍣⎕⍪1
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT9dNzkksLs5M/v@ooz3tv4aG0aOOGY86lj/q6TCqedTbCeSlg0R6O7XTH7VNMNbWN9DRAQoYaGo86tlroAOU0HzUu9gERDzqm/qod5Xhf3V1LqBh/9O4DLjSuAyB2AiIjUFsAwA "APL (Dyalog Classic) – Try It Online")
based on [Erik the Outgolfer's solution](https://codegolf.stackexchange.com/questions/148206/the-quantum-drunkards-walk/#answer-148376)
`⍪1` is a 1x1 matrix containing 1
`⎕` eval'ed input
`( )⍣⎕` apply that many times
* `(⌽0,⍉)⍣4` surround with 0s, that is 4 times do: transpose (`⍉`), add 0s on the left (`0,`), reverse horizontally (`⌽`)
* `g←3+/0,,∘0` a function that sums horizontal triples, call it `g`
* `⍉∘g∘⍉` a function that sums vertical triples - that's `g` under transposition
* `2 | ⍉∘g∘⍉ + g←3+/0,,∘0` sum of the two sums modulo 2
* `⌈` the greater between that and ...
* `2∘∧` the LCM of 2 and the original matrix - this turns 1s into 2s, while preserving 0s and 2s
[Answer]
# [Perl 5](https://www.perl.org/), 192 + 1 (`-n`) = 193 bytes
```
for$i(1..2*$_+1){push@a,[()x$_]}$a[$_][$_]=1;map{@b=();for$i(0..$#a){map$b[$i][$_]=$a[$i][$_]?2:$a[$i-1][$_]+($_&&$a[$i][$_-1])+$a[$i+1][$_]+$a[$i][$_+1]==1?1:0,0..$#a}@a=@b}1..$_;say@$_ for@a
```
[Try it online!](https://tio.run/##PU7RCoMwDPyVwYK0q5Zm4ItS7A/sC2SUCBsTNi26wYb46@uqHT6E5O5y3LnLcM@9v/YDtAylPB7ACuSTe403Q2nN@BvseQaqw1pGY/kgN5lGM15Gm5IS9sSnwENTQxv/Fks8q2OxggxXKBjYJNnkwHKxIvHXNykQWmOFhUpjxmxIm2YOPcGWI30M2F3oYMj7/Nu7Z9t3o89OuVSofNb9AA "Perl 5 – Try It Online")
Uses 0 for empty, 1 for awake, and 2 for asleep.
[Answer]
# [Ruby](https://www.ruby-lang.org/), ~~164~~ 153 bytes
```
->n{(r=([e=' ']*(l=2*n+1)<<"
")*l)[n+n*l+=1]=a=?@
n.times{r=r.map.with_index{|c,i|c==a ??#:c==e ?r.values_at(i-1,i+1,i-l,i+l).one?{|v|v==a}?a:e:c}}
r*""}
```
[Try it online!](https://tio.run/##HYtBbsMgFET3nOKLLGxjjOKk6sLKL72HZUXUJQoSoRHGbivg7C7qYjRvNDN@/fjdb7h3by7WHutRYwXVxGqLJ@bavrlcKKENs83oWsdsi/2ECuU7cSKYh16iRy8e6im@TbhfjfvUPzHN3KQZUYGUh6GABunFpuyql6sKtel6btqizha3jfhyWsa0pa18slSDHuaciWeU5j3oJSyAMB459BxOHM4cXguX/HKcyH8vtJrvEFNI8FzLnDo8xJApv41h4lWVyf4H "Ruby – Try It Online")
Uses " " for Empty, "@" for Awake, and "#" for Sleeping (as in the example). I could save 6 bytes by using numbers instead, I suppose, but it looks better like this.
[Answer]
# [Pip](https://github.com/dloscutoff/pip), ~~69~~ 61 bytes
60 bytes of code, +1 for `-l` flag.
```
YZG2*a+1y@a@a:1LaY{y@a@b?2oN(y@(a+_)@(b+B)MP[0o0v0])=1}MC#yy
```
Takes `n` as a command-line argument. Uses `0` for empty, `1` for awake, and `2` for sleeping. (To get nicer ASCII-art as in the challenge's examples, replace the final `y` with `" @#"@y`.)
[Try it online!](https://tio.run/##K8gs@P8/MsrdSCtR27DSIdEh0crQJzGyGsRMsjfK99OodNBI1I7XdNBI0nbS9A2INsg3KDOI1bQ1rPV1Vq6s/P//v27OfzMA "Pip – Try It Online")
### Explanation
Setup:
```
YZG2*a+1y@a@a:1
Implicit: a is 1st cmdline arg; o is 1; v is -1
ZG2*a+1 Square grid (i.e. nested list) of 0's, with side length 2*a+1
Y Yank into y variable
y@a@a:1 Set the element at coordinates (a,a) to 1
```
Main loop:
```
LaY{...}MC#y
La Loop (a) times:
#y Len(y) (i.e. 2*a+1)
{ }MC Map this function to the coordinate pairs in a 2*a+1 by 2*a+1 grid
Y and yank the resulting nested list back into y
```
where the function body is:
```
y@a@b?2oN(y@(a+_)@(b+B)MP[0o0v0])=1
The function args, representing the coords of the
current cell, are a and b
y@a@b? Is the cell at these coords 0 or nonzero?
2 If nonzero (1 or 2), make it 2
Else, if zero, we need to check the neighbors
[0o0v0] List of [0; 1; 0; -1; 0]
MP Map this function to each adjacent pair of values--
i.e. call it four times with args (0; 1), (1; 0),
(0; -1), and (-1; 0)
y Index into the grid using
@(a+_) a + the 1st item in the pair as the row and
@(b+B) b + the 2nd item in the pair as the column
The result of MP is a list of the values of the cells
in the Von Neumann neighborhood
oN( ) Get the number of 1's in that list
=1 and test if it equals 1
If so, the new value of this cell is 1; if not, it's 0
```
After the loop, we simply autoprint `y`. The `-l` flag means that the nested list is printed by concatenating the contents of each row and separating the rows with newlines.
[Answer]
# [Java (OpenJDK 8)](http://openjdk.java.net/), 220 bytes
```
n->{int s=n*2+3,i=0,x,y;char[][]a=new char[s][s],b;for(a[s/2][s--/2]=61;i++<n;a=b)for(b=new char[s+1][s+1],x=0;++x<s;)for(y=0;++y<s;)b[x][y]=a[x][y]>32?'0':(a[x][y-1]+a[x][y+1]+a[x-1][y]+a[x+1][y])%8==5?61:' ';return a;}
```
[Try it online!](https://tio.run/##dVHLbsIwELzzFSukilAnKQEVVTiGW6Ueeuox@OBAANPgRLFDYyG@ndp50FRVJds74514dydHdmZelifiuP285WWc8g1sUiYlvDMu4DIAaG@lYsqEc8a3cDI550MVXOwjCqzYy3EtBTia9/xS8dTflWKjeCb8N6FeWxxuDqyIaESXsANyE97ywoUCScTjFM1cTiZu5WrcqRgRyRfUTFKz3BjvssJhkXyaGu55JpB5gDlCocCMxGObjntfoYDWh1uRCUaoCiWuNbqm2tI4qmikKWFNXM6mq9FktHAa7gUUNQg1yFwYlUWoRuOHF0KeV/NgMYIRLhJVFgIYvt5w7YcpBo6dkQOBCTYhJBBYgFDnGUA3MDCj2vksz1Pt8DFu07kxWjnszj@0VMnJz0rl16lUOMO1WIthq7gO7DZH/581j/xU6qpbO2yDFQkwVBAC89NE7NXBs7zfZafUVqmt0hjTE@u@@G@XraP0Psb1/3F@DXK9fQM "Java (OpenJDK 8) – Try It Online")
Note: the array returned contains a border or `'\0'` characters. Since the plane is supposed to be infinite, only non-border is used.
Character mapping:
* Empty: (space)
* Awake: `=`
* Sleeping: `0`
## Saves
* 29 bytes saved thanks to Jonathan S.
* 9 further bytes thanks to Jonathan S. by swapping characters with others and "doing magic with primes and modular arithmetic"
[Answer]
# Python, ~~199~~ 192 bytes
This code runs on both Python 2 and Python 3, but it uses the popular 3rd-party Numpy library to do the array handling.
```
from numpy import*
def f(n):
m=2*n+1;g=zeros((m+2,)*2,'i');g[n+1,n+1]=1
while n:a=g[1:-1,1:-1];a[:]=(a<1)*(sum(g[r:r+m,c:c+m]&1for r,c in((0,1),(1,0),(1,2),(2,1)))==1)+(a>0)*2;n-=1
return g
```
>
> Empty = 0
>
> Awake = 1
>
> Sleeping = 2
>
>
>
`print(f(6))` outputs
```
[[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 2 0 0 0 0 0 0 0]
[0 0 0 0 0 1 2 2 2 1 0 0 0 0 0]
[0 0 0 0 0 0 1 2 1 0 0 0 0 0 0]
[0 0 0 1 0 0 2 2 2 0 0 1 0 0 0]
[0 0 0 2 1 2 0 2 0 2 1 2 0 0 0]
[0 1 2 2 2 2 2 2 2 2 2 2 2 1 0]
[0 0 0 2 1 2 0 2 0 2 1 2 0 0 0]
[0 0 0 1 0 0 2 2 2 0 0 1 0 0 0]
[0 0 0 0 0 0 1 2 1 0 0 0 0 0 0]
[0 0 0 0 0 1 2 2 2 1 0 0 0 0 0]
[0 0 0 0 0 0 0 2 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]
[0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]]
```
If you want prettier printing, you can call it this way:
```
n=6;print('\n'.join(''.join(' @#'[v]for v in u)for u in f(n)))
```
which prints using the same characters as given in the question.
] |
[Question]
[
**Locked**. This question and its answers are [locked](/help/locked-posts) because the question is off-topic but has historical significance. It is not currently accepting new answers or interactions.
>
> Is it possible to write a C program that multiplies two numbers without using the multiplication and addition operators?
>
>
>
I found [this on Stack Overflow](https://stackoverflow.com/questions/21064911/how-to-write-a-c-program-for-multiplication-without-using-and-operator). Please help this poor programmer with his problem. And please don't give answers like `c = a/(1/((float)b))`, which is exactly the same as `c = a*b`. (And is already given as an answer.)
The answer with the most upvotes on January 19th 2014 wins.
Note: This is a [code-trolling](/questions/tagged/code-trolling "show questions tagged 'code-trolling'") question. Please do not take the question and/or answers seriously. More information is in *[code-trolling](https://codegolf.stackexchange.com/tags/code-trolling/info)*.
[Answer]
## Always use recursion
Recusion is the right way!
```
int inc(int x) {
return x&1?inc(x>>1)<<1:x|1;
}
int dec(int x) {
return x&1?x^1:dec(x>>1)<<1|1;
}
int add(int x, int y) {
return x?add(dec(x),inc(y)):y;
}
int mul(int x, int y) {
return x?x^1?add(y,mul(dec(x),y)):y:0;
}
int main() {
int a, b;
scanf("%i\n%i", &a, &b);
printf("%i", mul(a,b));
}
```
[Answer]
You'll have to compile the program each time, but it does do multiplication of any positive integers exactly in any version of C or C++.
```
#define A 45 // first number
#define B 315 // second number
typedef char buffer[A][B];
main() {
printf("%d\n",sizeof(buffer));
}
```
[Answer]
If you are OK with a little imprecision, you can use the [Monte Carlo method](http://en.wikipedia.org/wiki/Monte_Carlo_method):
```
#include <stdlib.h>
#include <stdio.h>
unsigned int mul(unsigned short a, unsigned short b) {
const int totalBits = 24;
const int total = (1 << totalBits);
const int maxNumBits = 10;
const int mask = (1 << maxNumBits) - 1;
int count = 0, i;
unsigned short x, y;
for(i = 0; i < total; i++) {
x = random() & mask;
y = random() & mask;
if ((x < a) && (y < b))
count++;
}
return ((long)count) >> (totalBits - (maxNumBits << 1));
}
void main(int argc, char *argv[]) {
unsigned short a = atoi(argv[1]);
unsigned short b = atoi(argv[2]);
printf("%hd * %hd = %d\n", a, b, mul(a, b));
}
```
Example:
```
$ ./mul 300 250
300 * 250 = 74954
```
I guess this could be good enough ;)
[Answer]
Since you didn't specify what size of number, I assume that you mean two one-bit numbers.
```
#include <stdbool.h>
bool mul(bool a, bool b) {
if (a && b) {
return true;
} else {
return false;
}
}
```
If you want a maximally-efficient implementation, use the following tiny implementation:
```
m(a,b){return a&b;}
```
Note that it still only accepts bits even though the types are implicit ints - it takes less code, and is therefore more efficient. (And yes, it does compile.)
[Answer]
Here's a simple shell script to do it:
```
curl "http://www.bing.com/search?q=$1%2A$2&go=&qs=n&form=QBLH&pq=$1%2A$2" -s \
| sed -e "s/[<>]/\n/g" \
| grep "^[0-9 *]*=[0-9 ]*$"
```
UPDATE: Of course, to do it in C, just wrap it in `exec("bash", "-c", ...)`. (Thanks, AmeliaBR)
[Answer]
Why, let's do a recursive halving search between INT64\_MIN and INT64\_MAX!
```
#include <stdio.h>
#include <stdint.h>
int64_t mul_finder(int32_t a, int32_t b, int64_t low, int64_t high)
{
int64_t result = (low - (0 - high)) / 2;
if (result / a == b && result % a == 0)
return result;
else
return result / a < b ?
mul_finder(a, b, result, high) :
mul_finder(a, b, low, result);
}
int64_t mul(int32_t a, int32_t b)
{
return a == 0 ? 0 : mul_finder(a, b, INT64_MIN, INT64_MAX);
}
void main(int argc, char* argv[])
{
int32_t a, b;
sscanf(argv[1], "%d", &a);
sscanf(argv[2], "%d", &b);
printf("%d * %d = %ld\n", a, b, mul(a, b));
}
```
P.S. It will happily sigsegv with some values. ;)
[Answer]
Unfortunately, this only works for integers.
Since addition is disallowed, let's build an increment operator first:
```
int plusOne(int arg){
int onMask = 1;
int offMask = -1;
while (arg & onMask){
onMask <<= 1;
offMask <<= 1;
}
return(arg & offMask | onMask);
}
```
Next, we have to handle the sign. First, find the sign bit:
```
int signBit = -1;
while(signBit << 1) signBit <<=1;
```
Then take the sign and magnitude of each argument. To negate a number in a two's complement, invert all bits, and add one.
```
int signA = a & signBit;
if(signA) a = plusOne(-1 ^ a);
int signB = b & signBit;
if(signB) b = plusOne(-1 ^ b);
int signRes = signA ^ signB;
```
To multiply two positive integers, we can use the geometrical meaning of multiplication:
```
// 3x4
//
// ooo
// ooo
// ooo
// ooo
int res = 0;
for(int i = 0; i < a; i = plusOne(i))
for(int j = 1; j < b; j = plusOne(j))
res = plusOne(res);
if(signRes) res = plusOne(-1 ^ res);
```
---
trolls:
* Addition is disallowed, but does `a++` really count as addition? I bet the teacher intended to allow it.
* Relies on two's complement, but that's an implementation-defined behavior and the target platform wasn't specified.
* Similarly, assumes subtraction and division are disallowed just as well.
* `<<` is actually multiplication by a power of two, so it should technically be disallowed.
* unneccesary diagram is unneccesary. Also, it could have been transposed to save one line.
* repeated shifting of `-1` is not the nicest way of finding the sign bit. Even if there was no built-in constant, you could do a logical shift right of -1, then invert all bits.
* XOR -1 is a not the best way to invert all bits.
* The whole charade with sign-magnitude representation is unneccesary. Just cast to unsigned and modular arithmetic will do the rest.
* since the absolute value of `MIN_INT` (AKA `signBit`) is negative, this breaks for that value. Luckily, it still works in half the cases, because `MIN_INT * [even number]` *should* be zero. ~~Also, `plusOne` breaks for `-1`, causing infinite loops anytime the result overflows.~~ `plusOne` works just fine for any value. Sorry for the confusion.
[Answer]
Works for floating point numbers as well:
```
float mul(float a, float b){
return std::exp(std::log(a) - std::log(1.0 / b));
}
```
[Answer]
Everyone knows that Python is easier to use than C. And Python has functions corresponding to every operator, for cases where you can't use the operator. Which is exactly our problem definition, right? So:
```
#include <Python.h>
void multiply(int a, int b) {
PyObject *operator_name, *operator, *mul, *pa, *pb, *args, *result;
int result;
operator_name = PyString_FromString("operator");
operator = PyImport_Import(operator_name);
Py_DECREF(operator_name);
mul = PyObject_GetAttrString(operator, "__mul__");
pa = PyLong_FromLong((long)a);
pb = PyLong_FromLong((long)b);
args = PyTuple_New(2);
PyTuple_SetItem(args, 0, pa);
PyTuple_SetItem(args, 1, pb);
presult = PyObject_CallObject(mul, args);
Py_DECREF(args);
Py_DECREF(mul);
Py_DECREF(operator);
result = (int)PyLong_AsLong(presult);
Py_DECREF(presult);
return result;
}
int main(int argc, char *argv[]) {
int c;
Py_Initialize();
c = multiply(2, 3);
printf("2 * 3 = %d\n", c);
Py_Finalize();
}
```
[Answer]
None of the other answers are theoretically sound. As the very first comment on the question says:
>
> Please be more specific about "numbers"
>
>
>
We need to define multiplication, and numbers, before an answer is even possible. Once we do, the problem becomes trivial.
The most popular way to do this in beginning mathematical logic is to [build von Neumann ordinals on top of ZF set theory](http://en.wikipedia.org/wiki/Set-theoretic_definition_of_natural_numbers#The_contemporary_standard), and then use the [Peano axioms](http://en.wikipedia.org/wiki/Peano_axioms).
This translates naturally to C, assuming you have a set type that can contain other sets. It doesn't have to contain anything *but* sets, which makes it trivial (none of that casting `void*` nonsense in most set libraries), so I'll leave the implementation as an exercise for the reader.
So, first:
```
/* The empty set is 0. */
set_t zero() {
return set_new();
}
/* The successor of n is n U {n}. */
set_t successor(set_t n) {
set_t result = set_copy(n);
set_t set_of_n = set_new();
set_add(set_of_n, n);
set_union(result, set_of_n);
set_free(set_of_n);
return result;
}
/* It is an error to call this on 0, which will be reported by
running out of memory. */
set_t predecessor(set_t n) {
set_t pred = zero();
while (1) {
set_t next = successor(pred);
if (set_equal(next, n)) {
set_free(next);
return pred;
}
set_free(pred);
}
}
set_t add(set_t a, set_t b) {
if (set_empty(b)) {
/* a + 0 = a */
return a;
} else {
/* a + successor(b) = successor(a+b) */
set_t pred_b = predecessor(b)
set_t pred_ab = add(a, pred_b);
set_t result = successor(pred_ab);
set_free(pred_b);
set_free(pred_ab);
return result;
}
}
set_t multiply(set_t a, set_t b) {
if (set_empty(b)) {
/* a * 0 = 0 */
return b;
} else {
/* a * successor(b) = a + (a * b) */
set_t pred_b = predecessor(b)
set_t pred_ab = mul(a, pred_b);
set_t result = successor(pred_ab);
set_free(pred_b);
set_free(pred_ab);
return result;
}
}
```
If you want to expand this to integers, rationals, reals, surreals, etc., you can—with infinite precision (assuming you have infinite memory and CPU), to boot. But as Kroenecker famously said, God made the natural numbers; all else is the work of man, so really, why bother?
[Answer]
```
unsigned add( unsigned a, unsigned b )
{
return (unsigned)&((char*)a)[b]; // ignore compiler warnings
// (if pointers are bigger than unsigned). it still works.
}
unsigned umul( unsigned a, unsigned b )
{
unsigned res = 0;
while( a != 0 ){
if( a & 1) res = add( res, b );
b <<= 1;
a >>= 1;
}
return res;
}
int mul( int a, int b ){
return (int)umul( (unsigned)a, (unsigned)b );
}
```
If you consider the a[b] hack to be cheating (since it's really an add) then this works instead. But table lookups involve pointer adds too.
See <http://en.wikipedia.org/wiki/IBM_1620> - a conputer that actually did addition using lookup tables...
Something satisfying about using a table mechanism to 'speed up' an operation that could actually be done in one instruction.
```
static unsigned sumtab[17][16]= {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15},
{ 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16},
{ 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17},
{ 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18},
{ 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19},
{ 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20},
{ 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21},
{ 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22},
{ 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23},
{ 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24},
{10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25},
{11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26},
{12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27},
{13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28},
{14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29},
{15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30},
{16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31}
};
unsigned add( unsigned a, unsigned b )
{
static const int add4hack[8] = {4,8,12,16,20,24,28,32};
unsigned carry = 0;
unsigned (*sumtab0)[16] = &sumtab[0];
unsigned (*sumtab1)[16] = &sumtab[1];
unsigned result = 0;
int nshift = 0;
while( (a|b) != 0 ){
unsigned psum = (carry?sumtab1:sumtab0)[ a & 0xF ][ b & 0xF ];
result = result | ((psum & 0xF)<<nshift);
carry = psum >> 4;
a = a >> 4
b = b >> 4;
nshift= add4hack[nshift>>2]; // add 4 to nshift.
}
return result;
}
```
[Answer]
I'm not sure what constitutes "cheating" in these "code troll" posts, but this multiplies 2 arbitrary integers, at run time, with no `*` or `+` operator using standard libraries (C99).
```
#include <math.h>
main()
{
int a = 6;
int b = 7;
return fma(a,b,0);
}
```
[Answer]
My troll solution for `unsigned int`:
```
#include<stdio.h>
unsigned int add(unsigned int x, unsigned int y)
{
/* An addition of one bit corresponds to the both following logical operations
for bit result and carry:
r = x xor y xor c_in
c_out = (x and y) or (x and c_in) or (y and c_in)
However, since we dealing not with bits but words, we have to loop till
the carry word is stable
*/
unsigned int t,c=0;
do {
t = c;
c = (x & y) | (x & c) | (y & c);
c <<= 1;
} while (c!=t);
return x^y^c;
}
unsigned int mult(unsigned int x,unsigned int y)
{
/* Paper and pencil method for binary positional notation:
multiply a factor by one (=copy) or zero
depending on others factor actual digit at position, and shift
through each position; adding up */
unsigned int r=0;
while (y != 0) {
if (y & 1) r = add(r,x);
y>>=1;
x<<=1;
}
return r;
}
int main(int c, char** param)
{
unsigned int x,y;
if (c!=3) {
printf("Fuck!\n");
return 1;
}
sscanf(param[1],"%ud",&x);
sscanf(param[2],"%ud",&y);
printf("%d\n", mult(x,y));
return 0;
}
```
[Answer]
There are a lot of good answers here, but it doesn't look like many of them take advantage of the fact that modern computers are really powerful. There are multiple processing units in most CPUs, so why use just one? We can exploit this to get great performance results.
```
#include <stdio.h>
#include <limits.h>
#include "omp.h"
int mult(int a, int b);
void main(){
int first;
int second;
scanf("%i %i", &first, &second);
printf("%i x %i = %i\n", first, second, mult(first,second));
}
int mult(int second, int first){
int answer = INT_MAX;
omp_set_num_threads(second);
#pragma omp parallel
for(second = first; second > 0; second--) answer--;
return INT_MAX - answer;
}
```
Here's an example of its usage:
```
$ ./multiply
5 6
5 x 6 = 30
```
The `#pragma omp parallel` directive makes OpenMP divide each part of the for loop to a different execution unit, so we're multiplying in parallel!
Note that you have to use the `-fopenmp` flag to tell the compiler to use OpenMP.
---
Troll parts:
1. Misleading about the use of parallel programming.
2. Doesn't work on negative (or large) numbers.
3. Doesn't actually divide the parts of the `for` loop - each thread runs the loop.
4. Annoying variable names and variable reuse.
5. There's a subtle race condition on `answer--`; most of the time, it won't show up, but occasionally it will cause inaccurate results.
[Answer]
Unfortunately, multiplication is a very difficult problem in computer science. The best solution is to use division instead:
```
#include <stdio.h>
#include <limits.h>
int multiply(int x, int y) {
int a;
for (a=INT_MAX; a>1; a--) {
if (a/x == y) {
return a;
}
}
for (a=-1; a>INT_MIN; a--) {
if (a/x == y) {
return a;
}
}
return 0;
}
main (int argc, char **argv) {
int a, b;
if (argc > 1) a = atoi(argv[1]);
else a = 42;
if (argc > 2) b = atoi(argv[2]);
else b = 13;
printf("%d * %d is %d\n", a, b, multiply(a,b));
}
```
[Answer]
In real life I usually respond to trolling with knowledge, so here's an answer that doesn't troll at all. It works for all `int` values as far as I can see.
```
int multiply (int a, int b) {
int r = 0;
if (a < 0) { a = -a; b = -b }
while (a) {
if (a&1) {
int x = b;
do { int y = x&r; r ^= x; x = y<<1 } while (x);
}
a>>=1; b<<=1;
}
return r;
}
```
This is, to the best of my understanding, very much like how a CPU might actually do integer multiplication. First, we make sure that at least one of the arguments (`a`) is positive by flipping the sign on both if `a` is negative (and no, I refuse to count negation as a kind of either addition or multiplication). Then the `while (a)` loop adds a shifted copy of `b` to the result for every set bit in `a`. The `do` loop implements `r += x` using and, xor, and shifting in what's clearly a set of half-adders, with the carry bits fed back into `x` until there are no more (a real CPU would use full adders, which is more efficient, but C doesn't have the operators we need for this, unless you count the `+` operator).
[Answer]
```
int bogomul(int A, int B)
{
int C = 0;
while(C/A != B)
{
print("Answer isn't: %d", C);
C = rand();
}
return C;
}
```
[Answer]
Throwing this into the mix:
```
#include <stdio.h>
#include <stdlib.h>
int mul(int a, int b)
{
asm ("mul %2"
: "=a" (a)
: "%0" (a), "r" (b) : "cc"
);
return a;
}
int main(int argc, char *argv[])
{
int a, b;
a = (argc > 1) ? atoi(argv[1]) : 0;
b = (argc > 2) ? atoi(argv[2]) : 0;
return printf("%d x %d = %d\n", a, b, mul(a, b)) < 1;
}
```
---
[From info page](https://codegolf.stackexchange.com/tags/code-trolling/info).
*– Introducing something extremely unacceptable or unreasonable in the code that cannot be removed without throwing everything away, rendering the answer utterly useless for the OP.*
*– […] The intention is to do the homework in a language that the lazy OP might think acceptable, but still frustrate him.*
[Answer]
```
#include <stdio.h>
#include <stdlib.h>
int mult (int n1, int n2);
int add (int n1, int n2 );
int main (int argc, char** argv)
{
int a,b;
a = atoi(argv[1]);
b = atoi(argv[2]);
printf ("\n%i times %i is %i\n",a,b,mult(a,b));
return 0;
}
int add (int n1, int n2 )
{
return n1 - -n2;
}
int mult (int n1, int n2)
{
int sum = 0;
char s1='p', s2='p';
if ( n1 == 0 || n2 == 0 ) return 0;
if( n1 < 0 )
{
s1 = 'n';
n1 = -n1;
}
if( n2 < 0 )
{
s2 = 'n';
n2 = -n2;
}
for (int i = 1; i <= n2; i = add( i, 1 ))
{
sum = add(sum, n1);
}
if ( s1 != s2 ) sum = -sum;
return sum;
}
```
[Answer]
>
> Is it possible to write a C program that multiplies two numbers without using the multiplication and addition operators?
>
>
>
Sure:
```
void multiply() {
printf("6 times 7 is 42\n");
}
```
But of course that's cheating; obviously he wants to be able to \_supply) two numbers, right?
```
void multiply(int a, int b) {
int answer = 42;
if (answer / b != a || answer % b) {
printf("The answer is 42, so that's the wrong question.\n");
} else {
printf("The answer is 42, but that's probably not the right question anyway.\n");
}
}
```
[Answer]
There's no arithmetic like pointer arithmetic:
```
int f(int a, int b) {
char x[1][b];
return x[a] - x[0];
}
int
main(int ac, char **av) {
printf("%d\n", f(atoi(av[1]),atoi(av[2])));
return 0;
}
```
The function `f` implements multiplication. `main` simply calls it with two arguments.
Works for negative numbers as well.
[Answer]
# C#
I think subtraction and negation are not allowed...
Anyway:
```
int mul(int a, int b)
{
int t = 0;
for (int i = b; i >= 1; i--) t -= -a;
return t;
}
```
[Answer]
C with SSE intrinsics (because everything's better with SIMD):
```
#include <stdio.h>
#include <stdlib.h>
#include <xmmintrin.h>
static float mul(float a, float b)
{
float c;
__m128 va = _mm_set1_ps(a);
__m128 vb = _mm_set1_ps(b);
__m128 vc = _mm_mul_ps(va, vb);
_mm_store_ss(&c, vc);
return c;
}
int main(int argc, char *argv[])
{
if (argc > 2)
{
float a = atof(argv[1]);
float b = atof(argv[2]);
float c = mul(a, b);
printf("%g * %g = %g\n", a, b, c);
}
return 0;
}
```
The big advantage of this implementation is that it can easily be adapted to perform 4 parallel multiplications without `*` or `+` if required.
[Answer]
```
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define INF 1000000
char cg[INF];
int main()
{
int a, b;
char bg[INF];
memset(bg, '*', INF);
scanf("%d%d", &a, &b);
bg[b] = 0;
while(a--)
strcat(cg, bg);
int result;
printf("%s%n",cg,&result);
printf("%d\n", result);
return 0;
}
```
* work only for multiplication result < 1 000 000
* So far can't get rid out of -- operator, possibly enhancing here
* using %n format specifier in printf to count the number printed characters(I posting this mainly to remind of existence %n in C, instead of %n could of course be strlen etc.)
* Prints a\*b characters of '\*'
[Answer]
Probably too fast :-(
```
unsigned int add(unsigned int a, unsigned int b)
{
unsigned int carry;
for (; b != 0; b = carry << 1) {
carry = a & b;
a ^= b;
}
return a;
}
unsigned int mul(unsigned int a, unsigned int b)
{
unsigned int prod = 0;
for (; b != 0; a <<= 1, b >>= 1) {
if (b & 1)
prod = add(prod, a);
}
return prod;
}
```
[Answer]
This Haskell version only works with nonnegative integers, but it does the multiplication the way children first learn it. I.e., 3x4 is 3 groups of 4 things. In this case, the "things" being counted are notches ('|') on a stick.
```
mult n m = length . concat . replicate n . replicate m $ '|'
```
[Answer]
```
int multiply(int a, int b) {
return sizeof(char[a][b]);
}
```
This may work in C99, if the weather is right, and your compiler supports undefined nonsense.
[Answer]
Since [the OP didn't ask for C](https://codegolf.stackexchange.com/a/18366/14150), here's one in (Oracle) SQL!
```
WITH
aa AS (
SELECT LEVEL AS lvl
FROM dual
CONNECT BY LEVEL <= &a
),
bb AS (
SELECT LEVEL AS lvl
FROM dual
CONNECT BY LEVEL <= &b
)
SELECT COUNT(*) AS addition
FROM (SELECT * FROM aa UNION ALL SELECT * FROM bb);
WITH
aa AS (
SELECT LEVEL AS lvl
FROM dual
CONNECT BY LEVEL <= &a
),
bb AS (
SELECT LEVEL AS lvl
FROM dual
CONNECT BY LEVEL <= &b
)
SELECT COUNT(*) AS multiplication
FROM aa CROSS JOIN bb;
```
[Answer]
```
int add(int a, int b) {
return 0 - ((0 - a) - b);
}
int mul(int a, int b) {
int m = 0;
for (int count = b; count > 0; m = add(m, a), count = add(count, 0 - 1)) { }
return m;
}
```
May contain traces of UD.
[Answer]
```
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
int x = atoi(argv[1]);
int y = atoi(argv[2]);
FILE *f = fopen("m","wb");
char *b = calloc(x, y);
if (!f || !b || fwrite(b, x, y, f) != y) {
puts("503 multiplication service is down for maintenance");
return EXIT_FAILURE;
}
printf("%ld\n", ftell(f));
fclose(f);
remove("m");
return 0;
}
```
Test run:
```
$ ./a.out 1 0
0
$ ./a.out 1 1
1
$ ./a.out 2 2
4
$ ./a.out 3 2
6
$ ./a.out 12 12
144
$ ./a.out 1234 1234
1522756
```
] |
[Question]
[
**In:** Enough memory and a positive integer N
**Out:** N-dimensional N^N array filled with N, where N^N means N terms of N-by-N-by-N-by...
**Examples:**
1: `[1]` which is a 1D array (a list) of length 1, containing a single 1
2: `[[2,2],[2,2]]` which is a 2D array (a table) with 2 rows and 2 columns, filled with 2s
3: `[[[3,3,3],[3,3,3],[3,3,3]],[[3,3,3],[3,3,3],[3,3,3]],[[3,3,3],[3,3,3],[3,3,3]]]` which is a 3D array (a cube) with 3 layers, 3 rows, and 3 columns, filled with 3s
4: `[[[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]]],[[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]]],[[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]]],[[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]],[[4,4,4,4],[4,4,4,4],[4,4,4,4],[4,4,4,4]]]]`
5 and 6: Please see one of the answers.
[Answer]
# [Python](https://docs.python.org/2/), 32 bytes
```
lambda n:eval('['*n+'n'+']*n'*n)
```
[Try it online!](https://tio.run/nexus/python2#S7ON@Z@TmJuUkqiQZ5ValpijoR6trpWnrZ6nrq0eq5UHZGv@T8svUkhWyMxTMNQx0jG24uIsKMrMK1FI00jW/A8A "Python 2 – TIO Nexus")
Makes a string like `"[[[n]*n]*n]*n"` with `n` multiplcations, and evaluates it as Python code. Since the evaluation happens within the function scope, the variable name `n` evaluates to the function input.
[Answer]
# J, 4 bytes
```
$~#~
```
[Try it online!](https://tio.run/nexus/j#@5@mYGuloFKnXMfFlZqcka@QpmD8/z8A "J – TIO Nexus")
## Explanation
```
$~#~ Input: integer n
#~ Create n copies of n
$~ Shape n into an array with dimensions n copies of n
```
[Answer]
# [APL (Dyalog APL)](https://www.dyalog.com/), 4 bytes
```
⍴⍨⍴⊢
```
[Try it online!](https://tio.run/nexus/apl-dyalog#@5@m8KhtgsKj3i2PeleAyK5FXFyP@qaCRdMUDJHYRkhsYyS2yf//AA "APL (Dyalog APL) – TIO Nexus")
[Answer]
# Mathematica, ~~22~~ 20 bytes
```
(t=Table)@@t[#,#+1]&
(* or *)
Table@@Table[#,#+1]&
```
[Answer]
## JavaScript (ES6), ~~44~~ 40 bytes
```
f=(n,k=i=n)=>i--?f(n,Array(n).fill(k)):k
```
### Demo
```
f=(n,k=i=n)=>i--?f(n,Array(n).fill(k)):k
console.log(JSON.stringify(f(1)))
console.log(JSON.stringify(f(2)))
console.log(JSON.stringify(f(3)))
console.log(JSON.stringify(f(4)))
```
[Answer]
# Octave, ~~35~~ ~~33~~ ~~25~~ ~~23~~ 20 bytes
```
@(N)ones(N+!(1:N))*N
```
[Try it online!](https://tio.run/nexus/octave#@@@g4aeZn5darOGnrahhaOWnqanl9z8xr1jDWPM/AA "Octave – TIO Nexus")
```
@(N)ones(N*ones(1,N))*N
@(N)repmat(N,N*ones(1,N))
```
Thanks to @LuisMendo saved 8 bytes
```
@(N)ones(num2cell(!(1:N)+N){:})*N
```
[Try it online!](https://tio.run/nexus/octave#@@@g4aeZn5darJFXmmuUnJqTo6GoYWjlp6ntp1ltVaup5fc/Ma9Yw1jzPwA "Octave – TIO Nexus")
Previous answer:
```
@(N)repmat(N,num2cell(!(1:N)+N){:})
```
[Try it online!](https://tio.run/nexus/octave#@@@g4adZlFqQm1ii4aeTV5prlJyak6OhqGFo5aep7adZbVWr@T8xr1jDWPM/AA "Octave – TIO Nexus")
[Answer]
# R, 26
This is the obvious answer but perhaps there is something cleverer?
```
n=scan();array(n,rep(n,n))
```
[Answer]
# [Haskell](https://www.haskell.org/), 52 bytes
```
f n=iterate(filter(>'"').show.(<$[1..n]))(show n)!!n
```
[Try it online!](https://tio.run/nexus/haskell#FchBCoAgEAXQq3xDcGYzEG2zi0QLKSWhJiih41vuHu8MWeGRtcQ7rAUWCYI7hq0mqM@tS6SUj180uc6xPPv1Co127kV0YaYWUDZGax0@ "Haskell – TIO Nexus")
Inspired by [@nimi's answer](https://codegolf.stackexchange.com/a/111700), but using more predefined functions.
* Uses `iterate` and `!!` instead of a recursive help function.
* Instead of constructing list delimiters "by hand", uses `filter(>'"').show` to format a list of strings, then stripping away the extra `"` characters.
[Answer]
# [05AB1E (legacy)](https://github.com/Adriandmen/05AB1E/tree/fb4a2ce2bce6660e1a680a74dd61b72c945e6c3b), ~~6~~ 5 bytes
-1 thanks to [Kevin Cruijssen](https://codegolf.stackexchange.com/users/52210/kevin-cruijssen)
```
F¹.D)
```
[Try it online!](https://tio.run/##MzBNTDJM/f/f7dBOPRfN//@NAQ "05AB1E (legacy) – Try It Online")
```
F # For 0 .. input
¹.D) # Push <input> copies of the result of the last step as an array
```
[Answer]
## Haskell, 62 bytes
```
n#0=show n
n#l='[':tail((',':)=<<n#(l-1)<$[1..n])++"]"
f n=n#n
```
Usage example: `f 2` -> `"[[2,2],[2,2]]"`. [Try it online!](https://tio.run/nexus/haskell#FcqxDkAwFAXQ3Ve8qKRt0BCb9P0Bk1E6dBGSuoSKz68480kQDd/r8RIyiMByln30W1BKVrLXbC2ECnWrbTG3xsDpssxdni0EhkDa/QZi2v05kjqfOMVrgFk0/btzlD4 "Haskell – TIO Nexus").
Haskell's strict type system prevents a function that returns nested lists of different depths, so I construct the result as a string.
How it works:
```
n#l= n with the current level l is
'[': a literal [ followed by
n#(l-1)<$[1..n] n copies of n # (l-1)
(',':)=<< each prepended by a , and flattened into a single list
tail and the first , removed
++"]" followed by a literal ]
n#0=show n the base case is n as a string
f n=n#n main function, start with level n
```
[Answer]
# [Python 2](https://docs.python.org/2/), 36 bytes
-2 bytes thanks to @CalculatorFeline
```
a=n=input()
exec"a=[a]*n;"*n
print a
```
[Try it online!](https://tio.run/nexus/python2#@59om2ebmVdQWqKhyZVakZqslGgbnRirlWetpJX3v6AoM69EI1HzvwkA "Python 2 – TIO Nexus")
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 5 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
⁾Wẋẋv
```
**[Try it online!](https://tio.run/nexus/jelly#@/@ocV/4w13dQFT2//9/EwA "Jelly – TIO Nexus")**
### How?
```
⁾Wẋẋv - Main link: n e.g. 3
⁾Wẋ - character pair literal ['W','ẋ'] "Wẋ"
ẋ - repeat list n times "WẋWẋWẋ"
v - evaluate as Jelly code with input n eval("WẋWẋWẋ", 3)
- ...
WẋWẋ... - toEval: n e.g. 3
W - wrap [3]
ẋ - repeat list n times [3,3,3]
Wẋ - wrap and repeat [[3,3,3],[3,3,3],[3,3,3]]
... - n times total [[[3,3,3],[3,3,3],[3,3,3]],[[3,3,3],[3,3,3],[3,3,3]],[[3,3,3],[3,3,3],[3,3,3]]]
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 4 bytes
```
R»µ¡
```
[Try it online!](https://tio.run/##y0rNyan8/z/o0O5DWw8t/P//vzEA "Jelly – Try It Online")
```
R»µ¡
R Range. 2 -> [1, 2]
» Max between left arg and right arg. Vectorizes. -> [2, 2]
µ Separates into a new chain.
¡ Repeat 2 times. After another iteration this yields [[2, 2], [2, 2]].
```
Same thing but with a single monad and no need for the chain separator:
[**4 bytes**](https://tio.run/##y0rNyan8///Q7kdNaxIOLfz//78xAA)
```
»€`¡
```
[Answer]
# MATL, 8 bytes
```
ttY"l$l*
```
Try it at [**MATL Online**](https://matl.io/?code=ttY%222%24X%22%0A%0A%27Actual+Size%27yZy++++%25+Display+the+actual+size&inputs=4&version=19.8.0) (I have added some code showing the *actual* size of the output since all n-dimensional outputs in MATL are shown as 2D matrices where all dimensions > 2 are flattened into the second dimension).
**Explanation**
```
% Implicitly grab the input (N)
tt % Make two copies of N
Y" % Perform run-length decoding to create N copies of N
l$1 % Create a matrix of ones that is this size
* % Multiply this matrix of ones by N
% Implicitly display the result
```
[Answer]
# [CJam](https://sourceforge.net/p/cjam), 12 bytes
```
ri:X{aX*}X*p
```
[Try it online!](https://tio.run/nexus/cjam#@1@UaRVRnRihVRuhVfD/vzEA "CJam – TIO Nexus")
**Explanation**
```
ri:X Read an integer from input, store it in X (leaves it on the stack)
{ }X* Execute this block X times:
a Wrap the top of stack in an array
X* Repeat the array X times
p Print nicely
```
[Answer]
# Java ~~97~~ ~~96~~ 95 bytes
```
Object c(int n,int i){Object[]a=new Object[n];for(int j=0;j<n;)a[j++]=i<2?n:c(n,i-1);return a;}
```
---
Ungolfed:
```
public class N_Dim {
public static Object create(int n) {
return create(n, n);
}
public static Object create(int n, int i) {
Object[] array = new Object[n];
for(int j=0;j<n;j++) {
array[j] = i<2?n:create(n, i - 1);
}
return array;
}
public static void main(String[] args) {
System.out.println(Arrays.deepToString((Object[]) create(3)));
}
}
```
[Answer]
## JavaScript (ES6), 38 bytes
```
f=(n,m=n)=>m?Array(n).fill(f(n,m-1)):n
```
The memory-hungry version of this is 45 bytes:
```
f=(n,m=n)=>m?[...Array(n)].map(_=>f(n,m-1)):n
```
[Answer]
## Batch, 141 bytes
```
@set t=.
@for /l %%i in (2,1,%1)do @call set t=%%t%%,.
@set s=%1
@for /l %%i in (1,1,%1)do @call call set s=[%%%%t:.=%%s%%%%%%]
@echo %s%
```
Batch doesn't actually have arrays so this just prints the string representation of an array. Explanation: The first two lines build up a repeated pattern of `N` `.`s separated by `N-1` `,`s in the variable `t`. The fourth line then uses this as a substitution pattern `N` times to create the `N`-dimensional array. The double `call` is necessary because of how the `for` and `set` statements work. First, the `for` command substitutes variables. As it happens, all of my `%` signs are doubled, so this does nothing except to unquote them all, resulting in `call call set s=[%%t:.=%s%%%]`. It then repeats the resulting statement `N` times. Each time, the `call` command substitutes variables. At this point, the `s` variable only has a single set of `%`s, so it gets substituted, resulting in (e.g.) `call set s=[%t:.=[2,2]%]`. The inner call then substitutes the `t` variable, resulting in (e.g.) `set s=[[2,2],[2,2]]`, performing the desired assignment. The final value of `s` is then printed.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 5 bytes
```
Wẋ³µ¡
```
[Try it online!](https://tio.run/nexus/jelly#@x/@cFf3oc2Hth5a@P//fxMA "Jelly – TIO Nexus")
## Explanation
```
Implicit input: N
µ¡ Apply N times to input:
Wẋ³ “N copies of”
```
[Answer]
# [Python 3](https://docs.python.org/3/), ~~57~~ ~~53~~ ~~50~~ 38 bytes
```
f=lambda n,c=0:n-c and[f(n,c+1)*n]or 1
```
[Try it online!](https://tio.run/nexus/python3#@59mm5OYm5SSqJCnk2xrYJWnm6yQmJcSnaYB5GsbamrlxeYXKRj@z7PNzCvRyMwrKC3R0NTkKigCcYGKNDX/mwAA "Python 3 – TIO Nexus")
---
-4 bytes thanks to @CalculatorFeline
---
**34 bytes:**
```
f=lambda c,n:c and[f(c-1,n)*n]or 1
```
Needs to be called as `f(4,4)`
[Answer]
# Ruby, 28 26 bytes
*Thanks to [Cyoce](https://codegolf.stackexchange.com/users/41042/cyoce) for saving 2 bytes!*
```
->n{eval'['*n+'n'+']*n'*n}
```
Stolen shamelessly from [xnor](https://codegolf.stackexchange.com/users/20260/xnor)'s [excellent answer](https://codegolf.stackexchange.com/a/111696/58437).
[Answer]
## Ruby, 27 bytes
```
->a{(z=a).times{z=[z]*a};z}
```
Only 1 byte more but using a different approach instead of the 'eval' trick from xnor's wonderful Python answer.
[Answer]
# [Bash](https://www.gnu.org/software/bash/) + GNU utilities, 117 bytes
```
n=$[$1**$1]
seq -f$1o%.fd$n+1-p $n|dc|rev|sed -r "s/(0+|$[$1-1]*).*$/\1/;s/^(0*)/\1$1/;s/^1/[1]/"|tr \\n0$[$1-1] \ []
```
[Try it online!](https://tio.run/nexus/bash#LcsxDoMwDEDRvaewkJHAKDiWulU9SZIuTRhDm6BOvnsKgu3/4bX8RIdChBJuNX3BLChrPy8R8yTmA5g1vrWkn9YUwRToKg920kMZCTTOhOyFH5Vfg6VxbzxP2EngTrcC3md7AfDgQmvt/gc "Bash – TIO Nexus")
---
The program essentially counts from 0 to (n^n)-1 in base n, where n is the input. For each base-n number k in the count, it does the following:
1. If k ends with at least one digit 0, print a '[' for each digit 0 at the end of k.
2. Print n.
3. If k ends with at least one digit n-1, print a ']' for each digit n-1 at the end of k.
(The value n=1 needs to have brackets added as a special case. This input value also generates some output to stderr, which can be ignored under standard PPCG rules.)
Maybe there's a shorter way to implement this idea.
---
Sample run:
```
./array 3
[[[3 3 3] [3 3 3] [3 3 3]] [[3 3 3] [3 3 3] [3 3 3]] [[3 3 3] [3 3 3] [3 3 3]]]
```
[Answer]
# [Haskell](https://www.haskell.org/), 51 bytes
Other than the existing Haskell solutions this constructs a usable data type not just a string representation thereof (and is shorter):
```
data L=N[L]|E Int
f n=iterate(N.(<$[1..n]))(E n)!!n
```
[Try it online!](https://tio.run/##PYyxCoNAEET7@4oRUniFQiClVsEiIDZJJxZHXHNHzBruNmgg/24UQZiBea8Ya8KT@n6eWyMGZV7VZfMrcGFRHTh3Qt4IxVUaZ4f6mKbcaB0XYB1FPCcJbtYFLBm4/4KJWmrhOoyE0bBABry9W4cleAqfXpTjIIbvhKsdRpQYLXlSQFhx@Z40kG807brCFPSug1Iv43jh7T1Ft9STaZFnGR4k54GFWMJ8@gM "Haskell – Try It Online")
### Explanation / Ungolfed
The reason why this is an interesting challenge in Haskell is that a solution to this challenge needs to return different deeply nested lists and Haskell (without importing external modules) does not support this. One workaround which turned out to be the golfiest, is to define our own data type:
```
data NestedList = Nest [NestedList] | Entry Int
```
Now we can just define a function `f :: Int -> NestedList` which is able to represent all the required data types:
```
pow n = iterate (Nest . replicate n) (Entry n) !! n
```
[Answer]
# [MathGolf](https://github.com/maxbergmark/mathgolf), ~~5~~ 4 bytes
```
_{a*
```
[Try it online!](https://tio.run/##y00syUjPz0n7/z@@OlHr/39DLiMuYy6T/wA "MathGolf – Try It Online")
## Explanation using `n = 2` (note that the outermost `[]` are not arrays, but are just there to show the stack)
```
_ duplicate TOS (stack is [2, 2])
{ loop 2 times (stack is [2])
a wrap in array ([2] => [[2]], [[2, 2]] => [[[2, 2]]])
* pop a, b : push(a*b) ([[2]] => [[2, 2]], [[[2, 2]]] => [[[2, 2], [2, 2]]])
```
[Answer]
# [Raku](https://raku.org), 21 bytes
[try it online!](https://tio.run/##K0gtyjH7/786OrqiIlYBTKjEK1RUKBjH1mqkp5Zo6hUnVv7/bwQA)
```
{[[xx] [xx] $_ xx 3]}
```
[Answer]
# [Julia 0.6](http://julialang.org/), ~~23~~ 21 bytes
```
n->n>(n>n)...
> =fill
```
[Try it online!](https://tio.run/##yyrNyUw0@59m@z9P1y7PTiPPLk9TT0@Py07BNi0zJ@d/bmKBBlBGIyWzuCAnsVIjTSNPU9O6oCgzryQnT0NTU0dBw1DHWMdUU/M/AA "Julia 0.6 – Try It Online")
(Thanks to @MarcMush for -2 bytes.)
In Julia, binary operators are parsed as function calls, so `a>b` is `>(a, b)`, which here is `fill(a, b)`. So the above is really saying:
```
n->fill(n,fill(n,n)...)
```
The first argument to `fill` is the value to fill the new array with. The following arguments to that are the dimensions of the new array. Here we create those dimensions themselves using another `fill` call: we create an array of `n` `n`s, then splat that with `...` so that the first `fill` call gets n number of dimension arguments, each with value n - so it creates an n-dimensional array where each dimension length is n, and filled with the value n.
[Answer]
# [Perl 6](https://perl6.org), 25 bytes
```
{($^n,{$_ xx$n}...*)[$n]}
```
Starts with `n`, and iteratively applies the "repeat n times" transformation `n` times, each time creating an additional level of `List` nesting.
[Try it online!](https://tio.run/nexus/perl6#y61UUEtTsP1fraESl6dTrRKvUFGhklerp6enpRmtkhdb@784sVIhTcHQmgvCMIIxjGEME@v/AA "Perl 6 – TIO Nexus")
[Answer]
# PHP, ~~70~~ 62 bytes
This is the simplest I can come up with.
```
for(;$i++<$n=$argv[1];)$F=array_fill(0,$n,$F?:$n);print_r($F);
```
Takes the input as the first argument and prints the resulting array on the screen.
---
Thanks to [@user59178](https://codegolf.stackexchange.com/users/59178/user59178) for saving me **8 bytes**!
[Answer]
# Clojure, 36 bytes
```
#(nth(iterate(fn[a](repeat % a))%)%)
```
Iterates function which repeats its argument `n` times, it produces infinite sequence of such elements and then takes its `n`th element.
[See it online](https://ideone.com/l9pMOD)
] |
[Question]
[
[Dropsort](http://www.dangermouse.net/esoteric/dropsort.html), designed by David Morgan-Mar, is an example of a linear-time "sorting algorithm" that produces a list that is, in fact, sorted, but contains only *some* of the original elements. Any element that is not at least as large as the maximum of the elements preceding it is simply removed from the list and discarded.
In this task, you will be given a list of integers as input (STDIN or function argument, you are required to support at least the range of 8-bit signed integers.) Your task is to dropsort them and then output the remaining elements in order.
You may assume that the list is non-empty.
This is code-golf, so the shortest program wins.
**Test Cases**
```
Input Output
1 2 5 4 3 7 1 2 5 7
10 -1 12 10 12
-7 -8 -5 0 -1 1 -7 -5 0 1
9 8 7 6 5 9
10 13 17 21 10 13 17 21
10 10 10 9 10 10 10 10 10
```
**Leaderboard**
```
var QUESTION_ID=61808,OVERRIDE_USER=39022;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+ANSWER_FILTER}function commentUrl(e,s){return"https://api.stackexchange.com/2.2/answers/"+s.join(";")+"/comments?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+COMMENT_FILTER}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.share_link.match(/\d+/);answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return e.owner.display_name}function process(){var e=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r="<h1>"+e.body.replace(OVERRIDE_REG,"")+"</h1>")});var a=r.match(SCORE_REG);a&&e.push({user:getAuthorName(s),size:+a[2],language:a[1],link:s.share_link})}),e.sort(function(e,s){var r=e.size,a=s.size;return r-a});var s={},r=1,a=null,n=1;e.forEach(function(e){e.size!=a&&(n=r),a=e.size,++r;var t=jQuery("#answer-template").html();t=t.replace("{{PLACE}}",n+".").replace("{{NAME}}",e.user).replace("{{LANGUAGE}}",e.language).replace("{{SIZE}}",e.size).replace("{{LINK}}",e.link),t=jQuery(t),jQuery("#answers").append(t);var o=e.language;/<a/.test(o)&&(o=jQuery(o).text()),s[o]=s[o]||{lang:e.language,user:e.user,size:e.size,link:e.link}});var t=[];for(var o in s)s.hasOwnProperty(o)&&t.push(s[o]);t.sort(function(e,s){return e.lang>s.lang?1:e.lang<s.lang?-1:0});for(var c=0;c<t.length;++c){var i=jQuery("#language-template").html(),o=t[c];i=i.replace("{{LANGUAGE}}",o.lang).replace("{{NAME}}",o.user).replace("{{SIZE}}",o.size).replace("{{LINK}}",o.link),i=jQuery(i),jQuery("#languages").append(i)}}var ANSWER_FILTER="!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe",COMMENT_FILTER="!)Q2B_A2kjfAiU78X(md6BoYk",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page;getAnswers();var SCORE_REG=/<h\d>\s*([^\n,]*[^\s,]),.*?(\d+)(?=[^\n\d<>]*(?:<(?:s>[^\n<>]*<\/s>|[^\n<>]+>)[^\n\d<>]*)*<\/h\d>)/,OVERRIDE_REG=/^Override\s*header:\s*/i;
```
```
body{text-align:left!important}#answer-list,#language-list{padding:10px;width:290px;float:left}table thead{font-weight:700}table td{padding:5px}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b"> <div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table>
```
[Answer]
# APL, 9 bytes
```
⊢(/⍨)⊢=⌈\
```
This is a monadic function train with diagram:
```
┌─┼───┐
⊢ ⍨ ┌─┼─┐
┌─┘ ⊢ = \
/ ┌─┘
⌈
```
The non-train version is
```
{⍵/⍨⍵=⌈\⍵}
```
This basically checks if each element is equal to the running maximum.
*Note that **[Martin Büttner's J solution](https://codegolf.stackexchange.com/a/61818/39328)** is the same length as this and was posted first.*
[Answer]
# J, ~~10~~ 9 bytes
```
#~(=>./\)
```
Working version of my CJam idea (in fewer bytes). E.g.:
```
f =: #~(=>./\)
f 10 10 10 9 10
10 10 10 10
f 1 2 5 4 3 7
1 2 5 7
```
## Explanation
First, we get the maximum of each prefix, with:
```
>./\
```
(Here, `>.` is the maximum operator, `/` folds that operator onto a list, and `\` gets all the prefixes of the input.)
Then we compare the initial list with those maxima for equality:
```
(=>./\)
```
And finally, we select all elements where this list of boolean results gave a `1`:
```
#~(=>./\)
```
[Answer]
## Haskell, 28
```
foldr(\x l->x:filter(x<)l)[]
```
An anonymous function. Call it like
```
foldr(\x l->x:filter(x<)l)[] [-7, -8, -5, 0, -1, 1]
[-7,-5,0,1]
```
Equivalent to the recursion
```
f[]=[]
f(x:l)=x:filter(x<)(f l)
```
Translated iteratively, we iterate over the elements, and for each one we see, we remove the ones smaller than it from the remainder of the list that we're iterating over. Thanks to Antisthenes for a byte saved with `(x<)`.
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog), 5 bytes
```
⊇ᶠ↔ᵒt
```
[Try it online!](https://tio.run/##SypKTM6ozMlPN/r//1FX@8NtCx61TXm4dVLJ///RRjqGOsY6JkAMJGP/RwEA "Brachylog – Try It Online")
# [Jelly](https://github.com/DennisMitchell/jelly), 5 bytes
```
ŒPUÞṪ
```
[Try it online!](https://tio.run/##y0rNyan8///opIDQw/Me7lz1////aCMdQx1jHRMgBpKxAA "Jelly – Try It Online")
## Explanation
```
⊇ᶠ↔ᵒt ŒPUÞṪ
⊇ᶠ ŒP On all subsequences of {the input}
ᵒ Þ sort by
↔ U their reverse
t Ṫ then take the last element (i.e. the maximum as given by the sort)
```
This is a rare situation: I get to use an algorithm which (as far as I could tell with a quick skim) nobody is using so far, and it somehow ends up the same length in two very different golfing languages with very different syntax and builtin sets, with a 1-to-1 correspondence between the programs (the commands are even in the same order!). So it seemed to make more sense to combine them – in a way, these are the same program, and I wrote it in both languages to see which was shorter – than to submit them separately.
The basic idea here is that the dropsort of a list is its subsequence with the lexicographically maximum reverse. Oddly, neither Brachylog nor Jelly has a builtin to find the maximum by a particular function (Jelly has a builtin to return *all the maxima* by a particular function, but that'd return a singleton list containing the result rather than the result itself, and also isn't even shorter than doing it this way). So instead, we generate all possible subsequences, sort by reverse, take the last.
The reason why "lexicographically maximum reverse" works is that the chosen output must end (thus its reverse must start) with the highest number in the input list (it's easy to see that the dropsort output will always end with that), and thus can't contain anything after that (because taking subsequences preserves order). Repeat inductively and we end up with the definition of dropsort.
[Answer]
# Octave, ~~27~~ 19 bytes
```
@(a)a(cummax(a)==a)
```
[Answer]
# JavaScript (ES6), 29
Abusing of the standard type conversion in javascript, array to number:
* array of just 1 number => that number
* any other array => NaN
```
d=l=>l.filter(v=>l>v?0:[l=v])
// TEST
console.log=x=>O.innerHTML+=x+'\n'
;[
[[1,2,5,4,3,7], [1,2,5,7]]
, [[10,-1,12], [10,12]]
, [[-7,-8,-5,0,-1,1], [-7,-5,0,1]]
, [[9,8,7,6,5], [9]]
, [[10,13,17,21], [10,13,17,21]]
, [[10,10,10,9,10], [10,10,10,10]]
].forEach(t=>( i=t[0],r=d(i),x=t[1],
console.log('Test '+i+' -> '+r+(r+''==x+''?' OK':' Fail (expected '+x+')')))
)
```
```
<pre id=O></pre>
```
[Answer]
# Python 2, 49
```
f=lambda a:a and f(a[:-1])+a[-1:]*(a[-1]==max(a))
```
[Answer]
# Pyth, 12 bytes
```
eMfqeTeST._Q
```
[Verify all test cases at once.](https://pyth.herokuapp.com/?code=eMfqeTeST._Q&test_suite=1&test_suite_input=%5B1%2C+2%2C+5%2C+4%2C+3%2C+7%5D%0A%5B10%2C+-1%2C+12%5D%0A%5B-7%2C+-8%2C+-5%2C+0%2C+-1%2C+1%5D%0A%5B9%2C+8%2C+7%2C+6%2C+5%5D%0A%5B10%2C+13%2C+17%2C+21%5D%0A%5B10%2C+10%2C+10%2C+9%2C+10%5D)
### How it works
```
._Q Compute all prefixes of the input.
f Filter; for each T in the prefixes:
eT Retrieve the last element of T.
eST Sort T and retrieve its last element.
q Check for equality.
Keep T if q returned True.
eM Select the last element of each kept T.
```
[Answer]
# Mathematica, 26 Bytes
```
DeleteDuplicates[#,#>#2&]&
```
[Answer]
# R, ~~29~~ 26 bytes
```
function(x)x[x>=cummax(x)]
```
This creates a function object that accepts a vector `x` and returns `x` after removing all elements not at least as large as the cumulative maximum of `x`.
Saved 3 bytes thanks to flodel!
[Answer]
# K, 11 bytes
```
{x@&~x<|\x}
```
In action:
```
f: {x@&~x<|\x}
f'(1 2 5 4 3 7
10 -1 12
-7 -8 -5 0 -1 1
9 8 7 6 5
10 13 17 21
10 10 10 9 10)
(1 2 5 7
10 12
-7 -5 0 1
,9
10 13 17 21
10 10 10 10)
```
[Answer]
# Java, 82 bytes
```
void f(int[]a){int m=a[0];for(int n:a){System.out.print(m>n?"":n+" ");m=n>m?n:m;}}
```
Here's a simple output loop. It just keeps the max in `m` and compares each element.
[Answer]
## Perl, 33 bytes
**32 bytes code + `-p`**
```
$p=$_;s/\S+ ?/$&>=$p&&($p=$&)/ge
```
If additional spaces are acceptable in the output, can be 31 bytes by removing and `?`. Accepts a string (or number of newline separated) strings via `STDIN`:
```
perl -pe'$p=$_;s/\S+ ?/$&>=$p&&($p=$&)/ge' <<< '-7 -8 -5 0 -1 1'
-7 -5 0 1
```
```
perl -pe'$p=$_;s/\S+ ?/$&>=$p&&($p=$&)/ge' <<< '10 10 10 9 10'
10 10 10 10
```
[Answer]
# Python 3, 67
Pretty brute force. Changed it to a function, because I missed that it was a valid answer.
```
def f(i):
s=[i[0]]
for n in i[1:]:
if s[-1]<=n:s+=[n]
return s
```
Ungolfed version:
```
input_numbers = input().split()
sorted_numbers = []
previous_number = int(input_numbers[0])
for number in map(int, input_numbers):
if previous_number <= number:
sorted_numbers.append(number)
previous_number = number
print(sorted_numbers)
```
[Answer]
# Haskell, ~~38~~ 37 bytes
Saved 1 byte thanks to [JArkinstall](https://codegolf.stackexchange.com/users/45300/jarkinstall).
```
f(x:y:s)|x>y=f$x:s|1>0=x:f(y:s)
f s=s
```
[Answer]
# C# - ~~68~~64 or ~~132~~127 Characters
```
int[]f(int[]b){return b.Where((v,i)=>i<1||b[i-1]<=v).ToArray();}
```
`Where` in this case is iterating through the list, and for each element `v` at index `i` in the list, evaluates the boolean expression. If the expression evaluates to true, then the item is added to the result. The only real trick to the boolean expression is that C# short circuits or evaluation as soon as a condition evaluates to true. This prevents the `IndexOutOfRangeException` exception, and keeps the first element in the list.
If the input and output have to be strings (I couldn't tell for sure, so I'll leave it to the OP and the rest of you to decide.)
```
string t(string b){var c=b.Split(' ').Select(d=>int.Parse(d)).ToList();return String.Join(" ",c.Where((v,i)=>i<1||c[i-1]<=v));}
```
Decompressing that a bit gives:
```
string t(string b)
{
var c=b.Split(' ').Select(d=>int.Parse(d)).ToList();
return String.Join(" ",c.Where((v, i)=>i<1||c[i-1]<=v));
}
```
In this case the second line of the function is using the exact same logic as above. The `Select` grabs the elements of the list and converts them to `int`. The call to `ToList`1 forces the select to be evaluated, and turns the `var` into a `List<int>` at compile time, so that the `Where` is operating on a collection of integers.
[Try it on C# Pad](http://csharppad.com/gist/57d00bb5cc690cd0185d)
**Thanks to [VisualMelon](https://codegolf.stackexchange.com/users/26981/visualmelon) for helping trim 4 bytes and 5 bytes respectively. :)**
1 tutu list?
[Answer]
# CJam, 15 bytes
```
q~{_2$<{;}&}*]p
```
Try it online in the [CJam interpreter](http://cjam.aditsu.net/#code=q~%7B_2%24%3C%7B%3B%7D%26%7D*%5Dp&input=%5B1%202%205%204%203%207%5D).
### How it works
```
q~ Read an evaluate all input.
{ }* Reduce; push the first element; or each remaining element:
_2$ Copy the topmost and second topmost element from the stack.
< Check if the topmost is smaller than the second topmost.
{;}& If it is, remove it from the stack.
] Wrap the stack i an array.
p Print.
```
[Answer]
# [><>](https://esolangs.org/wiki/Fish) with -v flag, ~~36~~ 31 + 2 = 33 bytes
```
:&\o " "&n:~& <
~ >l?!;:&:&(?!^
```
Input the list on the stack with -v so that the first element of the list is at the top of the stack. It will print the dropsorted list with a trailing space.
Test run :
```
$ for input in "1 2 5 4 3 7" "10 -1 12" "-7 -8 -5 0 -1 1" "9 8 7 6 5" "10 13 17 21" "10 10 10 9 10"; do echo $input '-> ' $(python fish.py dropsort.fsh -v $(echo $input | tac -s ' ')); done
1 2 5 4 3 7 -> 1 2 5 7
10 -1 12 -> 10 12
-7 -8 -5 0 -1 1 -> -7 -5 0 1
9 8 7 6 5 -> 9
10 13 17 21 -> 10 13 17 21
10 10 10 9 10 -> 10 10 10 10
```
Edit : saved 5 bytes thanks to Fongoid
[Answer]
# [PowerShell](https://github.com/TryItOnline/TioSetup/wiki/Powershell), 32 bytes
```
$args|?{$e-eq$p-or$_-ge$p;$p=$_}
```
[Try it online!](https://tio.run/##XZD9aoNAEMT/9ykGsy0GTsjZtKmU0LyJSLI1gtGrd6Etxme3G7@a9GC5Y@Y3u8ea6otre@Si6OgDWzQdpXVmL@8NccifZMKqpiTMmMwbmS0lbdd63i7wICcItEKk8KywVnhS2CwVhjMbIk3sSiEUXUczNbKrQRy5cCPcq5Skp0if6I1B1DMdKwgrzouMu2sc303W8j0tWKRvoP/GLT9WfL2myK0hqrfEBQ9o@hilivjb8N7xQRZJyaDWbM@FE@FR9rtLsYA1RepcXmY94I@EL9v25wZ@7y3@XHmfy311OnHp4I65RZGXDFfhkF8b/mAArdd2vw "PowerShell – Try It Online")
Less golfed:
```
$args|?{
$empty -eq $previous -or $_ -ge $previous
$previous = $_
}
```
[Answer]
# [Husk](https://github.com/barbuz/Husk), 2 bytes
```
ü<
```
[Try it online!](https://tio.run/##yygtzv6fm1/8qKnx/@E9Nv///4@ONtQx0jHVMdEx1jGP1Yk2NNDRNdQxNAIydc11dC10dE11IEJAEUsdCx1zHTMd09hYAA "Husk – Try It Online")
nub sieve using lesser than.
[Answer]
# C: 73 bytes
```
int i,j;i=j=INT_MIN;while(scanf("%d",&j)!=EOF)if(j>=i)printf("%d",j),i=j;
```
or
# C: 49 bytes
**(If [customs header](https://github.com/Darelbi/codegolf/blob/master/c) made for codegolf competitions is allowed)**
```
I z,y;z=y=INT_MIN;w(s(D,&y)!=E)i(y>z)p(D,y),z=y;}
```
Still can't beat CJam, but at least this allow to beat few other languages.
[Answer]
## Burlesque, 13 bytes
11 byte solution that passes test-cases:
```
-.2CO:so)[~
```
[Try online here](http://104.167.104.168/~burlesque/burlesque.cgi?q=%7B1%202%205%204%203%207%7D-.2CO%3Aso%29[~).
Explanation:
```
-. -- prepend head of list to list
2CO -- n-grams (sliding window) of size 2
:so -- filter sorted lists
)[~ -- map last
```
However, this version only works by using the fact, that no two smaller numbers are in between two numbers. Otherwise use the version below (which is 13B):
**Older versions:**
```
J-]{cm-1.>}LO
```
[Try online here.](http://104.167.104.168/~burlesque/burlesque.cgi?q=%7B1%202%205%204%203%207%200%200%209%7DJ-]%7Bcm-1.%3E%7DLO)
Explanation:
```
J -- duplicate
-] -- head
{
cm -- compare (returning -1,0 or 1)
-1.> -- greater than -1
}LO -- Loop
```
If you'd drop equal numbers as well you could go with just `.>` instead of using `cm`. Also, if lists only contain positive numbers you can use either `0` or `-1` instead of `J-]`.
[Answer]
## [Minkolang 0.9](https://github.com/elendiastarman/Minkolang), 18 bytes
```
ndN(nd1R`2&dN$I$).
```
[Try it here.](http://play.starmaninnovations.com/minkolang/?code=ndN%28nd1R%602%26dN%24I%24%29%2E&input=10%2010%2010%209%2010)
### Explanation
```
ndN Take first integer from input
( $I$). Repeat until the input is empty and then stop.
nd1R` Is the next integer less than the previous one?
2&dN If not (i.e., it's greater than or equal to), print it.
```
[Answer]
# NARS2000 APL, 13 bytes
NARS2000 is a free APL interpreter for Windows; it includes [multiset features](http://wiki.nars2000.org/index.php/Multisets) accessed with the `⍦` operator.
```
(+⍦∩⌈\)
```
This is a monadic fork that takes the multiset intersection (`⍦∩`) of the input (`+`)\* and the list of running maximums (`⌈\`).
Since `⍦` is not a standard APL character in the one-byte APL legacy encodings, we must use UTF-8, making the `⍦∩⌈` characters three bytes each. I chose `+` instead of `⊢` to save two bytes.
NARS2000 supports forks, which can be built into trains without parentheses, but unlike Dyalog it doesn't allow assignment to a function without wrapping the function in parentheses.
\*`+` is technically complex conjugate, but the input is real.
[Answer]
# Python, 102 99 94 + 5 6 non-file-final newlines = 107 105 100 bytes
(I used tabs for indentation)
```
def d(l):
j=b=0;m=l[j];r=[]
for i in l:
(m,b)=[(m,0),(i,1)][i>=m]
if b>0:r+=[i]
j+=1
l[:]=r
```
Not the best out there, but this is my first shot at code golf. Couldn't figure out a way to sort the list inline without running into removal-related bugs, so I moved the ordered elements to a temporary list.
EDIT: list.append() is shorter than doing it the ugly way
r+=[i] was shorter than list.append(); thanks [njzk2](https://codegolf.stackexchange.com/users/14736/njzk2)!
[Answer]
# Scala: 232 126 120 bytes
```
def f(x:Int*)=(Seq[Int]()/:x)((r,y)=>r.headOption.filter(y>=).map(_=>y+:r).getOrElse(if(r.isEmpty) y+:r else r)).reverse
```
[Answer]
# Scala, 54 bytes
```
def f(x:Int*)=(x:\Seq[Int]())((y,r)=>y+:r.filter(y<=))
```
Ungolfed:
```
def dropSort(xs: Seq[Int]): Seq[Int] =
xs.foldRight(Seq.empty[Int]) { (x, result) =>
x +: result.filter(r => r >= x)
}
```
[Answer]
## Tiny Lisp, 107 bytes
([This language was only published](https://codegolf.stackexchange.com/q/62886/2338) after this question, so this answer runs out of competition. Not that it had any chance to win. *The [language](https://github.com/dloscutoff/Esolangs/tree/master/tinylisp) later evolved further to have more buildins than the ones I used here, but I'm staying with the version I originally implemented in 2015. [This answer still works with the newer official interpreter](https://tio.run/##ZY/BCoMwEETvfsUcZw@C0drYzzEV2oBKTbz06@0mFsE2hNnd2Zddsvr5Pfr42jYOCFzICb3Qo6fnyKcWkzBg4qqp8J4thj1kT13JOmCIaYJL711G3Y66hLqDTLt06QouYB8eEUm0UWijLABtEJwlpekwosK3FGgUFMpGMI8xqNHiggY2zzj8CixhBKY@@WpaSdplbQUHeOJu6GBxVeBnqmlgLGrz5@d7U9FPfgA), though it gives some warnings because I define a parameter `a` which shadows the new buildin `a` (for adding).*Thanks to DLosc for the TIO link.)
`(d r(q((m a)(i a(i(l(h a)m)(r m(t a))(c(h a)(r(h a)(t a))))()))))(d ds(q((b)(i b(c(h b)(r(h b)(t b)))()))))`
This defines a function `ds` (and its recursive helper function `r`) which sorts its argument, which must be a list of integers.
`r` is not a tail-recursive function, so for very long lists this might run into a stack overflow.
Ungolfed:
```
(d r
(q((m a)
(i a
(i (l (h a) m)
(r m (t a))
(c (h a)
(r (h a) (t a))
)
)
()
)
) )
)
(d ds
(q(
(b)
(i b
(c (h b)
(r (h b) (t b))
)
()
)
) )
)
```
Here are some examples how to use this (with the test cases from the question):
```
(d list (q (args args)))
(d -
(q( (n)
(s 0 n)
) )
)
(ds (list 1 2 5 4 3 7))
(ds (list 10 (- 1) 12))
(ds (list (- 7) (- 8) (- 5) 0 (- 1) 1))
(ds (list 9 8 7 6 5))
(ds (list 10 13 17 21))
(ds (list 10 10 10 9 10))
```
(Yeah, `-7` is not an integer literal, so we have to define a function to represent them.)
Output:
```
list
-
(1 2 5 7)
(10 12)
(-7 -5 0 1)
(9)
(10 13 17 21)
(10 10 10 10)
```
[Answer]
# Jelly, 5 bytes
```
=»\Tị
```
Note that the challenge predates the creation of Jelly.
[Try it online!](http://jelly.tryitonline.net/#code=PcK7XFThu4s&input=&args=WzEsIDIsIDUsIDQsIDMsIDdd)
### How it works
```
=»\Tị Main link. Argument: A (list)
»\ Yield the cumulative maxima of A.
= Perform element-by-element comparison.
Yields 1 iff A[n] = max(A[1], ..., A[n]).
T Get all indices of truthy elements.
ị Retrieve the items of A at those indices.
```
[Answer]
# SWI-Prolog, 55 bytes
```
A/B:-append(C,[D,E|F],A),E<D,append(C,[D|F],G),G/B;A=B.
```
Usage: Call "*List*/X" where *List* is a bracket-enclosed, comma-separated list e.g. [1,4,5,1,11,6,7].
] |
[Question]
[
>
> This is a repost [of an old challenge](https://codegolf.stackexchange.com/q/8369/8478), in order to adjust the I/O requirements to our recent standards. This is done in an effort to allow more languages to participate in a challenge about this popular sequence. See [this meta post](https://codegolf.meta.stackexchange.com/q/14871/8478) for a discussion of the repost.
>
>
>
The Kolakoski sequence is a fun self-referential sequence, which has the honour of being OEIS sequence [A000002](http://oeis.org/A000002) (and it's much easier to understand and implement than A000001). The sequence starts with **1**, consists only of **1**s and **2**s and the sequence element **a(n)** describes the length of the **n**th run of **1**s or **2**s in the sequence. This uniquely defines the sequence to be (with a visualisation of the runs underneath):
```
1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,2,1,2,1,1,2,1,2,2,1,1,2,1,1,2,...
= === === = = === = === === = === === = = === = = === === = === =
1, 2, 2, 1,1, 2, 1, 2, 2, 1, 2, 2, 1,1, 2, 1,1, 2, 2, 1, 2, 1,...
```
Your task is, of course, to implement this sequence. You may choose one of three formats to do so:
1. Take an input **n** and output the **n**th term of the sequence, where **n** starts either from **0** or **1**.
2. Take an input **n** and output the terms *up to and including* the **n**th term of the sequence, where **n** starts either from **0** or **1** (i.e. either print the first **n** or the first **n+1** terms).
3. Output values from the sequence indefinitely.
In the second and third case, you may choose any reasonable, unambiguous list format. It's fine if there is no separator between the elements, since they're always a single digit by definition.
In the third case, if your submission is a function, you can also return an infinite list or a generator in languages that support them.
You may write a [program or a function](https://codegolf.meta.stackexchange.com/q/2419) and use any of our [standard methods](https://codegolf.meta.stackexchange.com/q/2447) of receiving input and providing output. Note that [these loopholes](https://codegolf.meta.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default) are forbidden by default.
This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so the shortest valid answer – measured in *bytes* – wins.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 7 bytes
```
2Rṁxṁµ¡
```
This is a full program that prints the first **n** terms.
[Try it online!](https://tio.run/##y0rNyan8/98o6OHOxgogPrT10ML///8bGwMA "Jelly – Try It Online")
### How it works
```
2Rṁxṁµ¡ Main link. Argument: n (integer)
µ Combine the preceding links into a monadic chain.
¡ Set t = n. Call the chain n times, updating t with the return value after
each call. Yield the last value of t.
2R Set the return value to 2 and take its range. Yields [1, 2].
ṁ Mold; cyclically repeat 1 and 2 to match t's length.
In the first run, ṁ promotes t = n to [1, ..., n].
x Repeat the k-th element of the result t[k] times.
In the first run, x repeats each element t = n times.
ṁ Mold; truncate the result to match the length of t.
In the first run, ṁ promotes t = n to [1, ..., n].
```
### Example run
Let **n = 5**.
The first invocation of the chain repeats **1, 2** cyclically to reach length **5**, then each element **5** times, and finally truncates the result to length **5**.
```
1 2 1 2 1
x 5 5 5 5 5
---------------------------------------------------
1 1 1 1 1 2 2 2 2 2 1 1 1 1 1 2 2 2 2 2 1 1 1 1 1
1 1 1 1 1
```
This yields a list of length **5**. The first element is the first element of the Kolakoski sequence.
The second invocation of the chain repeats **1, 2** cyclically to reach length **5**, then repeats the **k**th element **j** times, where **j** is the **k**th element of the previous list, and finally truncates the result to length **5**.
```
1 2 1 2 1
x 1 1 1 1 1
------------
1 2 1 2 1
1 2 1 2 1
```
This yields another list of length **5**. The first two elements are the first two elements of the Kolakoski sequence.
The process continues for three more iterations.
```
1 2 1 2 1
x 1 2 1 2 1
----------------
1 2 2 1 2 2 1
1 2 2 1 2
```
```
1 2 1 2 1
x 1 2 2 1 2
------------------
1 2 2 1 1 2 1 1
1 2 2 1 1
```
```
1 2 1 2 1
x 1 2 2 1 1
----------------
1 2 2 1 1 2 1
1 2 2 1 1
```
These are the first five elements of the Kolakoski sequence.
[Answer]
# [Python 2](https://docs.python.org/2/), 42 bytes
```
x=y=-1
while 1:x=x/2^y;y<<=x%2;print x%2+1
```
[Try it online!](https://tio.run/##K6gsycjPM/r/v8K20lbXkKs8IzMnVcHQqsK2Qt8ortK60sbGtkLVyLqgKDOvRAHI0jb8/x8A "Python 2 – Try It Online")
Full disclosure - I didn't find the solution myself. I let my brute forcer do the heavy lifting for me and just watched the results roll in. At first, I didn't even try to understand the solution. I just assumed it was too complicated for me to wrap my head around. But then I realized that It's actually pretty simple.
[Answer]
# [Python 2](https://docs.python.org/2/), 51 bytes
```
l=[2]
print 1,2,
for x in l:print x,;l+=x*[l[-1]^3]
```
Prints indefinitely. Builds the list `l` as it's being iterated through. For each entry `x` of `l`, appends `x` copies of `1` or `2`, whichever is opposite the current last element.
The main difficulty is dealing with the initial self-referential fragment `[1,2,2]`. This code just prints the initial `1,2` and proceeds from there. The extra printing costs 12 bytes. Without that:
[**39 bytes**](https://tio.run/##K6gsycjPM/r/P8c22iiWKy2/SKFCITNPIceqoCgzr0ShwjpH27ZCKzonWtcwNs449v9/AA "Python 2 – Try It Online"), missing first two entries:
```
l=[2]
for x in l:print x;l+=x*[l[-1]^3]
```
Another approach is to specially initialize the first two entries. We initialize `l` as `[0,0,2]` so that the first two entries don't cause appending, but `print x or n` makes them be printed as `n`.
[**51 bytes**](https://tio.run/##K6gsycjPM/r/P8c22kDHQMcolivP1pArLb9IoUIhM08hx6qgKDOvBMgBiuRZ52jbVmhF58Va58XZGv//DwA "Python 2 – Try It Online")
```
l=[0,0,2]
n=1
for x in l:print x or n;l+=x*[n];n^=3
```
Another fix is to initialize `l=[1]`, track the alternation manually in `n`, and correct the printing:
[**51 bytes**](https://tio.run/##K6gsycjPM/r/P0/HNsc22jCWKy2/SKFCITNPIceqoCgzr0QjxxYormMYq6ldYZ2jbVuhFZ0Xa50XZ2v8/z8A "Python 2 – Try It Online")
```
n,=l=[1]
for x in l:print(l==[1,1])+x;l+=x*[n];n^=3
```
Without the `(l==[1,1])+`, everything works except the printed sequences starts `1,1,2` instead of `1,2,2`. There has to be a better way to recognize we're at this second step.
And another weird fix, also somehow the same byte count:
[**51 bytes**](https://tio.run/##K6gsycjPM/r/P8c22jDWutDWiCstv0ihQiEzTyHHqqAoM69EocI6R9u2Qis6J1rXMDbOOFarEKiu0AaoCQA "Python 2 – Try It Online")
```
l=[1];q=2
for x in l:print x;l+=x*[l[-1]^3]*q;q=q<2
```
[Answer]
## [Wumpus](https://github.com/m-ender/wumpus), ~~13~~ 11 bytes
```
=[=)O?=!00.
```
[Try it online!](https://tio.run/##Ky/NLSgt/v/fNtpW09/eVtHAQO//fwA "Wumpus – Try It Online")
Prints the sequence indefinitely without separators.
I am genuinely surprised by how short this is.
### Explanation
The basic idea is to keep the sequence on the stack and repeatedly use the bottom-most element to generate another run and then print it. We're effectively abusing the stack as a queue here. We can also save a couple of bytes by working `0` and `1` (incrementing only for output) instead of `1` and `2`, because this way we don't need to explicitly initialise the stack with a `1` and we can use logical negation to toggle between the two values.
```
The entire program is run in a loop.
At the beginning of loop iteration i, a(i)-1 will be at the bottom of the
stack and the first element of the ith run of values will be on top.
The caveat is that on the first iteration, the stack is empty, but
popping from an empty stack produces an implicit zero.
= Duplicate the top of the stack. Since this is defined as "pop x, push
x, push x" this will result in 2 zeros when the stack is empty.
After this we've got two copies of the ith run's value on top of the stack.
[ Pull up a(i)-1 from the bottom of the stack.
=)O Duplicate, increment to a(i) and print it.
?= If a(i)-1 is 1 (as opposed to 0), make another copy of the top of the
stack. We've now got a(i)+1 copies, so one more than the run should be
long, but that's great because we can use the additional copy to get
the start of the next run.
! Logical negation which swaps 0 and 1.
00. Jump back to the beginning of the program.
```
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog), ~~30 26 25 23 17~~ 16 bytes
```
~l{1|2}ᵐ.~lᵐ~ḅa₀
```
Outputs the first **n** values.
[Try it online!](https://tio.run/##SypKTM6ozMlPN/r/vy6n2rDGqPbh1gl6dTlAsu7hjtbER00N//@b/Y8CAA "Brachylog – Try It Online")
This is *extremely* slow: **n = 6** takes over 30 seconds on TIO.
[Answer]
# [Husk](https://github.com/barbuz/Husk), 10 bytes
```
Ṡωo↑⁰`Ṙ¢ḣ2
```
Returns the first **n** values.
[Try it online!](https://tio.run/##ASEA3v9odXNr///huaDPiW/ihpHigbBg4bmYwqLhuKMy////MzA "Husk – Try It Online")
## Explanation
```
Ṡωo↑⁰`Ṙ¢ḣ2 Input is an integer N.
ḣ2 The range [1,2]
¢ Cycle: C = [1,2,1,2,1,2...
ω Iterate until fixed point is found:
Ṡ `Ṙ Replicate the list C element-wise according to the current list,
o↑⁰ then take first N elements.
```
For input 20, the process goes like this:
```
[1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2...
[1,2,2,1,2,2,1,2,2,1,2,2,1,2,2,1,2,2,1,2]
[1,2,2,1,1,2,1,1,2,2,1,2,2,1,1,2,1,1,2,2]
[1,2,2,1,1,2,1,2,2,1,2,1,1,2,2,1,2,2,1,1]
[1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,1,2]
[1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,2,1]
[1,2,2,1,1,2,1,2,2,1,2,2,1,1,2,1,1,2,2,1]
```
[Answer]
# Java 10, ~~155~~ ~~108~~ ~~105~~ ~~100~~ ~~97~~ 94 bytes
```
v->{var s="122";for(int i=1;;s+=(s.charAt(i)>49?11:1)<<i%2)System.out.print(s.charAt(++i-2));}
```
Prints indefinitely without delimiter.
-3 bytes after an indirect tip from *@Neil*.
-5 bytes thanks to *@MartinEnder*.
-3 bytes converting Java 8 to Java 10.
-3 bytes thanks to *@ceilingcat* with the binary left-shift trick.
**Explanation:**
[Try it online](https://tio.run/##RY5NCsIwEIX3nmIQhITSQIobja14ALsR3IiLMbYaTdOSpAGRnr3GHxBmGGaY9953w4Dp7XwfpUbnYIvKPCcAyvjK1igrKN8rQGjVGSTZv0egIt6G2LGcR68klGAghzGkxTOgBZdPeZZNRd1aEr1A5VwIl@TEMXlFu/FE0WK@WHO@5HS1UrOM7h7OVw1re886GzX/1yRRaUapGEbxzez6k46Zv@gPWhPByc5H4eVwRPqFNkwS02v94x3GFw) (times out after 60 sec on TIO).
```
v->{ // Method with empty unused parameter and no return-type
var s="122"; // String, starting at "122"
for(int i=1;; // Loop `i` from 1 upwards indefinitely
s+= // After every iteration: Append the String with:
(s.charAt(i)>49?11:1)
// Either once or twice depending on the digit at index `i`
<<i%2) // With digits 2 or 1 by left-shifting with `i` modulo-2
System.out.print(s.charAt(++i-2));}
// Print the character at index `i-2` of the String
// After we've first increased `i` by 1 with `++i`
```
The binary for 1 and 11 are `1` and `1011`. If we left-shift with `0` they'll remain the same, but if we left-shift with `1` they'll become `10` (binary for 2) and `10110` (binary for 22) respectively.
[Answer]
# [Python 2](https://docs.python.org/2/), 45 bytes
```
x=y=0
while 1:print 1+x%2;x^=~y&~-y;y=~-y&x/2
```
[Try it online!](https://tio.run/##K6gsycjPM/r/v8K20taAqzwjMydVwdCqoCgzr0TBULtC1ci6Is62rlKtTrfSutIWSKpV6AOVAwA "Python 2 – Try It Online")
Based on [this blog post](https://11011110.github.io/blog/2016/10/14/kolakoski-sequence-via.html), but golfed better. Has the bonus advantage of only using logarithmic space.
-1 thanks to [xnor](https://codegolf.stackexchange.com/users/20260/xnor) who realised we can invert and use `~x` and `~y` instead of `x` and `y` to avoid writing `x=y=-1` for the initial condition.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 10 bytes
```
’߀+\<¹SḂ‘
```
Returns the **n**th term.
[Try it online!](https://tio.run/##y0rNyan8//9Rw8zD8x81rdGOsTm0M/jhjqZHDTP@G5odbgeK/QcA "Jelly – Try It Online")
### How it works
```
’߀+\<¹SḂ‘ Main link. Argument: n (positive integer)
’ Decrement; yield n-1.
߀ Recursively map the main link over [1, ..., n-1].
+\ Take the cumulative sum.
The k-th sum is the combined length of the first k runs.
<¹ Compare each sum with n.
S Sum the Booleans.
This counts the number of runs that occur before the n-th term.
If there's an even number (including 0) of runs, the n-th term is 1.
If there's an odd number of runs, the n-th term is 2.
Ḃ Extract the least significant bit of the count.
‘ Increment.
```
[Answer]
# [J](http://jsoftware.com/), 12 bytes
Single-argument function taking *n* and producing the first *n* terms. [Try it online!](https://tio.run/##y/qvpKeeZmulrlNrZaBgZfBfRcNQ26jGU08zzir2vyZXcUlKfmmJg5KVQpqCscF/AA "J – Try It Online")
```
$(1+2|I.)^:]
```
Just sprucing up my [old answer](https://codegolf.stackexchange.com/a/26560/5138) to the old question.
`I.` is a verb which takes an array of numbers and spits out a list of indices, so that if the *k*-th item in the array is *n*, then the index *k* appears *n* times. We'll use it to bootstrap the Kolakowski sequence up from an initial seed. Each step will proceed as follows:
```
1 2 2 1 1 2 1 2 2 1 (some prefix)
0 1 1 2 2 3 4 5 5 6 7 7 8 8 9 (use I.)
0 1 1 0 0 1 0 1 1 0 1 1 0 0 1 (mod 2)
1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 (add 1)
```
If we perform this operation (`1+2|I.`) over and over starting from 10, it looks something like this:
```
10
1 1 1 1 1 1 1 1 1 1
1 2 1 2 1 2 1 2 1 2
1 2 2 1 2 2 1 2 2 1 2 2 1 2 2
1 2 2 1 1 2 1 1 2 2 1 2 2 1 1 ...
1 2 2 1 1 2 1 2 2 1 2 1 1 2 2 ...
1 2 2 1 1 2 1 2 2 1 2 2 1 1 2 ...
```
Notice how we get more and more correct terms each time, and after a while the first *n* terms are fixed. The number of iterations it takes to settle down is hard to describe precisely, but it looks to be roughly logarithmic in *n*, so if we just run it *n* times (`^:]`) it should be fine. (Check out these other OEIS sequences for more info: [generation lengths](http://oeis.org/A054352), [partial sums](http://oeis.org/A054353).)
Once we're done that, all we have to do is take the first *n* terms using `$`. The construction `$v` for any verb `v` is an example of a hook, and giving it `n` as argument will execute `n $ (v n)`.
Here is the old 13-byte version which is far less wasteful of time and space: `($1+2|I.)^:_~`. It truncates the input at every step, so we can run exactly as many times as is needed to settle, instead of linearly many times.
[Answer]
# [Haskell](https://www.haskell.org/), 33 bytes
```
r=r%1
~(x:t)%n=n:[n|x>1]++t%(3-n)
```
[Try it online!](https://tio.run/##y0gszk7Nyfn/v8i2SNWQq06jwqpEUzXPNs8qOq@mws4wVlu7RFXDWDdP839uYmaegq1CQVFmXomCikJJYnaqgqGBgULRfwA "Haskell – Try It Online")
Ørjan Johansen saved 7 bytes using an irrefutable pattern to force the prefix.
[Answer]
# [Shakespeare Programming Language](https://github.com/TryItOnline/spl), ~~594 583~~ 572 bytes
*Thanks to Ed Wynn for -10 bytes!*
```
,.Ford,.Puck,.Act I:.Scene I:.[Enter Ford and Puck]Ford:You cat!Open heart!You big cat!Open heart!Puck:Remember you!Remember me!Scene V:.Ford:You is the sum ofI a cat!Puck:Recall!Open heart!Ford:Remember a pig!Is I nicer a cat?If notyou be the sum ofyou a big pig!Scene X:.Puck:Recall!Ford:Is I nicer zero?If soremember I!If solet usScene X!Puck:Is I nicer zero?You is the sum ofI a big cat!If soyou is I!Remember zero!Remember I!Remember you!You be the difference betweena big cat you!Scene L:.Ford:Recall!Is you worse I?If so,let usScene V!Puck:Remember I!Let usScene L!
```
[Try it online!](https://tio.run/##bZHLasMwEEV/ZbQ3@gBvShcNCAwtLYSEkoUijxNTWzJ6ENyfdz2SYwvTneZxz9wZuaGbpoIfjK0L/hHUT8FflQdR8i@FGunx/aY9WqAWkLoG6rpQVJ5NACU9ex9Qwx2l9YxS1/a2T5Om/MQe@@uMGk1ga9AjS6OOJV@prQN/R3ChB9MIkJG3QJTsupwdRStOwtDemHAgQLcqJmbti2hAGz@SO8zQlJDRMKmSj1PJ80kRn/F@0RrCOWOfMwWLcYceglsgye1e9@9uz3tFyJg6xHYgEm5RVqAznreN6rZp0KJWOGf8A1Gv6NiajFXLlZftZoM08WGsmz877VXkixx3fydYlVUrNk1/ "Shakespeare Programming Language – Try It Online")
This is a golfed version of [Ed Wynn's ungolfed solution](https://codegolf.stackexchange.com/a/164267/76162), starting from the [828 byte solution](https://tio.run/##hVLLaoQwFP2V637IB7gZytCC0KGlhWGG0kWM10cnJpJExK@3ifEV29KNqDmPe8@JbvgwUPIkVXYgry27H8gDM5DE5J2hQPfy8SgMKnAQoCIDh/p0j/gNa6xTe0aho4rcZAsp2g8tRbQ5U5iBvvfkpUEBJVJlIicWO3ylLSCtCviSAcC7n2OyIGkNSTTZMsq519jY8Ar9@UYm0dA7rh496GzGqDmO9CS3wx56P4gpEXRbg8w9aYZOUZxisrVfpXNqvHQpi6NX5Gig1XZz0yoBRoKXuJJw6CR6/h14mjyvk6cLwKXqh16cJc/CpUbwutTYxrzFjhsE4oSY7PZ8m7mvz/F3US@fFhjMZfUK@9uUVEzqtvytstow50vzI3t3H25rL1mV56hQMLRo0yGKcPJRy2d2ieeUdz0tGzfVPz2dSXi//@zpQobhGw) he linked in the [comments](https://codegolf.stackexchange.com/questions/157403/compute-the-kolakoski-sequence#comment397761_164267) and going a little nuts from there.
### Explanation:
```
,.Ford,.Puck,.Act I:.Scene I:.[Enter Ford and Puck] Boilerplate, introducing the characters
Ford:You cat!Open heart!You big cat!Open heart! Print 1,2 as the first two terms of the sequence
Puck:Remember you!Remember me! Initialise stack as 0, 2
Ford's value is currently 0, representing the value to be pushed to the stack
Scene V:. Start infinite loop
Ford:You is the sum ofI a cat!
Puck:Recall!Open heart! Pop the next value in the stack and print it
Ford:Remember a pig! Push -1 as the end of the stack
Is I nicer a cat? If Ford's value is 2
If notyou be the sum ofyou a big pig! Subtract 2 from Puck's value to represent making 2 only one copy
#Reverse the stack until it reaches the terminator value 0 or -1
Scene X:.Puck:Recall!Ford:Is I nicer zero?If soremember I!If solet usScene X!
Puck:Is I nicer zero? Check if the Puck's value is bigger than 0 (only making one copy)
You is the sum of Ia big cat! Set Ford's value to Puck+2 to counter the change
If soyou is I! But undo it if making one copies
Remember zero! Push 0 as the stack terminator
Remember I! Push Ford's value, which is 0 or -1 if this is a single copy, or 1 or 2 for a double copy
Remember you! Push one copy of Puck's value
You be the difference betweena big cat you! Map Ford's value from 1,2 to 1,0
Scene L:. #Reverse the stack until it reaches the terminator 0
Ford:Recall!Is you worse I?If solet us Scene V!
Puck:Remember I!Let usScene L!
```
[Answer]
## [Gol><>](https://github.com/Sp3000/Golfish), ~~8~~ 7 bytes
```
:{:PnKz
```
[Try it online!](https://tio.run/##S8/PScsszvj/36raKiDPu@r/fwA "Gol><> – Try It Online")
### Explanation
This is a port of [my Wumpus answer](https://codegolf.stackexchange.com/a/157469/8478). Gol><> is basically *the* language that has all the necessary features to port the Wumpus answer (specifically, implicit zeros at the bottom of stack, "duplicate" implemented "pop, push, push", and a stack rotation command), but:
* It has a toroidal grid, which means we don't need the explicit `00.` to jump back to the beginning.
* It has `K`, which is "pop N, then duplicate the next element N times", which can replace `?=`, saving another byte.
So the mapping from Wumpus to Gol><> becomes:
```
Wumpus Gol><>
= :
[ {
= :
) P
O n
?= K
! z
00.
```
[Answer]
# JavaScript, ~~67~~ ~~66~~ ~~60~~ ~~58~~ ~~52~~ ~~51~~ 50 bytes
Well, that made my brain itch more than it should have! Retruns the `n`th term, 0-indexed.
```
s=`122`
x=1
f=n=>s[n]||f(n,s+=s[++x%2]*(s[x]+0-9))
```
5+1 bytes saved thanks to [tsh](https://codegolf.stackexchange.com/users/44718/tsh) scratching my itchy brain!
---
## Test it
The snippet below will output the first 50 terms.
```
s=`122`
x=1
f=n=>s[n]||f(n,s+=s[++x%2]*(s[x]+0-9))
o.innerText=[...Array(50).keys()].map(f).join`, `
```
```
<pre id=o></pre>
```
---
## Explanation
This is one of those rare occasions when we can declare some variables outside the scope of our function, modify them within the function and still be able to reuse them on subsequent calls of the function.
```
s=`122` :Initialise variable s as the string "122"
x=1 :Initialise variable x as integer 1
f=n=> :Named function f taking input as an argument through parameter n
s[n] :If s has a character at index n, return it and exit
|| :Or
f(n :Call f with n again
,s+= :At the same time, append to s
s[++x%2] : Increment x, modulo by 2 and get the character at that index in s
* : Multiplied by (the above gets cast to an integer)
(s[x]+0-9) : Append a 0 to the xth character of s and subtract 9
) : (The above gives "1"+0-9="10"-9=1 or "2"+0-9="20"-9=11)
```
[Answer]
# [Haskell](https://www.haskell.org/), 48 bytes
*-1 byte thanks to nimi. -2 bytes thanks to Lynn.*
```
c=1:2:c
l=1:2:drop 2(id=<<zipWith replicate l c)
```
[Try it online!](https://tio.run/##HcUxDoAgDAXQ3VP8wUE3ZSRwDmdSm9BQkSCTl6@Jb3k5PYVVzSju3nma9P/sd4Nb5IwhvNIOGRmdmwqlwVDQaleSiojWpQ7MGKkw3Aa1Dw "Haskell – Try It Online")
Repeat every element its position mod 2 + 1 times.
[Answer]
# [><>](https://esolangs.org/wiki/Fish), ~~13~~ 12 bytes
```
0:{:1+n?:0=!
```
[Try it online!](https://tio.run/##S8sszvj/38Cq2spQO8/eysBW8f9/AA "><> – Try It Online")
A port of Martin Ender's [Wumpus answer](https://codegolf.stackexchange.com/a/157469/8478). Unfortunately, `><>` doesn't have an increment or an invert command nor does it have implicit 0s on the bottom of the stack, so this ends up being a bit longer.
[Answer]
# [Fueue](https://github.com/TryItOnline/fueue), 30 bytes
Fueue is a queue-based esolang in which the running program and its data are both in the same queue, the execution goes around the queue in cycles, and programming requires lots of synchronizing to keep anything from executing at the wrong time.
```
1)2:[[2:])~)~:~[[1]:~))~:~~]~]
```
[Try it online!](https://tio.run/##SytNLU39/99Q08gqOtrIKlazTrPOqi462jDWqk4TxKyLrYv9/x8A "Fueue – Try It Online")
The above prints an unending list of digits as control codes. For 34 bytes it can print actual digits:
```
49)50:[[50:])~)~:~[[49]:~))~:~~]~]
```
[Try it online!](https://tio.run/##SytNLU39/9/EUtPUwCo6GkjEatZp1lnVRUebWMZa1WmC2HWxdbH//wMA "Fueue – Try It Online")
The rest of the explanation uses the latter version.
# Summary of Fueue elements
The Fueue queue can contain the following kind of elements:
* Integers, which print their Unicode codepoint when executed,
* Square-bracket delimited subprogram blocks, which are mercifully inactive (just moving to the end of the queue) unless the `)` function *deblocks* them, and
* Single-character functions, which execute if they are followed by the right type of arguments and remain inactive otherwise.
+ The only functions used in this program are `~` (swap two following elements), `:` (duplicate next element), and `)` (deblock following block).
# High level overview
During the main loop of the program, the queue consists of:
* a chain of blocks representing digits to be iterated through;
+ A digit 1 or 2 is represented by the blocks `[49]` and `[50:]`, respectively.
* a self-replicating main loop section that traverses the digit blocks and puts alternating 1s and 2s after them, then deblocks them.
+ An deblocked digit block prints its own digit *d*, and then creates *d* copies of the following block, thus creating the digits for the run it describes.
# Low level trace of first 10 commands
```
Cmds Explanation Queue
49 Print '1'. )50:[[50:])~)~:~[[49]:~))~:~~]~]
) Inactive, move to end. 50:[[50:])~)~:~[[49]:~))~:~~]~])
50 Print '2'. :[[50:])~)~:~[[49]:~))~:~~]~])
:[...] Duplicate block. )[[50:])~)~:~[[49]:~))~:~~]~][[50:])~)~:~[[49]:~))~:~~]~]
)[...] Deblock (rmv. brackets). [[50:])~)~:~[[49]:~))~:~~]~][50:])~)~:~[[49]:~))~:~~]~
[...] Inactive. [50:])~)~:~[[49]:~))~:~~]~[[50:])~)~:~[[49]:~))~:~~]~]
[50:] Inactive. )~)~:~[[49]:~))~:~~]~[[50:])~)~:~[[49]:~))~:~~]~][50:]
) Inactive. ~)~:~[[49]:~))~:~~]~[[50:])~)~:~[[49]:~))~:~~]~][50:])
~)~ Swap ) and ~. :~[[49]:~))~:~~]~[[50:])~)~:~[[49]:~))~:~~]~][50:])~)
:~ Duplicate ~. [[49]:~))~:~~]~[[50:])~)~:~[[49]:~))~:~~]~][50:])~)~~
```
# Walkthrough of a full main loop iteration
Optional whitespace has been inserted to separate commands.
```
49 ) 50 :[[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 1: `49` prints `1`. `)` is inactive, waiting to be brought together with the main loop block. `50` prints `2`. `:` duplicates the main loop block (which needs a copy for self-replication.)
```
) [[50:])~)~:~[[49]:~))~:~~]~] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 2: `)` deblocks the first main loop block, making it start executing next cycle.
```
[50:] ) ~)~ :~ [[49]:~))~:~~] ~[[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 3: `[50:]` represents the first digit produced in the chain, a `2` not yet deblocked. The following `)` will eventually do so after the rest of the main loop has traversed it. `~)~:~` is a golfed (using a swap and a copy) one-cycle delay of `~)~~`. `[[49]:~))~:~~]` is inactive. `~` swaps the following main loop block past the `[50:]` digit block.
```
) ~)~ ~[[49]:~))~:~~][50:] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 4: `)` still waits, `~)~` produces `~)`, `~` swaps `[[49]:~))~:~~]` past the `[50:]` digit block.
```
) ~)[50:] [[49]:~))~:~~] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 5: `~` swaps `)` past the `[50:]` digit block.
```
)[50:] )[[49]:~))~:~~] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 6: The first `)` now deblocks the `[50:]` digit block, the next `)` deblocks the subprogram `[[49]:~))~:~~]`.
```
50 :[49] :~ ) ) ~:~ ~[[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 7: `50` prints `2`, `:` duplicates the just produced `[49]` digit block, creating a run of two `1`s. `:~))~:~` is a one-cycle delay of `~~))~:`. `~` swaps the remaining main loop block past the first `[49]`.
```
[49] ~~) ) ~:[49] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 8: `~~))` is a one-cycle delay of `)~)`. `~` swaps `:` past the currently traversed `[49]`.
```
[49] ) ~)[49] :[[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 9: `~` swaps `)` past `[49]`. `:` duplicates the main loop block.
```
[49] )[49] )[[50:])~)~:~[[49]:~))~:~~]~] [[50:])~)~:~[[49]:~))~:~~]~]
```
Cycle 10: The first `)` deblocks the `[49]` digit block just traversed, the second `)` restarts the main loop to traverse the next one (above shown at the beginning of the queue.)
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~12~~ 9 bytes
Saved 3 bytes thanks to *Grimy*
Prints the first **n** items.
```
Δ2LÞsÅΓI∍
```
[Try it online!](https://tio.run/##yy9OTMpM/f//3BQjn8Pzig@3npvs@aij9/9/IwMA "05AB1E – Try It Online")
**Explanation**
```
Δ # repeat until ToS doesn't change
2LÞ # push [1,2,1,2 ...]
sÅΓ # run-length encode with previous value (initially input)
I∍ # extend/shorten to the length specified by input
```
[Answer]
# Python (2 and 3), ~~65~~ 60 bytes
```
f=lambda n:sum([f(i)*[i%2+1]for i in range(2,n)],[1,2,2])[n]
```
Returns the **n**th entry, 0-indexed.
Alternative (65 bytes):
```
f=lambda n:n>1and sum([f(i)*[i%2+1]for i in range(n)],[])[n]or-~n
```
[Answer]
# [brainfuck](https://github.com/TryItOnline/brainfuck), 61 bytes
```
+.+.[.[>]>+++>+++<<<[->+>->-<<<]<[[->+<]<]>>--[[>]<,<[<]>+]>]
```
[Try it online!](https://tio.run/##FYpBCoBADAMfFLsvCPlI6EEFQQQPC76/dg9hZiDH3O/3@s6nCgPDw0oBWCPpEBSK1qRXNVOKcB@50V1IZdUP "brainfuck – Try It Online")
Prints numbers as char codes indefinitely. For clarity, [here's a version](https://tio.run/##lYxBCoBADAPP7VfW7gtCPlJ6UEEQwYPg@2v3sncDgQkk2Z71vI93vzJbb11dpU39Y1HpKjb1j1WcwboZBuDGRqMVhgp8ZMRg0syrjAWOmgQ1Mj8) that prints in numbers (except for the first two elements, which are easy enough to verify).
### How It Works:
```
+.+. Prints the first two elements. These are the self-referential elements
This also intitialises the tape with the third element, 2
[ Start infinite loop
. Print current lowest element
[>]>+++>+++ Move to end of tape and create two 3s
<<<[->+>->-<<<] Subtract the last element of the tape from these 3s
<[[->+<]<]>> Move to the beginning of the tape
-- Subtract two from the first element
This leaves 2 as 0 and 1 as -1
[ If the number was 1
[>]<, Delete the excess element from the end of the tape
<[<]>+ Remove the -1
]
> Move to the next element of the list
]
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 15 bytes
```
ƵLS[DNÌ©èF®É>¸«
```
[Try it online!](https://tio.run/##ASEA3v8wNWFiMWX//8a1TFNbRE7DjMKpw6hGwq7DiT7CuMKr//8 "05AB1E – Try It Online")
or [with an iteration limit](https://tio.run/##ASoA1f8wNWFiMWX//8a1TFNbw69JTlEjRE7DjMKpw6hGwq7DiT7CuMKr//8xMDA)
**Explanation**
```
ƵLS # push our initial list [1,2,2]
[ # for every N in [0 ...
D # duplicate current list of numbers
NÌ©è # get the N+2'th element from the list
F # that many times do
®É> # push ((N+2)%2==1)+1
¸« # append to current list
```
[Answer]
# [Perl 5](https://www.perl.org/), 36 bytes
Still a trivial modification of the classic TPR(0,3) solution:
Outputs the series from `0` to `n`
```
#!/usr/bin/perl
use 5.10.0;
say$_=($n+=!--$_[$n])%2+1for@_=0..<>
```
[Try it online!](https://tio.run/##K0gtyjH9/784sVIl3lZDJU/bVlFXVyU@WiUvVlPVSNswLb/IId7WQE/Pxu7/f4t/@QUlmfl5xf91fU31DA30DAA "Perl 5 – Try It Online")
[Answer]
# [Python 3](https://docs.python.org/3/), ~~55~~ 54 bytes
```
n=h=1;l=[]
while n:print(h);n^=3;h,*l=l+[n]*(l+[2])[0]
```
[Try it online!](https://tio.run/##K6gsycjPM/7/P882w9bQOsc2OparPCMzJ1Uhz6qgKDOvRCND0zovztbYOkNHK8c2Rzs6L1ZLA0gZxWpGG8T@/w8A "Python 3 – Try It Online")
[Answer]
# R, 63 bytes or 61 bytes
**Implementation 1:** prints out the *n*th term of the sequence.
```
x=scan()
a=c(1,2,2)
for(n in 3:x)a=c(a,rep(2-n%%2,a[n]))
a[x]
```
**Implementation 2:** prints out the first *n* terms of the sequence.
```
x=scan()
a=c(1,2,2)
for(n in 3:x)a=c(a,rep(2-n%%2,a[n]))
a[1:x]
```
*(The difference is only in the last line.)*
Yes, yes, you may complain that my solution is inefficient, that it computes really more terms than needed, but still...
**Update:** Thanks to [@Giuseppe](https://codegolf.stackexchange.com/users/67312/giuseppe) for shaving off 9 bytes.
[Answer]
# x86, ~~41~~ ~~37~~ ~~35~~ ~~33~~ 28 bytes
I had a lot of fun messing around with different x86 instructions, as this is my first "non-trivial" x86 answer. I actually learned x86-64 first, and I saved many bytes just by converting my program to 32-bit.
It turns out the algorithm I used from OEIS pushes values to an array, which makes it amenable to x86 and storing values on the stack (note MIPS doesn't have stack instructions).
Currently the program takes `N` values as input in `ecx` and returns an address in `ebp` of an array with the nth element representing the nth value in the sequence. I assume returning on the stack and computing extra values is valid (we consider what's beyond the array as garbage anyway).
**Changelog**
* -4 bytes by computing `x = 2 - n%2` with `xor` every iteration
* -2 bytes by using do-while instead of while loop.
* -2 bytes by pushing initial values 1, 2, 2 using `eax`
* -5 bytes by not storing `n` explicitly and instead running loop `N` times
```
.section .text
.globl main
main:
mov $10, %ecx # N = 10
start:
mov %esp, %ebp # Save sp
push $1
push $2 # x = 2
pop %eax
push %eax # push 2
push %eax # push 2
mov %esp, %esi # sn = stack+3 addr
loop:
xor $3, %al # flip x between 1 <-> 2
push %eax # push x
# maybe use jump by parity?
cmp $2, (%esi) # if *sn == 2
jne loop1
push %eax # push x
loop1:
sub $4, %esi # sn += 1
loop loop # --N, do while (N)
end:
mov %ebp, %esp # Restore sp
ret
```
Objdump:
```
00000005 <start>:
5: 89 e5 mov %esp,%ebp
7: 6a 01 push $0x1
9: 6a 02 push $0x2
b: 58 pop %eax
c: 50 push %eax
d: 50 push %eax
e: 89 e6 mov %esp,%esi
00000010 <loop>:
10: 34 03 xor $0x3,%al
12: 50 push %eax
13: 83 3e 02 cmpl $0x2,(%esi)
16: 75 01 jne 19 <loop1>
18: 50 push %eax
00000019 <loop1>:
19: 83 ee 04 sub $0x4,%esi
1c: e2 f2 loop 10 <loop>
0000001e <end>:
1e: 89 ec mov %ebp,%esp
20: c3 ret
```
[Answer]
# [C (gcc)](https://gcc.gnu.org/), 72 71 65 64 62 bytes
-9 bytes thanks to @ceilingcat
```
x,y;f(z){for(x=y=-1;putchar(49-~x%2);y=-~y|z&x/2)x^=z=y&~-~y;}
```
[Try it online!](https://tio.run/##S9ZNT07@/79Cp9I6TaNKszotv0ijwrbSVtfQuqC0JDkjsUjDxFK3rkLVSNMaKFpXWVOlVqFvpFkRZ1tlW6lWBxSxrv2fm5iZpwHUrKEJ5AAA "C (gcc) – Try It Online")
Generates values of the sequence indefinitely (option 3 from the challenge)
[Answer]
# Javascript ES6 - ~~71~~ ~~70~~ 68 bytes
```
(_="122")=>{for(x=1;;_+=(1+x%2)*(_[x]>1?11:1))console.log(_[++x-2])}
```
1 bit saved thanks to [Neil](https://codegolf.stackexchange.com/users/17602/neil)
Tanks to [Shaggy](https://codegolf.stackexchange.com/users/58974/shaggy) for correcting my mistake, also for saving 1 bit.
```
f = (_="122") => {
for(x=1;x<20;_+=(1+x%2)*(_[x]>1?11:1))
document.getElementById('content').innerHTML += ' ' + _[++x-2]
}
f()
```
```
<div id="content"></div>
```
[Answer]
# [Appleseed](https://github.com/dloscutoff/appleseed), 89 bytes
```
(def K(lambda()(concat(q(1 2))(drop 2(flatten(zip-with repeat-val(cycle(q(1 2)))(K)))))))
```
Defines a function `K` that takes no arguments and returns the Kolakoski sequence as an infinite list. [Try it online!](https://tio.run/##NY1BDsIwDATvfYV7Wx8qQSVe0VeYxBURITWpVQSfD4fA3GdGzLLuqrE1RF1pQZbHNQoYYStBHE@caWZGrJvRjDWLuxZ8kk2v5Deqaio@HZIR3iHrX2As3Onl3aX6ONBvQNBDi/NABKup@EhwuStdTtTN9gU "Appleseed – Try It Online")
This approach was inspired by [totallyhuman's Haskell answer](https://codegolf.stackexchange.com/a/157442/16766). My [original approach](https://tio.run/##VY9BEoIwDEX3nuKzSxfOIB7As0QI2qG2TBtceHksFhjMKsn8/37C4@gkiXTzTJ30GILjIaTBnkCOX/eOQRQnf/bTC7UBdfZhFRdjTgDZHvSRGG5YJcsW1AbfsmaATVmKBk027uQ8F/smXFpQlFFYz292KBnk9blxD3ZTvEcgWd/uF4DSdMe1QMyvymtJOWq1nL09Jm/xutLGaL1WIOVBcK3/AzPiCw "Appleseed – Try It Online") was longer *and* was probably O(2^n). :^P
### Ungolfed
```
(def kolakoski
(lambda ()
(concat (list 1 2)
(drop 2
(flatten
(zip-with repeat-val
(cycle (list 1 2))
(kolakoski)))))))
```
The return list begins with `(1 2)`. After that, to generate the rest of it (reading from the inside out):
* Recursively call `(kolakoski)` to get the Kolakoski sequence list (due to lazy evaluation, it doesn't matter that the list hasn't been fully generated yet)
* `(cycle (list 1 2))` creates an infinite list `(1 2 1 2 1 2 ...)`
* Zip the two infinite lists together using the function `repeat-val`. This will repeat the `1` or `2` from the `cycle` list either one or two times depending on the associated value in the Kolakoski list. Result: `((1) (2 2) (1 1) ...)`
* `flatten` that list into `(1 2 2 1 1 ...)`
* We've already got the first two terms from `(concat (list 1 2)`, so we `drop` the first two from the generated list to avoid duplication.
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 12 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
```
╦╥2Bïß▄n»-[╒
```
[Run and debug it](https://staxlang.xyz/#p=cbd232428be1dc6eaf2d5bd5&i=0%0A1%0A2%0A3%0A4%0A5%0A6%0A7%0A8%0A9%0A10&a=1&m=2)
This is the ascii representation of the same program.
```
G@}2R;D{|;^]*m$
```
It expands the sequence x times where x is the input. Then it outputs the xth element, 0-indexed.
```
G } G jumps to trailing } and returns when done
@ get xth element in array
2R [1, 2]
;D repeat the rest x times
{ m map array using block
|;^] produces [1] and [2] alternately
* repeat array specified number of times
$ flatten array
```
[Here's](https://staxlang.xyz/#p=81d7d96043d2e2cdf028a23a&i=) a bonus 12-byte solution that produces output as an infinite stream. Press Run to start.
[Answer]
# Shakespeare Programming Language, 575 bytes (but defective), or 653 or 623 bytes
```
,.Puck,.Ford,.Act I:.Scene X:.[Enter Puck and Ford]Ford:You big cat!Scene L:.Ford:Is I nicer zero?If so,let us Scene V.Is you nicer a big cat?If so,you is the sum of you a big lie.If so,open heart!Open heart!Scene M:.Puck:Remember you!Is I nicer a cat?You big cat.If so,you cat.Ford:Recall!Is you nicer zero?If not,let us Scene X.Is you nicer a big cat?If not,let us Scene M.You is the sum of you a big lie.Scene V:.Ford:Remember you!Is you worse a big big cat?If not, you big cat.Is you as big as a big cat?If not,you zero.You is the sum of I you.Puck:Recall!Let us Scene L.
```
In the hotly contested SPL category, this would beat Jo King's current entry (583 bytes), except that it is defective: First, it does not run in the TIO version (implementing the SPL website) -- but it does run in the [Perl version](http://search.cpan.org/dist/Lingua-Shakespeare/lib/Lingua/Shakespeare.pod "perl version"), so maybe that is not a serious defect. Second, though, it does not print the first two digits. If we allowed that defect in Jo King's solution, then that defective solution would be 553 bytes, beating my defective solution.
My solution fails on TIO for two reasons: we try to rely on an empty stack returning zero when popped; and we goto the first scene, with "[Enter Ford and Puck]" even though nobody has left the stage. These are merely warnings in the Perl version. If I fix these errors *and* put in the first two digits, I reach 653 bytes:
```
,.Puck,.Ford,.Act I:.Scene I:.[Enter Puck and Ford]Ford:You cat!Open heart!You big cat!Open heart!You zero!Scene X:.Ford:Remember you!You big cat!Scene L:.Ford:Is I nicer zero?If so,let us Scene V.Is you nicer a big cat?If so,you is the sum of you a big lie.If so,open heart!Open heart!Scene M:.Puck:Remember you!Is I nicer a cat?You big cat.If so,you cat.Ford:Recall!Is you nicer zero?If not,let us Scene X.Is you nicer a big cat?If not,let us Scene M.You is the sum of you a big lie.Scene V:.Ford:Remember you!Is you worse a big big cat?If not, you big cat.Is you as big as a big cat?If not,you zero.You is the sum of I you.Puck:Recall!Let us Scene L.
```
[Try it online!](https://tio.run/##hZHLasMwEEV/Zbw3@gBtShctCBxaWigJIQtFmTSmshT0ICQ/7@jlxG5Mu7Gt0Zm5947tUfZ9Td69@KnJqza7mjwLB4yST4EK48f6RTk0EBHgageR2sQHXWkPgrvq7YgKDsiNq2Jp237PlS9odJWnLmnSoh/YYbcNw8/aT1oz1hSMWWCgWhHAOOSJ7cHqWqIDbyGjXyRAYUrB@DCpsPGmteAOCNZ3oPeJzZRskWRK3w2PvGeBBU1LmloeGeNJbZSB3JXjqeQVXMpqYnVIpLSbRlr@EekBXpDVPxHLnuY2X3RO2lgsHb@00v0tWMa5TZXwerB2Lr97xhSLvcMq0zaacY6G9P0V "Shakespeare Programming Language – Try It Online")
I can generate the full sequence in the Perl implementation using 623 bytes:
```
,.Puck,.Ford,.Act I:.Scene I:.[Enter Puck and Ford]Ford:You cat!Open heart!You big cat!Open heart!Scene L:.Ford:Is I nicer zero?If so,let us Scene V.Is you nicer a big cat?If so,you is the sum of you a big lie.If so,open heart!Open heart!Scene M:.Puck:Remember you!Is I nicer a cat?You big cat.If so,you cat.Ford:Recall!Is you worse a cat?If so,you big cat!If so,let us Scene L.Is you nicer a big cat?If not,let us Scene M.You is the sum of you a big lie.Scene V:.Ford:Remember you!Is you worse a big big cat?If not, you big cat.Is you as big as a big cat?If not,you zero.You is the sum of I you.Puck:Recall!Let us Scene L.
```
However, I would point out that this solution is *fast* compared to many other solutions, and uses logarithmic amounts of memory rather than storing the whole list. (This is similar to vazt's C solution, to which it is distantly related.) This makes no difference for golf, but I'm pleased with it even so. You can generate a million digits in about a minute in Perl (for example if you pipe to sed and wc to get a digit count), where the other solution might give you a few thousand digits.
## Explanation
We store a sequence of variables in order: Puck's stack (bottom to top), Puck's value, Ford's value, Ford's stack (top to bottom). Apart from zero values at the ends (with the zero on the left maybe from popping an empty stack), each value is the digit generated next at that generation, with 2 added if the next generation needs to have another child from that parent. When we have N non-zero values in the sequence, we generate all the children up to and including the N-th generation, in a kind of depth-first tree traversal. We print values only from the N-th generation. When the N-th generation has been completely generated, the stored values are in fact the starting values for generations 2 to (N+1), so we append a 2 at the left and start again, this time generating the (N+1)-th generation.
So, an outline:
Scene X: When we reach here, this the start of a new traversal. Puck==0. We optionally push that zero onto Puck's stack, and set Puck=2.
Scene L: If Ford==0, we have reached the printing generation. If not, goto V. For printing, if the value in Puck has had 2 added, remove the 2 and print it twice; if not, print it once.
Scene M: This is a loop where we repeatedly toggle the value of Puck and go back through the sequence. We repeat until either we reach the end (Puck==0), in which case goto X, or we reach a value that needs another child (Puck>2), in which case subtract the extra 2 and go forwards in V.
Scene V: Here we go forwards. If Puck is 2 or 4, the next generation will contain two children from the current parent, so Ford+=2. Step forwards through the sequence. Goto L to check for termination.
] |
[Question]
[
Doing code review, I stumbled upon the following code, that tests the status of a checkbox:
```
if (!isNotUnchecked()) { ... }
```
I had to brainstorm for 30 minutes to find out what actual checkbox status the code was expecting. Please write me a program that can simplify these silly expressions!
---
The program should accept as input a string representing the expression to simplify (for example: `!isNotUnchecked()`). The program should output a logically equivalent simplified expression, either `isChecked()` or `!isChecked()`.
The method name in the input expression always starts with `is`, contains 0..n `Not`, and ends with `Checked()` or `Unchecked()`.
The method can be prefixed by any number of `!`.
## Examples
```
isChecked() => isChecked()
isUnchecked() => !isChecked()
isNotChecked() => !isChecked()
!isNotChecked() => isChecked()
!!!isNotNotUnchecked() => isChecked()
```
[Answer]
# [Python](https://docs.python.org/2/), 51 bytes
```
lambda s:sum(map(s.count,'!NU'))%2*'!'+'isC'+s[-8:]
```
[Try it online!](https://tio.run/nexus/python2#S7ON@Z@TmJuUkqhQbFVcmquRm1igUayXnF@aV6KjrugXqq6pqWqkpa6orq2eWeysrl0crWthFfu/PCMzJ1XB0KqgKDOvRCFNIzOvoLREQ1PzvxJQVUZqcnZqioamEheQF5qXjML3yy9BVqCIKaIIEQMiZL0A "Python 2 – TIO Nexus")
[Answer]
## [Retina](https://github.com/m-ender/retina), 23 bytes
```
Unc
!C
Not
!
O`is|!
!!
```
[Try it online!](https://tio.run/nexus/retina#U9VwT/gfmpfMpejM5ZdfwqXI5Z@QWVyjyKWoyPX/f2axc0ZqcnZqioYmV2YxUBkSD6gaIamIzleEiAARki4A "Retina – TIO Nexus")
### Explanation
```
Unc
!C
```
Turn `Unchecked` into `!Checked`.
```
Not
!
```
Turn all `Not`s into `!`. We now get something like `!!!is!!!!Checked()`.
```
O`is|!
```
Sort all matches of either `is` or `!`. Since `! < is`, this moves all the `!` to the beginning of the string, so the above example would become `!!!!!!!isChecked()`.
```
!!
```
Remove pairs of `!` to cancel repeated negation.
[Answer]
# [///](https://esolangs.org/wiki////), 26 bytes
```
/Unc/NotC//isNot/!is//!!//
```
[Try it online!](https://tio.run/nexus/slashes#@68fmpes75df4qyvn1kMpPUVM4v19RUV9fX/ZxY7Z6QmZ6emaGhyZRYD1SHxQDrgXEV0viJEBIiQdP0HAA "/// – TIO Nexus")
Port of my [Retina answer](https://codegolf.stackexchange.com/a/120010/48934).
[Answer]
# [Python](https://docs.python.org/), 43 bytes
```
lambda s:sum(map(ord,s))%2*'!'+'isC'+s[-8:]
```
An unnamed function taking the string, `s` and returning a string.
**[Try it online!](https://tio.run/nexus/python3#S7ON@Z@TmJuUkqhQbFVcmquRm1igkV@UolOsqalqpKWuqK6tnlnsrK5dHK1rYRX7vyS1uKRYwVZBAySakZqcnZqioamuA@SF5iWj8P3yS5AVKGKKKELEgAhZryZXWn6RAsgehcw8MF1sxcVZUJSZV6IB4ukoqNvaqesopIF5mpr/AQ "Python 3 – TIO Nexus")**
No need to check for existence of characters when `!`, `Not`, and `Un` all have exactly one odd ordinal (and `c` and `C` are both odd), so just sum up the ordinals and use the value modulo 2 to decide if we want a `!` or not.
Other than that the form is the same as [xnor's answer](https://codegolf.stackexchange.com/a/120014/53748), as I didn't find anything better. The following is also 43:
```
lambda s:'!isC'[~sum(map(ord,s))%2:]+s[-8:]
```
[Answer]
## JavaScript (ES6), ~~51~~ 50 bytes
```
f=
s=>(s.split(/!|n/i).length%2?'':'!')+'isChecked()'
```
```
<input oninput=o.textContent=f(this.value)><pre id=o>
```
Works by looking for `!`, `N`, and `n` characters, which invert the checked state. `split` returns an odd array length by default, so we add the `!` when the `split` length is even. Edit: Saved 1 byte thanks to @ETHproductions. Alternative version, also for 50 bytes:
```
s=>`${s.split(/!|n/i).length%2?``:`!`}isChecked()`
```
[Answer]
# [Retina](https://github.com/m-ender/retina), 24 bytes
```
Unc
NotC
+`isNot
!is
!!
```
[Try it online!](https://tio.run/nexus/retina#@x@al8zll1/izKWdkFkMZHApZhZzKSpy/f@fWeyckZqcnZqiocmVWQxUh8QD6YBzFdH5ihARIELSBQA "Retina – TIO Nexus")
[Answer]
# Java 7, ~~100~~ 77 bytes
```
String c(String s){return(s.split("[!NU]").length%2<1?"!":"")+"isChecked()";}
```
**Expanation:**
```
String c(String s){ // Method with String parameter and String return-type
return(s.split("[!NU]").length
// Count the amount of '!', 'N' and 'U' in the input String (+ 1)
%2<1? // and if they are an even number:
"!" // Start with an examination mark
: // Else:
"") // Start with nothing
+"isChecked()"; // And append "isChecked()" to that
} // End of method
```
**Test code:**
[Try it here.](https://tio.run/nexus/java-openjdk#lY5BC4JAEIXv/opxINglWKhjBh0650U8iYdtXXRpXcUdgxB/uxl5iSAM5vDgfXxvlJXew2UIADxJMgqmhDrjSlBsCZ4Pnaa@c8wL31pDDLMwTnPkwmpXUrXZH3cnDPGAyLdo/LnS6qYLxjEaJ4C2v9rZu@jvjSmglsYt@iwHyV/zAMnDk65F05No54qsY4p9@DiPfpKpU6vZuKG14vA/Onzz833/Mwbj9AQ)
```
class M{
static String c(String s){return(s.split("[!NU]").length%2<1?"!":"")+"isChecked()";}
public static void main(String[] a){
System.out.println(c("isChecked()"));
System.out.println(c("isUnchecked()"));
System.out.println(c("isNotChecked()"));
System.out.println(c("!isNotChecked()"));
System.out.println(c("!!!isNotNotUnchecked()"));
}
}
```
**Output:**
```
isChecked()
!isChecked()
!isChecked()
isChecked()
isChecked()
```
[Answer]
# [Aceto](https://github.com/L3viathan/Aceto), 49 bytes
```
&M"pp"
L!)(de
&c;`Che"
`!d!sick
!',@p"!'
'N'U`!Lu
```
yadda yadda Hilbert curve.
First of all, we push the three important characters on the stack:
```
!'
'N'U
```
Then we set a catch mark and start by reading a single character. We `d`uplicate it and negate it, and if the result of this is truthy (so if the string was empty; so the input ended), we jump to the end:
```
;`
d!
,@
```
With the remaining copy of the input character, we check whether it is contained in the rest of the stack (i.e. if its one of !, N, U). If it's not, we raise an error, throwing us back to our catch mark where we read another character:
```
&c
`!
```
Otherwise, we load what's on quick storage (essentially a register that's initially an empty string; falsy), negate it and send it back to quick storage, then raise the error too (going back to reading characters):
```
&M
L!
```
When the input stopped, we are sent to the end. There, we reverse the direction, push an exclamation mark, and load quick storage and negate it. If that is truthy (i.e. we've had an odd number of negation things), we print the exclamation mark we've pushed:
```
p !'
`!Lu
```
Finally, we push the string in two parts and print them (for space saving reasons):
```
"pp"
)(de
Che"
sick
"
```
Afterwards, the program still runs back to the original beginning, but since none of the commands output anything or have loopy behaviour, that doesn't matter. Actually, the first non-nopping command we reach raises an exception, skipping a majority of the code because we jump to the catch mark, meaning all Aceto sees in that part is:
```
&
!' @
'N'U
```
Since `U` is now not preceeded by a single-quote character and is therefore not seen as a character literal, it gets interpreted as a command: `U` reverses all the elements on the stack (now it's `!`, `N`, `U`, from the top), and `'N` and `'!` push more characters, meaning we end with the stack `[U, N, !, N, !]`.
*Side note: This is the first Aceto program written (in part) with the help of [Aceto's new editor](https://asciinema.org/a/57a0wa44k6lowek7amt4fu649).*
[Answer]
## C, ~~78~~ ~~70~~ 68 Bytes
Thank you Christoph!
```
c;f(char*s){for(c=1;*s;)c^=!!strchr("!NU",*s++);s="!isChecked()"+c;}
```
[Try it online](https://tio.run/nexus/c-gcc#bY8xa8NADIVn36/QHQTuzi60s7gu2bNlalIwio1N6bmcRBbjn93ZUdIMpSlIGh7S0/dWwt7T0JbIYe6n4im9YGQM9J6sZSk0FO/sbu@ayHUdkJOzI2@Hjj66kw@uJlzWMQt8tmP2cJ7GEwQzm@pmCtKxvB0hwQymqtzvy@au7DM9aLtJ/i7a/1X7o2s9@DzrWNDcUZQFTaURwYvyXMEQorZorOv6V9EYvXcbhvQKGz5ktYnSQO@jhIBmWb/z9EStvrkA)
Output:
```
isChecked() => isChecked()
isUnchecked() => !isChecked()
isNotChecked() => !isChecked()
!isNotChecked() => isChecked()
!!!isNotNotUnchecked() => isChecked()
```
[Answer]
# [Perl 5](https://www.perl.org/), 31 bytes
*-2 bytes thanks to [@Dom Hastings](https://codegolf.stackexchange.com/users/9365/dom-hastings).*
30 bytes of code + `-p` flag.
```
/c/i;$_="!"x(y/UN!//%2).isC.$'
```
[Try it online!](https://tio.run/nexus/perl5#U1YsSC3KUdAt@K@frJ9prRJvq6SoVKFRqR/qp6ivr2qkqZdZ7Kynov7/P5DOSE3OTk3R0OTKLA7NS0bi@eWXICQV0fkQASBC1qSIVRgA "Perl 5 – TIO Nexus")
`y/UN!//` counts the number of occurrences of `Un`, `Not`, and `!`. The result is that many `!` modulo 2, followed by `isChecked()`.
---
Another attempt, based on regex, for 38 bytes (Dom Hastings saved 1 byte on that one):
```
s/isNot|isUn(c)/!is\u$1/?redo:s/!!//g
```
[Try it online!](https://tio.run/nexus/perl5#U1YsSC3KUdAt@F@sn1nsl19Sk1kcmqeRrKmvmFkcU6piqG9flJqSb1Wsr6ior5/@/39msXNGanJ2aoqGJhdIaTISD6gdIamIzocIABGyJkWswgA "Perl 5 – TIO Nexus")
[Answer]
# [Scala](http://www.scala-lang.org/), ~~39~~ 30 bytes
```
s=>"!"*(s.sum%2)+"isChecked()"
```
[Try it online!](https://tio.run/nexus/scala#dUxNC4IwGL73K94Ngq1gh46FQnStLtIPWPNVZ7oNNyMQf7uNgkgieA7Pt73WqAKcpDaAj4Am97B3Dga4ywaKLWSh06aEJP0wGCafpJTQFfPC9@1yw9dU@0OF6oY543Qad68147Gsrchs3ykUPuTaiBLDURv0opWOFVwUtkOpKubieWgMh3GanS2iuhg102cbvgvk1yFvL2K@JX@SJw "Scala – TIO Nexus")
Unfortunately I couldn't get it to deduce the type of s.
Edit: Moved the type declaration to the header (I think this is allowed, if not I'll put it back).
[Answer]
# [Ruby](https://www.ruby-lang.org/), 40 bytes
```
->x{?!*(x.count('!UN')%2)+'isChecked()'}
```
[Try it online!](https://tio.run/nexus/ruby#S7T9r2tXUW2vqKVRoZecX5pXoqGuGOqnrqlqpKmtnlnsnJGanJ2aoqGpXvu/KDUxJSczL7VYLzexoLqmoqagtKRYITG6Irb2vxKSUiUuIC80LxmF75dfgqxAEVNEESIGRMh6AQ "Ruby – TIO Nexus")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 22 bytes
```
…Unc„!C:'€–™'!:'!†„!!K
```
[Try it online!](https://tio.run/nexus/05ab1e#qymr/P@oYVloXvKjhnmKzlbqj5rWPGqY/Khlkbqilbrio4YFIHFF7/@VSof3K9jaKRzer6TzP7PYOSM1OTs1RUOTK7MYqBmJ55dfgpBUROcrQkSACFmXInZxAA "05AB1E – TIO Nexus")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 16 bytes
```
ÇOÉ'!×…isCyR8£RJ
```
[Try it online!](https://tio.run/nexus/05ab1e#qymr/H@43f9wp7ri4emPGpZlFjtXBlkcWhzk9b9S6fB@BVs7hcP7lXT@A8UzUpOzU1M0NLkyi0PzkpF4fvklCElFdL4iRASIkHUpYhcHAA "05AB1E – TIO Nexus")
Uses the trick of summing the ordinals from [Jonathan Allan's python answer](https://codegolf.stackexchange.com/a/120046/47066).
**Explanation**
```
ÇO # sum of ascii values of input
É # is odd
'!× # repeat "!" that many times
…isC # push the string "isC"
IR8£R # push the last 8 chars of input
J # join everything to string
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt), ~~24~~ 23 bytes
```
o"!N" l u)ç'! +`‰C”×B()
```
# Explanation
```
o"!N" l u)ç'! +`‰C”×B()
Uo"!N" l u)ç'! +`‰C”×B()`
Uo"!N" # Only keep "!", "n" and "N" from the input
ç'! # Repeat the string "!" by
l u) # the parity of the length of the newly formed string
+`‰C”×B()` # and concatenate with the string "isChecked()"
```
[Try it online!](https://tio.run/nexus/japt#@5@vpOinpJCjUKp5eLm6ooJ2wqFO50NTDk930tD8/19JMbPYL7/EOSM1OTs1RUNTCQA "Japt – TIO Nexus")
[Answer]
## PHP (5.5 - 5.6), ~~52~~ ~~50~~ 49 Bytes
```
<?='!'[count(spliti('!|N',$argn))%2]?>isChecked()
```
Try it [here](http://sandbox.onlinephpfunctions.com/code/12de9387b5efbc4d90f85439f33dfd291dd19ada).
```
-2 Bytes by @Titus. Ty :)
-1 Byte by @ETHproductions. Ty :)
```
## PHP (>=5.5), ~~66~~ ~~65~~ 61
```
for($b=b;$a=$argn[$i++];)$b^=$a;echo$b&"!"|" ","isChecked()";
```
Without regex it gets a bit more compex :) Try it [here](http://sandbox.onlinephpfunctions.com/code/1c1f850c8bf8ded4d60361c8f95ffd90d7df4b28).
```
-4 Bytes by @Titus. Ty :)
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~16~~ 15 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
OSḂ⁾!iṫ⁾sCø³ṫ-7
```
A full program that takes the string as a command line argument and prints the result
**[Try it online!](https://tio.run/##y0rNyan8/98/@OGOpkeN@xQzH@5cDaSLnQ/vOLQZyNY1////v6KiYmaxX34JEIXmJWekJmenpmhoAgA)**
`OSḂ⁾!iṫ-7³ṫṭ⁾sC` or `OSḂ⁾!iṫ-7³ṫ⁾sC;` would both also work for 15.
### How?
Uses the same idea as [my Python answer](https://codegolf.stackexchange.com/a/120046/53748), but saves bytes using a different construction of `!isC` or `isC` and some implicit printing in Jelly...
```
OSḂ⁾!iṫ⁾sCø³ṫ-7 - Main link: s
O - cast to ordinals
S - sum
Ḃ - mod 2
⁾!i - literal ['!','i']
ṫ - tail -> ['i'] if OSḂ was 0; ['!','i'] if OSḂ was 1
- this is printed due to the following starting a new leading
- constant chain. Printing smashes so either "i" or "!i" is printed.
⁾sC - literal ['s','C']
- this is printed (as "sC") due to the following niladic chain.
ø - start a new niladic chain
³ - program's first input (3rd command line argument), s
ṫ-7 - tail from index -7 = ['h','e','c','k','e','d','(',')']
- implicit print (of "hecked()")
```
previous @ 16 bytes 9 (using concatenation and pairing with the same underlying idea):
```
OSḂ⁾!iṫ;⁾sC,ṫ€-7
```
[Answer]
# [Perl 6](https://perl6.org), ~~35~~ 31 bytes
```
{'!'x m:g/<[!NU]>/%2~'isChecked()'}
```
[Try it](https://tio.run/nexus/perl6#dc7LTsMwEAXQvb/iegG205BIILEgTYTUfTfQFWFRnKG1aB7CDiqqmh9jx48FNzyUgpAsS55zPTOtJbxcRjph5StOdV0Q0n4nuNiivFrF0zs@X9xn8cl5J4ydrUk/USGV2Pc@fu3IOqTYmIqsVO9vka7LBxkjv0EQ4CKKAsQqYa2fceujCWs2ywqT4V/CHuvnrxZnGWRuqqZ1YU7bhrSjQmHHAGNx2EkOqEJ8a4ihgg4Caeav7ofYvh9tetDRkxm7qPQY@bHOazf7l/lfP2L@GfDn15BR6gM "Perl 6 – TIO Nexus")
```
{'!'x tr/!NU//%2~'isChecked()'}
```
[Try it](https://tio.run/nexus/perl6#dY7BasJAEIbv@xT/gu3upmkWWuglRATvXqy3XOpmSpdqEtxNsYh5MW99sXTVKrEiLAM73zfzT@MIXy@JSdnyG/emKghZtxFcrOFXmk9mWt89tcK68QeZTyqkEtsuqCNPziPDwpbkpPrZJaZazqVGPkUU4TlJImiVsibsfw1qyurFW4mHw1zK3qvV34rHIWRuy7rxcU7rmoynQmHDAOuwv0eGtEFIOjgqxkmKjx20EMiGobRnxLZd7@A97X2ZdbPS9CG/pJPKj29ifs0vMD8K4f0L6Vm/ "Perl 6 – TIO Nexus")
(requires mutable input string which will be mutilated)
## Expanded:
```
{
#(
'!'
x # string repeat
# m:g/<[!NU]>/
tr/!NU// # find the number of negatives
% 2 # modulus 2
#)
~ # string concat
'isChecked()'
}
```
[Answer]
# Sed, 36 Bytes
Same idea as all the other direct substitution answers.
```
:
s/Unc/NotC/
s/isNot/!is/
s/!!//
t
```
[Answer]
# sed, ~~37~~ 38 bytes
```
:;s/is(Not|Un)/!is/;s/!!//;t;s/ch/Ch/
```
37 + 1 for `-r` switch:
```
sed -r ':;s/is(Not|Un)/!is/;s/!!//;t;s/ch/Ch/'
```
[Answer]
## Mathematica, ~~82~~ ~~61~~ 60 Bytes
Small tweak, added one more infix operator:
```
"!"~Table~Mod[#~StringCount~{"o","n","!"},2]<>"isChecked()"&
```
Previously:
```
"!"~Table~Mod[StringCount[#,{"o","n","!"}],2]<>"isChecked()"&
```
Count up all the o's, n's and !'s then mod 2 and put that many ! in front.
Old version:
```
"!"~Table~Mod[StringCount[StringReplace[#,{{"o","n"}->"!"}],"!"],2]<>"isChecked()"&
```
[Answer]
# Excel, 90 bytes
```
=IF(ISODD(SEARCH("C",SUBSTITUTE(SUBSTITUTE(A1,"Un","!"),"Not","!"))),"","!")&"isChecked()"
```
[Answer]
# Windows Batch, 120 bytes
Previously 268 257 253 245 239 221 182 176 169 123 bytes
```
@set a=%1
@set s=#%a:~,-2%
@set s=%s:!=N#%
@for %%a in (%s:N= %)do @set/ac+=5
@if %c:~-1%==0 cd|set/p=!
@echo isC%a:~-8%
```
The programs replaces all the `!` into `N#`. Because now all negation signs, !(Now it is `N#`), `Not`, and `Un` contains `N`, the program can counts the number of appearance of `N` and determines if an leading `!` is required.
Each time the program counts an `N`, the counter is added by 5. The reason for adding 5 is because each alternating values when adding 5 ends in either 0 or 5. This can be used to determine whether the value is odd or even and the leading `!` us added if required.
In addition, xnor's last-eight-character trick is utilized.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~29~~ ~~28~~ ~~25~~ 21 bytes
```
f“NU!”LḂ”!x;“µịÆẹṠƊẹ»
```
[Try it online!](https://tio.run/nexus/jelly#@5/2qGGOX6jio4a5Pg93NAEpxQproNChrQ93dx9ue7hr58OdC451AelDu/8f3XO4/VHTmiwgBipRsLVTAKqP/P8/Wj2z2DkjNTk7NUVDU10HyAvNS0bh@@WXICtQxBRRhIgBEbLeWAA "Jelly – TIO Nexus")
```
f“NU!”LḂ”!x;“µịÆẹṠƊẹ» Main link, argument is z
f“NU!” Filter to only keep "NU!"
LḂ”!x Repeat exclamation mark by the parity of the length
;“µịÆẹṠƊẹ» Concatenate to "isChecked()"
```
-4 bytes thanks to Jonathan Allan!
-4 bytes thanks to Jonathan Allan! (by using compressed strings)
[Answer]
# PHP, 55 Bytes
```
<?=preg_match_all("#!|N#i",$argn)&1?"!":""?>isChecked()
```
[Try it online!](https://tio.run/nexus/php#s7EvyCjgUkksSs@zVVJUzCz2yy8BotA854zU5OzUFA1NJWsue7v/Nva2BUWp6fG5iSXJGfGJOTkaSsqKNX7KmUo6YM2aaob2SopKVkpK9naZxXDN//8DAA "PHP – TIO Nexus")
# PHP, 58 Bytes
```
<?=preg_match_all("#[!NU]#",$argn)%2?"!":"","isChecked()";
```
instead `"#[!NU]#"` you can use `"#[!N]#i"`
[Try it online!](https://tio.run/nexus/php#s7EvyCjgUkksSs@zVVJUzCz2yy8BotA854zU5OzUFA1NJWsue7v/Nva2BUWp6fG5iSXJGfGJOTkaSsrRin6hscpKOmDdmqpG9kqKSlZKSjpKmcVIuv//BwA "PHP – TIO Nexus")
# PHP, 68 Bytes
Version without Regex
```
for(;$c=$argn[$i++];)$d^=!trim($c,"UN!");echo"!"[!$d],"isChecked()";
```
[Try it online!](https://tio.run/nexus/php#s7EvyCjgUkksSs@zVVJUzCz2yy8BotA854zU5OzUFA1NJev/aflFGtYqybZgZdEqmdrasdaaKilxtoolRZm5GirJOkqhfopKmtapyRn5SopK0YoqKbE6SpnFyIb8BwA "PHP – TIO Nexus")
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 19 bytes
```
`‰C”×B()`i'!pU¬xc u
```
[Try it online!](https://ethproductions.github.io/japt/?v=2.0a0&code=YIlDlNdCKClgaSchcFWseGMgdQ==&input=LW1SIFsKImlzQ2hlY2tlZCgpIiwKImlzVW5jaGVja2VkKCkiLAoiaXNOb3RDaGVja2VkKCkiLAoiIWlzTm90Q2hlY2tlZCgpIiwKIiEhIWlzTm90Tm90VW5jaGVja2VkKCkiCl0=)
### Unpacked & How it works
```
`‰C”×B()`i'!pUq xc u
`‰C”×B()` Compressed string for "isChecked()"
i Insert the following string at the beginning...
'!p "!" repeated the following number of times...
Uq Split the input into chars
xc Sum the charcodes
u Modulo 2
```
Using the charcode-sum trick from [Jonathan Allan's Python solution](https://codegolf.stackexchange.com/a/120046/78410).
[Answer]
# [Pascal (FPC)](https://www.freepascal.org/), 119 bytes
```
var s:string;j:word;c:char;begin read(s);for c in s do j:=j+ord(c);if 1=j mod 2then write('!');write('isChecked()')end.
```
[Try it online!](https://tio.run/##NYoxDgIhEEWvMlRAjCZaQrayt/MAOMwuoMJmhrjHxy00@cXLe38NguF1nFcc4xMYxEnnXBdf3NY4enSYAvsHLbkCU4hGrJ8bA8IuBGKD4qZy2L8Grc8znKcC7xbh0hNV2Dh3Mlpp63@Y5ZoInxSN1ZZqPI2hlMpya33fveK/fgE "Pascal (FPC) – Try It Online")
Using method that almost every answer does, summing codepoints of characters in the input, then checking parity of the sum.
[Answer]
# [ReRegex](https://github.com/TehFlaminTaco/ReRegex), 32 bytes
```
/!!//Not/!/Unc/!C/is!/!is/#input
```
## Explained
Works like the Retina answer
```
/!!// #Remove all !! pairs
Not/!/ #Replace all Nots with !s
Unc/!C/ #Replace any Unc's with !C (Turning Unchecked into !Checked)
is!/!is/ #Float all !'s past the is to the left
#input #Take the stdin as input
```
[Try it online!](https://tio.run/##K0otSk1Prfj/X19RUV/fL79EX1E/NC9ZX9FZP7NYUV8xs1hfOTOvoLTk/39FIAeoAIiACjJSk7NTUzQ0/wMA "ReRegex – Try It Online")
] |
[Question]
[
Randall Munroe's book "xkcd, volume 0" uses a rather odd number system for the page numbers. The first few page numbers are
```
1, 2, 10, 11, 12, 20, 100, 101, 102, 110, 111, 112, 120, 200, 1000, 1001, ...
```
This looks a bit like ternary, but notice that he skips from `20` straight to `100`, from `120` to `200` and from `200` to `1000`. One way to define this sequence is to say that it enumerates all ternary numbers that contain at most one `2` and no `1` after that `2`. You can find this on OEIS in entry [A169683](https://oeis.org/A169683). This number system is known as [skew binary](http://en.wikipedia.org/wiki/Skew_binary_number_system).
Your task is to find the representation of a given positive integer `N` in this number system.
You may write a program or function, taking input via STDIN (or closest alternative), command-line argument or function argument and outputting the result via STDOUT (or closest alternative), function return value or function (out) parameter.
Output may be a string, a number with a decimal representation equal to the skew binary representation, or a list of digits (as integers or characters/strings). You must not return leading zeroes.
This is code golf, so the shortest answer (in bytes) wins.
**Fun fact:** There is actually some merit to this number system. When incrementing a number, you will always change at most two adjacent digits - you'll never have to carry the change through the entire number. With the right representation that allows incrementing in O(1).
## Test Cases
```
1 => 1
2 => 2
3 => 10
6 => 20
7 => 100
50 => 11011
100 => 110020
200 => 1100110
1000 => 111110120
10000 => 1001110001012
100000 => 1100001101010020
1000000 => 1111010000100100100
1048576 => 10000000000000000001
1000000000000000000 => 11011110000010110110101100111010011101100100000000000001102
```
I will give a bounty to the shortest answer which can solve the last test case (and any other input of similar magnitude, so don't think about hardcoding it) in less than a second.
## Leaderboards
Here is a Stack Snippet to generate both a regular leaderboard and an overview of winners by language.
To make sure that your answer shows up, please start your answer with a headline, using the following Markdown template:
```
# Language Name, N bytes
```
where `N` is the size of your submission. If you improve your score, you can keep old scores in the headline, by striking them through. For instance:
```
# Ruby, <s>104</s> <s>101</s> 96 bytes
```
```
<script>site = 'meta.codegolf'; postID = 5314; isAnswer = true; QUESTION_ID = 51517</script><script src='https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js'></script><script>jQuery(function(){var u='https://api.stackexchange.com/2.2/';if(isAnswer)u+='answers/'+postID+'?order=asc&sort=creation&site='+site+'&filter=!GeEyUcJFJeRCD';else u+='questions/'+postID+'?order=asc&sort=creation&site='+site+'&filter=!GeEyUcJFJO6t)';jQuery.get(u,function(b){function d(s){return jQuery('<textarea>').html(s).text()};function r(l){return new RegExp('<pre class="snippet-code-'+l+'\\b[^>]*><code>([\\s\\S]*?)</code></pre>')};b=b.items[0].body;var j=r('js').exec(b),c=r('css').exec(b),h=r('html').exec(b);if(c!==null)jQuery('head').append(jQuery('<style>').text(d(c[1])));if (h!==null)jQuery('body').append(d(h[1]));if(j!==null)jQuery('body').append(jQuery('<script>').text(d(j[1])))})})</script>
```
[Answer]
# CJam, ~~24~~ ~~23~~ ~~22~~ ~~21~~ 19 bytes
```
ri_)2b,,W%{2\#(md}/
```
This is an **O(log n)** approach, where **n** is the input, that completes the last test case instantly. It converts **n** directly to skew binary, using modular division by the values of the digit **1**.
This code finishes with an error that goes to STDERR with the Java interpreter, which is allowed according to the [consensus on Meta](https://codegolf.meta.stackexchange.com/a/4781).
If you try this code in the [CJam interpreter](http://cjam.aditsu.net/#code=ri_)2b%2C%2CW%25%7B2%5C%23(md%7D%2F&input=1000000000000000000), just ignore everything but the last line of output.
The error can be eliminated, at the cost of 2 bytes, by prepending `2>` to `W%`.
*Thanks to @MartinBüttner for golfing off one byte.*
### Background
The skew binary representation **ak...a0** corresponds to the integer **n = (2k+1-1)ak+...+(21-1)a0**.
Since both **(2k-1) + ... + (21-1) = 2k+1 - (k + 2)** and **(2k-1) + ... + 2(2j-1) = 2k+1 - (2j+1 - 2j + k + 1)** are less than **2k+1-1**, the values of **ak** to **a0** can be recovered by successive modular division by **2k+1-1**, **2k-1**, etc.
To begin, we have to find the value of **2k+1-1** first. Since **n** is at most **2(2k+1-1)**, the integer **n + 1** must be strictly smaller than **2k+2**.
Thus, taking the integer part of the binary logarithm of **n + 1** yields **k + 1**.
Finally, we observe that the integer **n + 1** has **⌊log2(n + 1)⌋** digits in base 2.
### How it works
```
ri e# Read an integer N from STDIN.
2b, e# Push the number of binary digits of N + 1, i.e, K + 2 = log(N + 1) + 1.
,W% e# Push the range [K+1 ... 0].
{ e# For each J in the range:
2\# e# J -> 2**J
( e# -> 2**J - 1
md e# Perform modular division of the integer on the stack (initially N)
e# by 2**J - 1: N, 2**J - 1 -> N/(2**J - 1), N%(2**J - 1)
}/ e#
```
In the last two iterations, we perform modular division by **1** and **0**. The first pushes an unwanted **0** on the stack. The last attempts to execute `0 0 md`, which pops both unwanted **0**s from the stack, exits immediately instead of pushing anything and dumps the stack to STDOUT.
[Answer]
# Python 2, 67 bytes
```
def f(n):x=len(bin(n+1))-3;y=2**x-1;return n and n/y*10**~-x+f(n%y)
```
Seems to work for the given test cases. If I've got this right, this should be about `O(place values set in output)`, so it does the last case with ease.
Call like `f(100)`. Returns a decimal representation equal to the skew binary.
# Python 3, 65 bytes
```
def g(n,x=1):*a,b=n>x*2and g(n,x-~x)or[n];return a+[b//x,b%x][:x]
```
Slightly less efficient but still logarithmic, so the last case is near-instant.
Call like `g(100)`. Returns a list of digits.
[Answer]
# Pyth, 17 bytes
```
Ljb3ye.f!-P-yZ01Q
```
This is somewhat ridiculously slow - `O(output^log_2(3))`. It's exponential in the length of the input, but not doubly exponential, like some of the answers on the page. Some ideas taken from @Dennis's answer, [here](https://codegolf.stackexchange.com/a/51529/20080).
[Demonstration.](https://pyth.herokuapp.com/?code=Ljb3ye.f!-P-yZ01Q&input=100&debug=0)
It makes use of `.f`, Pyth's "loop until n matches have been found" function.
[Answer]
# CJam, ~~22~~ ~~21~~ 20 bytes
```
ri_me,3fb{0-W<1-!},=
```
This is an **O(enn)** approach, where **n** is the input. It lists the first **⌊en⌋** non-negative integers in base 3, eliminates those that have **2**s or **1**s after the first **2** (if any) and selects the **n+1**th.
Try it online in the [CJam interpreter](http://cjam.aditsu.net/#code=ri_2%23)%2C3fb%7B0-W%3C1-!%7D%2C%3D&input=10).
### How it works
```
ri e# Read an integer N from STDIN.
_me, e# Push [0 ... floor(exp(N))-1].
3fb e# Replace each integer in the range by the array of its digits in base 3.
{ e# Filter; for each array A:
0- e# Remove all 0's.
W< e# Remove the last element.
1- e# Remove all 1's.
! e# Logical NOT. Pushes 1 iff the array is empty.
}, e# If ! pushed 1, keep the array.
= e# Select the (N+1)th element of the filtered array.
```
[Answer]
# Pyth, 20 bytes
```
Jt^2hslhQ#p/=%QJ=/J2
```
Runs in O(log(input())), well under a second for the final test case. Based around a run until error loop. No trailing newline.
[Demonstration.](https://pyth.herokuapp.com/?code=Jt%5E2hslhQ%23p%2F%3D%25QJ%3D%2FJ2&input=1000000000000000000&debug=0)
Explanation:
```
Jt^2hslhQ#p/=%QJ=/J2
Implicit: Q is the input.
lhQ log(Q+1,2)
slhQ floor(log(Q+1,2))
hslhQ floor(log(Q+1,2))+1
^2hslhQ 2^(floor(log(Q+1,2))+1)
t^2hslhQ 2^(floor(log(Q+1,2))+1)-1
Jt^2hslhQ J=2^(floor(log(Q+1,2))+1)-1
# until an error is thrown:
=%QJ Q=Q%J
=/J2 J=J/2
/ The value Q/J, with the new values of Q and J.
p print that charcter, with no trailing newline.
```
J is initialized to the value of the smallest skew binary digit position that is larger than the input. Then, each time through the loop, we do the following:
* Remove each digit of value `J` from `Q` with `=%QJ`. For instance, if `Q=10` and `J=7`, `Q` becomes `3`, which corresponds to the skew binary changing from `110` to `10`. This has no effect in the first iteration.
* Change `J` to the next smaller skew binary base value with `=/J2`. This is floored division by 2, changing `J=7` to `J=3`, for instance. Because this happens before the first digit is output, `J` is intialized one digit position higher than needed.
* Find the actual digit value with `/QJ` (effectively).
* Print that value with `p`, instead of Pyth`s default printing, to avoid the trailing newline.
This loop will repeat until `J` becomes zero, at which point a divide by zero error will be thrown, and the loop will end.
[Answer]
# ES6, 105 bytes
```
f=n=>{for(o=0;n--;c?o+=Math.pow(3,s.length-c):o++)s=t(o),c=s.search(2)+1;return t(o);},t=a=>a.toString(3)
```
Usage is:
`f(1048576)` => `"10000000000000000001"
Test the last argument at your own peril. I gave up after 5 seconds.
And pretty print with comments!
```
f=n=>{ //define function f with input of n (iteration)
for(o=0; //define o (output value in decimal)
n--; //decrement n (goes towards falsy 0) each loop until 0
c?o+=Math.pow(3,s.length-c):o++) //if search finds a 2, increment output by 3^place (basically moves the 2 to the left and sets the place to 0), else ++
s=t(o), //convert output to base 3
c=s.search(2)+1; //find the location of 2, +1, so a not-found becomes falsy 0.
return t(o); //return the output in base 3
},
t=a=>a.toString(3); //convert input a to base 3
```
[Answer]
# Retina, 55 bytes
```
^
0a
(+`12(.*a)1
20$1
0?2(.*a)1
10$1
0a1
1a
)`1a1
2a
a
<empty line>
```
Takes input in unary.
Each line should go to its own file but you can run the code as one file with the `-s` flag. E.g.:
```
> echo 11111|retina -s skew
12
```
Method: Executes incrementation on a string input number times starting from the string `0`.
We use the following incrementation rules:
* if contains `2`: `^2 -> ^12`; `02 -> 12`; `12 -> 20`
* if doesn't contain `2`: `0$ -> 1$`; `1$ -> 2$`
(There can be at most one `2` in the string; `^` and `$` marks the start and end of the string in the rules.)
[More information about Retina.](https://github.com/mbuettner/retina)
[Answer]
# Java, ~~154~~ 148
```
n->{String s="0";for(;n-->0;)s=s.contains("2")?s.replaceAll("(^|0)2","10").replace("12","20"):s.replaceAll("1$","2").replaceAll("0$","1");return s;}
```
This answer take the form of a single anonymous function that takes an integer argument and returns the answer as a String. Below is a complete class for testing this solution.
```
import java.util.function.Function;
public class Skew {
public static void main(String[] args){
Function<Integer,String> skew = n->{String s="0";for(;n-->0;)s=s.contains("2")?s.replaceAll("(^|0)2","10").replace("12","20"):s.replaceAll("1$","2").replaceAll("0$","1");return s;};
for(String s:args){
System.out.println(skew.apply(Integer.parseInt(s)));
}
}
}
```
[Answer]
# Bash + coreutils, 52
```
dc -e3o0[r1+prdx]dx|grep -v 2.\*[12]|sed -n $1{p\;q}
```
This is a brute-forcer, so its rather slow for larger numbers.
### Output:
```
$ ./xkcdnum.sh 1000
111110120
$
```
[Answer]
# Java, ~~337~~ ~~335~~ ~~253~~ ~~246~~ 244 bytes
A method that takes in the index as a `long` and returns the result as a string
Uses a `long` for the index so can *theoretically* handle the last test case, but I *really* wouldn't suggest it.
```
String f(long i){List<Long>l=new ArrayList<>();l.add(0L);for(;i-->0;){int j=l.indexOf(2);if(j!=-1){l.set(j,0L);if(j==0){l.add(0,1L);}else{l.set(j-1,l.get(j-1)+1);}}else{j=l.size()-1;l.set(j,l.get(j)+1);}}String s="";for(long q:l)s+=q;return s;}
```
[Answer]
# Haskell, ~~73~~ 72
Thanks to @nimi for 1 byte!
This solution won't be winning any bounty, the last couple tests take an inordinate amount of time to run, but, I think I've golfed it fairly well.
```
i(2:b)=1:0:b
i[b]=[b+1]
i(b:2:c)=b+1:0:c
i(b:c)=b:i c
s=(iterate i[0]!!)
```
This solution is a rather naïve approach that calculates the skew binary number `n` by incrementing 0 `n` times.
[Answer]
# CJam, 24 bytes
```
Q{0\+2a/())+a\+0a*}ri*si
```
This is an **O(n log n)** approach, where **n** is the input. It starts with the skew binary representation of **0** and increments the corresponding integer **n** times.
Try it online in the [CJam interpreter](http://cjam.aditsu.net/#code=Q%7B0%5C%2B2a%2F())%2Ba%5C%2B0a*%7Dri*si&input=1000).
### Background
Incrementing a number in skew binary can be done by following two easy steps:
1. Replace an eventual **2** by a **0**.
2. If a **2** has been replaced, increment the digit to its left.
Otherwise, increment the last digit.
### How it works
```
Q e# Push an empty array.
{ e# Define an anonymous function:
0\+ e# Prepend a 0 to the array.
2a/ e# Split the array at 2's.
( e# Shift out the first chunk of this array.
) e# Pop the last digit.
)+ e# Increment it and append it to the array.
a\+ e# Prepend the chunk to the array of chunks.
0a* e# Join the chunks, using [0] as separator.
e# If there was a 2, it will get replaced with a 0. Otherewise, there's
e# only one chunk and joining the array dumps the chunk on the stack.
} e#
ri* e# Call the function int(input()) times.
si e# Cast to string, then to integer. This eliminates leading 0's.
```
[Answer]
# VBA, ~~209~~ ~~147~~ 142 bytes
```
Sub p(k)
For i=1To k
a=StrReverse(q)
If Left(Replace(a,"0",""),1)=2Then:q=q-2*10^(InStr(a,2)-1)+10^InStr(a,2):Else:q=q+1
Next
msgbox q
End Sub
```
My math is inefficient and my golfing could use work. But it's my first attempt at PoG and thought I'd give this one a try. Sort of a Brute Force way though.
It's just counting by 1 unless the last digit is a 2 then steps back by 2 and jumps forward 10. Plus the trailing 0's.
This stops working at 65534 because VBA insists on giving output in scientific notation, but the logic should work fine for even higher numbers
Looking forward to golfing suggestions, VBA is not very golf-friendly but it's not often represented, and I think it can beat Java for length.
Edit1:
Thanks **Manu** for helping shave off 62 bytes
Edit2: Swapped `debug.print` for `msgbox` as output. Saved 5 bytes
[Answer]
# Javascript ES6, ~~99~~ ~~86~~ ~~78~~ ~~76~~ 72 chars
```
f=n=>{for(s="1";--n;s=s.replace(/.?2|.$/,m=>[1,2,10][+m]||20));return s}
// Old version, 76 chars:
f=n=>{for(s="1";--n;s=s.replace(/02|12|2|.$/,m=>[1,2,10][+m]||20));return s}
// Old version, 86 chars:
f=n=>{for(s="1";--n;s=s.replace(/(02|12|2|.$)/,m=>[1,2,10,,,,,,,,,,20][+m]));return s}
// Old version, 99 chars:
f=n=>{for(s="1";--n;s=s.replace(/(^2|02|12|20|.$)/,m=>({0:1,1:2,2:10,12:20,20:100}[+m])));return s}
```
Test:
```
;[1,2,3,6,7,50,100,200,1000,10000,100000,1000000,1048576].map(f) == "1,2,10,20,100,11011,110020,1100110,111110120,1001110001012,1100001101010020,1111010000100100100,10000000000000000001"
```
>
> **Fun fact:** There is actually some merit to this number system. When incrementing a number, you will always change at most two adjacent digits - you'll never have to carry the change through the entire number. With the right representation that allows incrementing in O(1).
>
>
>
Thank you for the fact - it is the base of my solution :)
[Answer]
# Octave, ~~107~~ 101 bytes
Should be **O(log n)** if I'm figuring this right...
```
function r=s(n)r="";for(a=2.^(uint64(fix(log2(n+1))):-1:1)-1)x=idivide(n,a);r=[r x+48];n-=x*a;end;end
```
Pretty-print:
```
function r=s(n)
r="";
for(a=2.^(uint64(fix(log2(n+1))):-1:1)-1)
x=idivide(n,a);
r=[r x+48];
n-=x*a;
end
end
```
I was somewhat stymied addressing the final challenge, since Octave by default treats everything as floating point numbers and I didn't have the necessary precision to calculate the last one. I got around that by spending precious bytes to force everything to be an unsigned integer. The result of the last one was too big to treat as a number, so the result is a string.
Output (I'm including `1e18 - 1` to show I can do that accurately, and the last set of outputs shows how long it takes to calculate that value):
```
octave:83> s(uint64(1e18))
ans = 11011110000010110110101100111010011101100100000000000001102
octave:84> s(uint64(1e18)-1)
ans = 11011110000010110110101100111010011101100100000000000001101
octave:85> tic();s(uint64(1e18)-1);toc()
Elapsed time is 0.0270021 seconds.
```
[Answer]
## T-SQL, ~~221~~ ~~189~~ 177 bytes
EDIT: The original versions of this code would produce incorrect output for some numbers, this has been corrected.
With every query here, just add the number to calculate before the first comma.
Everyone know that T-SQL is the best golfing language. Here is a version that will calculate even the last test case. On the machine I tested it on, it ran in under a second, I'd be interested to see how it runs for everyone else.
```
DECLARE @ BIGINT=,@T VARCHAR(MAX)='';WITH M AS(SELECT CAST(2AS BIGINT)I UNION ALL SELECT I*2FROM M WHERE I<@)SELECT @T += STR(@/(I-1),1),@%=(I-1)FROM M ORDER BY I DESC SELECT @T
```
And here it is again, but readable:
```
DECLARE
@ BIGINT=,
@T VARCHAR(MAX)='';
WITH M AS
(
SELECT
CAST(2 AS BIGINT) I
UNION ALL
SELECT I * 2
FROM M
WHERE I < @
)
SELECT
@T+=STR(@/(I-1),1),
@%=(I-1)
FROM M
ORDER BY I DESC
SELECT @T
```
---
If I only use ints, this can be a bit shorter, coming out at 157 bytes:
```
DECLARE @ INT=,@T VARCHAR(MAX)='';WITH M AS(SELECT 2I UNION ALL SELECT I*2FROM M WHERE I<@)SELECT @T+=STR(@/(I-1),1),@%=(I-1)FROM M ORDER BY I DESC SELECT @T
```
And once more again, more readable:
```
DECLARE
@ INT=,
@T VARCHAR(MAX)='';
WITH M AS
(
SELECT
2I
UNION ALL
SELECT
I * 2
FROM M
WHERE I < @
)
SELECT
@T+=STR(@/(I-1),1),
@%=(I-1)
FROM M
ORDER BY I DESC
SELECT @T
```
[Answer]
# Turing Machine Code, ~~333~~ 293 bytes
I'm using an encoding as used [here](http://morphett.info/turing/turing.html).
This machine uses 9 states and 11 colors.
If binary input is permissible, this can be reduced to a mere 4 colors, saving a few tens of bytes in the process.
```
0 _ _ l 1
0 * * r 0
1 9 8 l 2
1 8 7 l 2
1 7 6 l 2
1 6 5 l 2
1 5 4 l 2
1 4 3 l 2
1 3 2 l 2
1 2 1 l 2
1 1 0 l 2
1 0 9 l 1
1 _ _ r 8
2 _ _ l 3
2 * * l 2
3 _ 1 r 4
3 * * l 5
4 _ _ r 0
4 * * r 4
5 * * l 5
5 _ _ r 6
6 _ _ l 7
6 2 0 l 7
6 * * r 6
7 _ 1 r 4
7 0 1 r 4
7 1 2 r 4
8 _ _ * halt
8 * _ r 8
```
If the above link isn't working (sometimes it works for me, other times the page refuses to load) you may also test this using [this java implementation.](http://pastebin.com/fQz6DBRU)
[Answer]
# Perl, 66 bytes
Number is to be input through STDIN.
```
$_=1;$c=<>;s/(.*)(.?)2(.*)/$1.$2+1 .$3.0/e||$_++while(--$c);print;
```
[Answer]
# Pyth, 19 bytes
```
m/=%Qtydtd^L2_SslhQ
```
Logarithmic complexity. Easily finishes in the necessary amount of time. Output in the form of a list of digits.
[Demonstration](https://pyth.herokuapp.com/?code=m%2F%3D%25Qtydtd%5EL2_SslhQ&input=1000000000000000000&debug=0).
[Answer]
# Perl, ~~84~~ ~~70~~ 67 bytes
```
$n=<>;$d*=2while($d++<$n);$_.=int($n/$d)while($n%=$d--,$d/=2);print
```
~~Not very golfy,~~ Getting better but it does work very quickly!
Dennis's suggestion gets it down to 51 (50 bytes + -p switch)
```
$d*=2while$d++<$_;$\.=$_/$d|0while$_%=$d--,$d/=2}{
```
It *must* be called like `perl -p skew_binary.pl num_list.txt` where `num_list.txt` contains a single line with the number to encode on it.
[Answer]
# [JavaScript (Node.js)](https://nodejs.org), 40 bytes
```
v=>(g=n=>n>v?'':g(n-~n)+(v-(v%=n))/n)(1)
```
[Try it online!](https://tio.run/##XY/LTsMwEEX3/opskGdUYuxAW0TlsOIrAKmR6wQj14liE3XFrwc7D4rw@9w7dyR/VkPlVW@6kLv2pMdajoMsoZFOlq4cnil9asDl3w43MOQw3EiHeOcQBI4HErQPqvLaZzI7EpHJMhOkSFdB7ifiZDchJ/uZOdny6SW4ECTyAjyWFFeKO5kLi1RdzApf@iQtnlGf5d/oFE6Tr4lrGz7764r2w@N2v1ta/h@CHP/8kfnOmgD0zVFktbFB93BJyQszTtmvk/ZAZUkR2bnqwCbLrqFZr9v@pVIfAK/mNtPvmEpU63xrNbNtAzVsDEaHhd6cAREP4w8 "JavaScript (Node.js) – Try It Online")
This solution does not work on last testcase. It just cause stack overflow on it.
[Answer]
## Mathematica, 65
Should be quite fast enough, although I have to admit I peeked at the other submissions before making this.
```
f = (n = #;
l = 0;
While[n > 0,
m = Floor[Log2[1 + n]];
l += 10^(m - 1);
n -= 2^m - 1
]; l)&
```
Usage:
```
f[1000000000000000000]
```
Output:
```
11011110000010110110101100111010011101100100000000000001102
```
Starts giving MaxExtraPrecision error messages somewhere past 10^228 (for which it calculates the result in .03 seconds on my machine)
After removing the MaxExtraPrecision limit, it will handle numbers up to around 10^8000 in a second.
Input:
```
Timing[Block[{$MaxExtraPrecision = Infinity}, f[10^8000]];]
```
Output:
```
{1.060807, Null}
```
[Answer]
# C, 95 bytes
```
void f(unsigned long i,int*b){for(unsigned long a=~0,m=0;a;a/=2,b+=!!m)m|=*b=i/a,i-=a**b;*b=3;}
```
This accepts an integer and a buffer in which to return the digits. The results are stored in `b`, terminated with value `3` (which can't occur in the output). We don't have to handle input of `0` (as the question specified only positive integers), so there's no special-casing to avoid empty output.
### Expanded code
```
void f(unsigned long i,int*b)
{
for (unsigned long a=~0, m=0; a; a/=2, b+=(m!=0)) {
*b = i/a; /* rounds down */
i -= *b * a;
m = m | *b; /* m != 0 after leading zeros */
}
*b=3; /* add terminator */
}
```
We operate by successive subtraction, starting with the most significant digit. The only complication is that we use the variable `m` to avoid printing leading zeros. A natural extension to `unsigned long long` may be made if desired, at the cost of 10 bytes.
### Test program
Pass numbers to be converted as command arguments. It converts the `int` array buffer to a printable digit string. Runtime is less than one millisecond for input `1000000000000000000`.
```
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char**argv)
{
while (*++argv) {
unsigned long i = strtoul(*argv, NULL, 10);
int result[1024];
f(i,result);
/* convert to string */
char s[1024];
{char*d=s;int*p=result;while(*p!=3)*d++=*p+++'0';*d=0;}
printf("%lu = %s\n", i, s);
}
return EXIT_SUCCESS;
}
```
### Test results
```
$ ./51517 $(seq 20)
1 = 1
2 = 2
3 = 10
4 = 11
5 = 12
6 = 20
7 = 100
8 = 101
9 = 102
10 = 110
11 = 111
12 = 112
13 = 120
14 = 200
15 = 1000
16 = 1001
17 = 1002
18 = 1010
19 = 1011
20 = 1012
```
[Answer]
## CoffeeScript, ~~92~~ 69 bytes
Based of [Qwertiy's answer](https://codegolf.stackexchange.com/a/51599/22867) and updates:
```
f=(n)->s='1';(s=s.replace /(.?2|.$)/,(m)->[1,2,10][+m]||20)while--n;s
# older version, 92 bytes
f=(n)->s='1';(s=s.replace /(^2|02|12|20|.$)/,(m)->{0:1,1:2,2:10,12:20,20:100}[+m])while--n;s
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 31 bytes
```
_r/?2|.$/g_÷C ç20 ª°Zs3}}gU['0]
```
[Try it online!](https://ethproductions.github.io/japt/?v=2.0a0&code=X3IvPzJ8LiQvZ1/3QyDnMjAgqrBaczN9fWdVWycwXQ==&input=LW1SIFsxLDIsMyw2LDcsNTAsMTAwLDIwMCwxMDAwLDEwMDAwXQ==)
Almost direct port of [this JS solution](https://codegolf.stackexchange.com/a/51599/78410). No idea if there's better way.
### Unpacked & How it works
```
X{Xr/?2|.$/gZ{Z÷C ç20 ||++Zs3}}gU['0]
X{ Declare a function...
Xr Accept a string, replace the regex...
/?2|.$/g /.?2|.$/ (g is needed to match *only once*, opposite of JS)
Z{ ...with the function... (matched string will be 0,1,2,02 or 12)
Z÷C Implicitly cast the matched string into number, divide by 12
ç20 Repeat "20" that many times (discard fractions)
|| If the above results in "", use the next one instead
++Z Increment the value
s3 Convert to base-3 string (so 0,1,2 becomes 1,2,10)
}}
gU['0] Repeatedly apply the function on "0", U (input) times
```
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 16 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
```
üxëàè£öΦGΩ│Je5█ò
```
[Run and debug it](https://staxlang.xyz/#p=817889858a9c94e847eab34a6535db95&i=1%0A2%0A3%0A6%0A7%0A50%0A100%0A200%0A1000%0A10000%0A100000%0A1000000%0A1048576%0A1000000000000000000&a=1&m=2)
I'm not sure exactly what the formal complexity class is, but it's fast enough to do all the test cases in a tenth of a second on this machine.
Unpacked, ungolfed, and commented, it looks like this. In this program, the x register originally contains the input.
```
z push []
{ start block for while loop
|X:2N -log2(++x)
{^}& increment array at index (pad with 0s if necessary)
xc:G-X unset high bit of x; write back to x register
w while; loop until x is falsy (0)
$ convert to string
```
[Run this one](https://staxlang.xyz/#c=z%09push+[]%0A%7B%09start+block+for+while+loop%0A+%7CX%3A2N%09-log2%28%2B%2Bx%29%0A+%7B%5E%7D%26%09increment+array+at+index+%28pad+with+0s+if+necessary%29%0A+xc%3AG-X%09unset+high+bit+of+x%3B+write+back+to+x+register%0Aw%09while%3B+loop+until+x+is+falsy+%280%29%0A%24%09convert+to+string&i=1%0A2%0A3%0A6%0A7%0A50%0A100%0A200%0A1000%0A10000%0A100000%0A1000000%0A1048576%0A1000000000000000000&a=1&m=2)
[Answer]
# [Husk](https://github.com/barbuz/Husk), 16 bytes
```
!mdfö¬f≠1hfImB3N
```
[Try it online!](https://tio.run/##yygtzv7/XzE3Je3wtkNr0h51LjDMSPPMdTL2@///v6GBAQA "Husk – Try It Online") or [Verify first 100 values](https://tio.run/##ATYAyf9odXNr/23CpytzKCsiIOKGkiAic@KCgSnhuKP/IW1kZsO2wqxm4omgMWhmSW1CM07///8xMDA "Husk – Try It Online")
Same method as Dennis' CJam answer.
] |
[Question]
[
[Richard Dawkins](http://en.wikipedia.org/wiki/Richard_Dawkins) in his book The [Blind Watchmaker](http://en.wikipedia.org/wiki/The_Blind_Watchmaker), describes a [Weasel program](http://en.wikipedia.org/wiki/Weasel_program). The algorithm can be described as follows:
>
> 1. Start with a random string of 28 characters. Valid characters are all upppercase letters, and space.
> 2. Make 100 copies of that string, with a 5% chance per character of that character being replaced with a random character.
> 3. Compare each new string with the target "METHINKS IT IS LIKE A WEASEL", and give each a score according to the number of letters in the string which are correct and in the correct position.
> 4. If any of the new strings has a perfect score (28), halt.
> 5. Choose the highest-scoring string from step 3. How you work out a tie is up to you, but only one string may be chosen. Take the chosen string and go to step 2.
>
>
>
The winner will be the shortest code snippet to get to the correct answer while printing the highest-scoring string of each generation in the following format:
![answers in this format please](https://i.stack.imgur.com/JhRcM.png)
If people could help by checking other peoples answers would be very helpful!
[Answer]
## APL (143)
```
0{⍵≢T←'METHINKS IT IS LIKE A WEASEL':c∇⍨1+⍺⊣⎕←(⍕⍺),':'c'-- score:',s⊣c←⊃c/⍨G=s←⌈/G←{+/⍵=T}¨c←{⍵{⍵:⍺⋄C[?27]}¨9≠?28/20}¨100⍴⊂⍵}⊃∘(C←27↑⎕A)¨?28/27
```
Explanation:
* `0{`...`}⊃∘(C←27↑⎕A)¨?28/27`: set `C` to the first 27 capital letters. There are only 26, so the 27th element will be a space. Select 28 random items from `C`. This will be the first `⍵`. The first `⍺` (generation) will be `0`.
* `⍵≢T←'METHINKS IT IS LIKE A WEASEL`: set `T` to the string `'METHINKS IT IS LIKE A WEASEL'`. As long as `⍵` is not equal to `T`:
+ `{`...`}¨100⍴⊂⍵`: Make 100 copies of `⍵`. For each of these...
- `9≠?28/20`: select 28 random numbers from 1 to 20. Make a bitmask where each `1` means that the random number was not equal to `9`. (This means 5% chance of a `0`).
- `⍵{⍵:⍺⋄C[?27]}¨`: for each letter in `⍵`, if the corresponding bit was `1`, keep that letter, otherwise replace it with a randomly chosen element from `C`.
+ `c←`: store the 100 mutated strings in `c`.
+ `G←{+/⍵=T}¨c`: for each element in `c`, calculate the score (amount of characters that match `T`) and store the scores in `G`.
+ `s←⌈/G`: find the maximum score and store that in `s`.
+ `c←⊃c/⍨G=s`: select the first item from `c` whose score is equal to `s` (the maximum), and store it in `c` again.
+ `⎕←(⍕⍺),':'c'-- score:',s`: print the generation in the given format (`⍺` is current generation, `c` is current best string, `s` is score)
+ `c∇⍨1+⍺`: Increment the generation and run the mutation again using the current best string (`c`) as input.
[Answer]
# Mathematica - ~~238~~ ~~236~~ 225
```
c:="@"~CharacterRange~"Z"~RandomChoice~28/."@"->" "
For[s=""<>c;i=0,{d,s}=Sort[{#~HammingDistance~"METHINKS IT IS LIKE A WEASEL",#}&@
StringReplace[s,_/;20Random[]<1:>c〚1〛]&~Array~100]〚1〛;
d>0Print[i++,":"s," -- score: ",28-d],]
```
Example output
```
0: CYPMEIHADXRXVTFHERYOZNRVFCSQ -- score: 0
1: CYPMEIHADIRXVTFBERYOZNRVFCSQ -- score: 1
2: CYPMEIHA IRXVTFBIRYOZNRVFCSQ -- score: 3
...
50: METHINKS IT IS LIKE A WEASEL -- score: 28
```
[Answer]
# Python (273)
```
from random import choice as c
n=range
a=map(chr,n(65,91)+[32])
s=map(c,[a]*28)
p=x=0
while p<28:
p,s=max((sum(g==r for g,r in zip(y,'METHINKS IT IS LIKE A WEASEL')),y)for y in ([c(a+[x]*513)for x in s]for _ in n(100)));print '%d: %s -- score: %d' % (x,''.join(s),p);x+=1
```
[Answer]
# K, 173 167
```
o:"METHINKS IT IS LIKE A WEASEL"
i:0;{~x~o}{-1($i),": ",(r:a@*&b=c)," -- score: ",$c:max@b:+/'o=/:a:{x{if[0~*1?20;x[y]:*1?s];x}/!#x}'100#,x;i+:1;r}/28?s:"c"$32,65+!26;
```
/
```
0: FQRZPHACDIBHZOUUCYKKFBJWVNVI -- score: 1
1: FQRZP ACDITHCOUUCYKKFBJWVNVI -- score: 2
2: FQRZP AFDIT COUUCYKKFBJWVNVI -- score: 3
...
51: METHINKS IT IS LIKECA WEASEL -- score: 27
52: METHINKS IT IS LIKECA WEASEL -- score: 27
53: METHINKS IT IS LIKE A WEASEL -- score: 28
```
[Answer]
## R (~~245~~ ~~239~~ 238 characters)
```
t=strsplit("METHINKS IT IS LIKE A WEASEL","")[[1]]
h=sample
s=h(f<-c(LETTERS," "),28,T)
c=0
while(!all(s==t)){for(i in 1:100){z=ifelse(runif(28)<.05,h(f,1),s)
y=sum(s==t)
if(sum(z==t)>y)s=z}
cat(c<-c+1,": ",s," -- score: ",y,"\n",sep="")}
```
Gives:
```
1: HSSSIMJM ETJISGBSCIELUYPLSED -- score: 7
2: HSSSIMJM ETJISGBSKIELUYPLSED -- score: 8
3: EETLITLM ETJISTBSKIELUYLLSEL -- score: 11
```
...
```
78: METHINKS IT IS LIKEEA WEASEL -- score: 27
79: METHINKS IT IS LIKEEA WEASEL -- score: 27
80: METHINKS IT IS LIKEEA WEASEL -- score: 27
81: METHINKS IT IS LIKE A WEASEL -- score: 28
```
[Answer]
# Python: 282 characters no semi colons
```
from random import*
g,r,l,c=0,0,"ABCDEFGHIJKLMNOPQRSTUVWXYZ ",choice
k=map(c,[l]*28)
while(r!=28):
r,k=max((sum(i==j for i,j in zip(t,"METHINKS IT IS LIKE A WEASEL")),t)for t in[[c(l)if random()<.05 else i for i in k]for i in[1]*100])
print`g`+":","".join(k),"-- score:",`r`
g+=1
```
# 278 with:
```
from random import*;g,r,l,c=0,0,"ABCDEFGHIJKLMNOPQRSTUVWXYZ ",choice;k=map(c,[l]*28)
while(r!=28):r,k=max((sum(i==j for i,j in zip(t,"METHINKS IT IS LIKE A WEASEL")),t)for t in[[c(l)if random()<.05 else i for i in k]for i in[1]*100]);print`g`+":","".join(k),"-- score:",`r`;g+=1
```
[Answer]
# JavaScript, ~~277~~ 246
```
c=m=>" ABCDEFGHIJKLMNOPQRSTUVWXYZ"[0|Math.random()*m];for(s=[k=28];e=k;s[--k]=c(27));for(;alert(k+++": "+s.join("")+" -- score: "+e),e<28;s=t)for(z=100;f=0,z--;f>e&&(t=n,e=f))n=s.map((h,p)=>(h=c(540)||h,f+=h=="METHINKS IT IS LIKE A WEASEL"[p],h))
```
(requires arrow function support; indentation added only for readability)
```
// c() returns a random char using `m` as an index max
c=m=>" ABCDEFGHIJKLMNOPQRSTUVWXYZ"[0|Math.random()*m];
// generate base string `s`
for(s=[k=28];e=k;s[--k]=c(27));
// while score `e` is < 28
for(;alert(k+++": "+s.join("")+" -- score: "+e),e<28;s=t)
for(z=100;f=0,z--;f>e&&(t=n,e=f)) // do 100 mutations; keep best score
n=s.map((h,p)=>( // map `s` to `n` with 5% mutation
h=c(540)||h, // change the char in 5% of cases
f+=h=="METHINKS IT IS LIKE A WEASEL"[p], // score++ if char matches
h // arrow function return character
))
```
Feel free to change `alert` to `console.log` if you want a more pleasant execution experience.
There are some nifty golfy bits in here:
* The function `c` returns a random character from the alphabet string `" ABC..."`. The function takes an argument to use as an upper bound for the random index selection. When generating the base string, we use `27`, so the function behaves normally.
However, we abuse this behavior by asking for a random upper bound of 540 in `h = c(540) || h`. Only 5% of the time will `c` actually return a string (because 540 \* .05 = 27); the other 95% of the time, the randomly-chosen index falls beyond the length of the string, so the function returns `undefined`. This falsey value causes a logical-OR cascade in `c(540) || h`, so the original `map` value `h` is used (i.e., no replacement occurs).
* The score-summing operation does `f+=h=="METHINKS IT IS LIKE A WEASEL"[p]`, which says "add `true` to `f` if the current `map` character `h` matches the `p`th character of the WEASEL string". The number-plus-boolean addition coerces the boolean result to either `0` or `1`, which means that `f` is incremented only when there is a match against the target WEASEL string.
[Answer]
# C 256
```
char c[101][29],s,n,z,b,j,i,w;g;main(){for(;w<28;printf("%d: %s -- score: %d\n",g++,c[b=n],w))for(i=w=0;i<101;i++)for(s=j=0;j<28&&!(i==b&&g);j++)(s+=(c[i][j]=g&&rand()%20?c[b][j]:(z=rand()%27)?'A'+z-1:' ')=="METHINKS IT IS LIKE A WEASEL"[j])>w?n=i,w=s:0;}
```
Simple three loops, initialization, generation of new strings from parent and score calculated by the same statement. It's not very readable even with indentation.
# C 252
```
i,g,n,b,o,s,w,z;char c[2929];main(){for(;(o=i%29)|i|w<28;(i=(i+1)%2929)||printf("%d: %s -- score: %d\n",g++,&c[b=n],w))(s+=o>27?-s:((i-o!=b||!g)&&(c[i]=g&&rand()%20?c[b+o]:(z=rand()%27)?'A'+z-1:' ')=="METHINKS IT IS LIKE A WEASEL"[o]))>w?n=i-o,w=s:0;}
```
One loop, with one array holding all 101 strings.
This second version breaks the rules because it prints the string from (the equivalent of) step 1, but it was either that or not print the last string. I'm stumped how to fix it without exploding in size. I'm posting it anyway for inspiration.
# C 256
```
struct{char d[29];}p,t,n;i,j=-1,z,s,w,g;main(){for(;w<28;j>1&&printf("%d: %s -- score: %d\n",g++,(p=n).d,w))for(;j++%100;p=j?p:t)for(s=0,i=28;i--;)(s+=(t.d[i]=j&&rand()%20?p.d[i]:(z=rand()%27)?'A'+z-1:' ')=="METHINKS IT IS LIKE A WEASEL"[i])>w?n=t,w=s:0;}
```
Different approach, instead of making an array to hold 101 strings just regenerate the string 100 times and use struct assignment for easy copying. Initialization is done by starting the "repeat 100 times" counter at -1 and handling it carefully by strategically chosen post-increment. Despite a very different approach it ends up exactly the same as the first attempt - 256 characters.
[Answer]
## C# - 436
```
namespace System.Linq{class W{static void Main(){var r=new Random();
Func<char>c=()=>(char)(r.Next(33,60)%59+32);var s="";
while(s.Length<28)s+=c();var a="METHINKS IT IS LIKE A WEASEL";int b=0;
while (s!=a){int m=-1;var f=s;for(int i=0;i<100;i++){
var l=string.Join("",s.Select(j=>(r.Next(20)!=0?j:c()).ToString()));
int o=Enumerable.Range(0,28).Sum(j=>l[j]==a[j]?1:0);if(o>m){f=l;m=o;}}
Console.WriteLine(b+++": "+(s=f)+" -- score: "+m);}}}}
```
[Answer]
**Lua 5.1 (502)**
The minimised version:
```
s,t,b,c,i,q,a,d,f="ABCDFGHJYUEGKSHNCOLPQIEJUSNC","METHINKS IT IS LIKE A WEASEL",1,math.random,table.insert,1,string.sub,100,28 while q~=f do r,p={},{} for x=1,d do i(r,s) i(p,0) e="" for o=1,f do if c(1,20)==1 then if c(1,27)==1 then e=e.." " else e=e..string.char(c(65,90)) end else e=e..a(r[x],o,o) end end r[x]=e for y=1,f do if a(r[x],y,y)==a(t,y,y) then p[x]=p[x]+1 end end if p[x]==f then s=r[x] end end for x=1,d do if p[x]>=q then s,q=r[x],p[x] end end print(b..":",s,"-- score: "..q) b=b+1 end
```
and the easier to read version (with comments!):
```
s,t,b,c,i,q,a,d,f="ABCDFGHJYUEGKSHNCOLPQIEJUSNC","METHINKS IT IS LIKE A WEASEL",1,math.random,table.insert,1,string.sub,100,28
--s=random string, t=target, b=counter, c=reference to math.random, i=reference to table.insert, q=top score,a=reference to string.sub, d=constant (100), f=constant (28)
while q~=f do
r,p={},{}
for x=1,d do --add 100 copies to the table of strings
i(r,s)
i(p,0)
e=""
for o=1,f do --for each character in string
if c(1,20)==1 then -- 5% chance
if c(1,27)==1 then e=e.." " else e=e..string.char(c(65,90)) end --set it to an ASCII char between 65 and 90 (A-Z) or a space character
else
e=e..a(r[x],o,o)
end
end
r[x]=e --current string = mutations
for y=1,f do
if a(r[x],y,y)==a(t,y,y) then p[x]=p[x]+1 end
end --for each char increment score if it is correct
if p[x]==f then
s=r[x]
end --if 28 then final string is this!
end
for x=1,d do
if p[x]>=q then s,q=r[x],p[x] end --if this is the highest score so far, then make the string equal to this
end
print(b..":",s,"-- score: "..q) --print it!
b=b+1 --add one to the counter!
end
```
To be honest even though this definitely won't win, I was just glad to find and minimise a *reasonably* short solution for this problem! (emphasis on reasonably) :p
[Answer]
## SAS - 374
```
%macro r;ranuni(7)%mend;%macro s;r=int(%r*27);substr(x,t,1)=byte(ifn(r,64+r,32));%mend;%macro y;char(y,t)=char(x,t)%mend;options nonotes nosource;data x;length x$28;do t=1to 28;%s;end;y="METHINKS IT IS LIKE A WEASEL";do z=1by 1;o=x;do i=1to 100;c=0;x=o;do t=1to 28;if %r<=.05then do;%s;end;c+%y;end;if c>m then do;m=c;v=x;end;end;x=v;put z":" x"-- score:" m;if m<28;end;run;
```
->
```
1 :GUUVLNUSILSRZLRBXVVCWXX HXKC -- score:2
2 :MUUVLNUSILSRZLRBXVMCWXX HXKC -- score:3
3 :MUUVLNESILSRILRBXVMCWXX HXKC -- score:4
4 :MEUVLNESILSRIRRBXVMCWXX HXKC -- score:5
....
95 :METHINKS IT IS LIKE A XEASEL -- score:27
96 :METHINKS IT IS LIKE A XEASEL -- score:27
97 :METHINKS IT IS LIKE A XEASEL -- score:27
98 :METHINKS IT IS LIKE A WEASEL -- score:28
```
With linebreaks/indent/comments:
```
%macro r;
ranuni(7) /* seed 0 will make new each time (seed=clock), otherwise fixed results */
%mend;
%macro s; /* does the rand char, used both to initialize and replace; */
r=int(%r*27);
substr(x,t,1)=byte(ifn(r,64+r,32)); *r=0 becomes space otherwise upper char;
%mend;
%macro y; /*compares using new to 9.2 CHAR function which is equivalent to substr(str,start,1) */
char(y,t)=char(x,t)
%mend;
options nonotes nosource; /*cheapest way to get clean log */
data x;
length x$28; /*annoyingly necessary*/
do t=1to 28;%s;end; /*initialize string*/
y="METHINKS IT IS LIKE A WEASEL"; /*compare string */
do z=1by 1; /*start iterating */
o=x; /*save this iteration's string */
do i=1to 100;
c=0; /*score for this iteration*/
x=o; /*string to fudge about start out clean, reusing x so no params to macro*/
do t=1to 28;
if %r<=.05then do;%s;end; /*if 5% then change the char out */
c+%y; /*score that character*/
end;
if c>m then do; /*if on better scoring line, save it */
m=c;
v=x;
end;
end;
x=v; *for next iter - this is cheaper than other options involving o=v due to first iter;
put z":" x"-- score:" m;
if m<28; *quit at 28;
end;
run;
```
[Answer]
## C ~~361~~ 331
Not as good as Art's solution, but here's my (newbie) attempt at a C solution. 361 characters if you remove newlines and tabs.
```
char*w="METHINKS IT IS LIKE A WEASEL";char b[101][29];t,s,n,i,j,x,a;main(){for(;i<28;i++)b[0][i]=w[rand()%28];while(s<28){for(j=1;j<101;j++){x=0;for(i=0;i<28;i++){if(!(rand()%20))b[j][i]=w[rand()%28];else b[j][i]=b[0][i];if(b[j][i]==w[i])x++;}if(x>s){s=x;t=j;}}printf("%d: %s -- score %d\n",n++,b[t],s);for(;i>=0;--i){a=b[0][i];b[0][i]=b[t][i];b[t][i]=a;}t=0;}}
```
Edit: Got rid of the nested loop and used a 1D array. Was hoping it would make a bigger difference, but it only saved me 30 characters. Here's the code:
```
char*w="METHINKS IT IS LIKE A WEASEL";char b[2929];t,s,n,i,x;main(){for(;i<28;i++)b[i]=w[rand()%28];while(s<28){for(;i<2929;i++){if((i+1)%29){if(!(i%29))x=0;b[i]=rand()%20?b[i%29]:w[rand()%28]; x+=b[i]==w[i%29];if(x>s){s=x;t=i/29;}}}for(i=0;i<29;i++){x=b[i+t*29];b[i+t*29]=b[i];b[i]=x;}printf("%d: %s -- score %d\n",n++,b,s);t=0;}}
```
Edit: This is the original, ungolfed code, for those who are interested in knowing how the "golfing" was done. The code produces no warnings when compiled with GCC with -Wall and C99 enabled. Maybe you're a golfing newbie like me, or a C newbie like me, or maybe you're just curious. :) <https://gist.github.com/cpx/97edbce4db3cb30c306a>
[Answer]
## Scala, ~~347~~ ~~341~~ 337 chars:
```
import util.Random.{nextInt=>r}
val t="METHINKS IT IS LIKE A WEASEL"
def c="ABCDEFGHIJKLMNOPQRSTUVWXYZ "(r(27))
def s(a:String)=t.zip(a).map{x=>if(x._1==x._2) 1 else 0}.sum
def w(a:String,i:Int=0){println(f"$i%2d: $a -- score: ${s(a)}")
if(s(a)!=28){w((0 to 99).map{_=>a.map(o=>if(r(20)<1) c else o)}.sortBy(s).last,i+1)}}
w(t.map(_=>c))
```
=>
```
0: PGSHWAEPALQFTCORUKANPNUTRVXH -- score: 2
1: PGSHWAEPALQ TCOQUKANPNUTRVXH -- score: 3
...
47: METHINKS WT IS LIKE A WEASEL -- score: 27
48: METHINKS IT IS LIKE A WEASEL -- score: 28
```
[Answer]
## PHP 442
```
<? function r(){$n=rand(65,91);if($n==91) return ' ';else return chr($n);}function s($s){$c=0;$t='METHINKS IT IS LIKE A WEASEL';for($i=0;$i<28;$i++) if($s[$i]==$t[$i]) $c++;return $c;}function m($s){for($i=0;$i<28;$i++) if(rand(0,99)<5) $s[$i]=r();return $s;}$s='';for($i=0;$i<28;$i++) $s.=r();for($i=0;;$i++){$l=s($s);printf("%2d: %s -- score: %d\n",$i,$s,$l);if($l==28) break;$x=$s;for($j=0;$j<100;$j++){$t=m($s);if(s($t)>$l) $x=$t;}$s=$x;}
```
Readbly:
```
<?
//random char
function r(){
$n=rand(65,91);
if($n==91) return ' ';
else return chr($n);
}
//score
function s($s){
$c=0;
$t='METHINKS IT IS LIKE A WEASEL';
for($i=0;$i<28;$i++)
if($s[$i]==$t[$i]) $c++;
return $c;
}
//mutate
function m($s){
for($i=0;$i<28;$i++)
if(rand(0,99)<5) $s[$i]=r();
return $s;
}
$s='';
for($i=0;$i<28;$i++) $s.=r();
for($i=0;;$i++){
$l=s($s);
printf("%2d: %s -- score: %d\n",$i,$s,$l);
if($l==28) break;
$x=$s;
for($j=0;$j<100;$j++){
$t=m($s);
if(s($t)>$l) $x=$t;
}
$s=$x;
}
```
[Answer]
# Java (632)
```
class C {public static void main(String[] a){String b="AAAAAAAAAAAAAAAAAAAAAAAAAAAA";for(int i=1;;i++){String c=w(b);int s=s(c);if(s==28)break;if(s(b)<s){b=c;System.out.println(i+": "+c+" -- score: "+s);}}}public static String w(String b) {StringBuffer c = new StringBuffer(b);int max = 0;for (int i=0;i<100;i++){for(int j=0;j<28;j++)if(Math.random()<.06){double d=Math.random();c.setCharAt(j,(char)(d==1?32:d*26+65));}String d=c.toString();int s=s(d);if(s>max){max=s;b=d;}}return b;}public static int s(String s){String b="METHINKS IT IS LIKE A WEASEL";int sum=0;for(int j=0;j<28;j++)sum+=s.charAt(j)==b.charAt(j)?1:0;return sum;}}
```
Java is such a verbose language.. :(
[Answer]
# Python (~~330~~ 321)
```
def b(i,s):print i,':',''.join(s),'-- score:',p(s)
from random import*;a=" ABCDEFGHIJKLMNOPQRSTUVWXYZ";i,s,t=0,choice(a)*28,"METHINKS IT IS LIKE A WEASEL";p=lambda n:sum(n[c]==t[c]for c in range(28))
while p(s)<28:b(i,s);s=sorted([[(c,choice(a))[random()<.05]for c in s]for k in[1]*100],key=lambda n:p(n))[-1];i+=1
b(i,s)
```
Readable version:
```
def b(i,s):
print i,':',''.join(s),'-- score:',p(s)
import random as r
a=" ABCDEFGHIJKLMNOPQRSTUVWXYZ"
i,s,t=0,r.choice(a)*28,"METHINKS IT IS LIKE A WEASEL"
p=lambda n:sum(1for c in range(28)if n[c]==t[c])
while p(s)<28:
b(i,s)
s=sorted([[(c,r.choice(a))[r.random()<.05]for c in s]for k in[1]*100],key=lambda n:p(n))[-1];i+=1
b(i,s)
```
Example output:
```
0 : SSSSSSSSSSSSSSSSSSSSSSSSSSSS -- score: 3
1 : SSSQSSSSSSSSSSSSISSSSSSSSSSS -- score: 4
2 : SSSQISSSSSSSSSSSISSSSSSSSSSS -- score: 5
3 : SSSQISSSSSSSSSSSIKSSSSSSSSSS -- score: 6
4 : SMSQISSSSSSSISSSIKSSSSGSSSSS -- score: 7
...
53 : METHINKS IT IS UIKE A WEASEL -- score: 27
54 : METHINKS IT IS UIKE A WEASEL -- score: 27
55 : METHINKS IT IS LIKE A WEASEL -- score: 28
```
edit: removed a few characters based on AMKs and Timtechs answer
[Answer]
**PHP (381 397 323 319 312):**
```
<? function s(&$s,&$i=0){$t='METHINKS IT IS LIKE A WEASEL';$i=0;$c=$s;$f=28;while($f--){$n=rand(0,26);$i+=($s[$f]=($c=='_'||!rand(0,19)?chr($n?$n+64:32):$s[$f]))==$t[$f];}}$s='_';s($s);$x=$y=0;do{$f=100;while($f--){$m=$s;s($m,$i);if($i>$y){$y=$i;$l=$m;}}printf("%2d: %s -- score: $y\n",$x++,$s=$l);}while($y<28);
```
Readable version:
```
<?
function s(&$s, &$i = 0) {
$t = 'METHINKS IT IS LIKE A WEASEL';
$i = 0;
$c = $s;
$f = 28; while ($f--) {
$n = rand(0, 26);
$i += ($s[$f] = ($c == '_' || !rand(0, 19) ? chr($n ? $n + 64 : 32) : $s[$f])) == $t[$f];
}
}
$s = '_';
s($s);
$x = $y = 0;
do {
$f = 100; while ($f--) {
$m = $s;
s($m, $i);
if ($i > $y) {
$y = $i;
$l = $m;
}
}
printf("%2d: %s -- score: $y\n", $x++, $s = $l);
} while ($y < 28);
```
Optimization credits (319):
* @GigaWatt [in this comment](https://codegolf.stackexchange.com/questions/17294/golfing-a-weasel-program#comment34957_17358)
* @Einacio for !rand(0,19) [taken from here](https://codegolf.stackexchange.com/questions/17294/golfing-a-weasel-program#17906)
Optimization credits (312):
* @Einacio's comments
[Answer]
## Ruby, 218
```
g,s,p,t=-1,'',1;while t!=28;t,b=-1;100.times{|i|m,n='',0
28.times{|j|n+=1if(m[j]=(rand<p ?[*?A..?Z,' '].sample: s[j]))=="METHINKS IT IS LIKE A WEASEL"[j]}
b,t=m,n if n>t};puts"#{g+=1}: #{s=b} -- score: #{t}";p=0.05;end
```
example run
```
0: LRAZZMKL IKUOGEHLKPWEVNEAZWX -- score: 6
1: LRAZZMKL IKUIGEALKMWEVNEAZWX -- score: 7
2: HRAGZMKL IKUIGEALKMWEVNEAZWX -- score: 7
3: HVAGZMKL IKUISAALKYWEVNEAZWX -- score: 8
...
48: METHIUKS IT IS LIKEIA WEASEL -- score: 26
49: METHINKS IT IS LIKEIA WEASEL -- score: 27
50: METHINKS IT IS LIKEIA WEASEL -- score: 27
51: METHINKS IT IS LIKE A WEASEL -- score: 28
```
[Answer]
## Ruby - ~~225~~ ~~202~~ ~~203~~ 198 chars
Ruby seems under-represented in this challenge so far so I thought I would give it a try! Improvements welcome.
```
g=-1
s=[]
puts"#{g+=1}: #{$.,s=(0..99).map{n=(r=0..27).map{|i|x=[' ',*?A..?Z].sample;rand<0.05?x:s[i]||=x};[r.count{|i|n[i]=='METHINKS IT IS LIKE A WEASEL'[i]},n*'']}.max;s} -- score: #$."until$.>27
```
[Answer]
# Ruby, ~~206~~ ~~200~~ 199
```
q,i,*R=*-2..27
puts"#{i+=1}: #{$.,s=(-2..q).map{x=R.map{|j|!s||rand<0.05?[*?A..?Z,' '].sample: s[j]};[R.count{|i|x[i]=='METHINKS IT IS LIKE A WEASEL'[i]},x]}.max;q=97;s.join} -- score: #$."until$.>27
```
The first line is simply a fancy way to define `q=-2`, `i=-1`, and `R=(0..27).to_a`. All the work is done in the 2nd line:
```
puts"..."until$.>27 # Prints the string in quotes until we reach the desired score
^
|
+---+
|
"#{i+=1}: #{...} -- score: #$."
^ ^ ^
+--------|---------------|-- Generation counter
+----------+---------------|-- Current string
| +-- Score of current string (interpolates the `$.` variable)
|
#{$.,s=(-2..q).map{...}.max;q=97;s.join} # Generate the score & string
^ ^ ^ ^ ^ ^ ^
+---------|--|---|----|---|----|------ Store the score; this variable makes
| | | | | | string interpolation shorter.
+--|---|----|---+----|------ `q` automatically takes care of generating
| | | | the string vs randomizing the string.
+---|----|--------|------ Make 100 (or 1 the first time) strings,
| | | and compute their score.
| +--------|------- Take the string with the max score.
+------------------+ +------- `s` is stored as an array
|
x=R.map{...};[R.count{...},x] # Compute string and its score, store in array
^ ^ ^^ ^
+-----|----|+-------|------ `R` is 0..27, we use the constant to save chars.
| +--------|------ `max` orders by first element, then second. We clearly want
| | the highest score, so make the score first.
+-------+-------------|------ Generate the string, store in `x`.
| +------ Count the number of chars that overlap with 'METHINKS...'
| |
| {|i|x[i]=='METHINKS IT IS LIKE A WEASEL'[i]}
{|j|!s||rand<0.05?[*?A..?Z,' '].sample: s[j]}
^ ^ ^ ^ ^
+---+---------|-------------|-------|---- 5% chance of randomizing, or 100% for
| | | first string.
+-------------+-------|---- Sample from alphabet + ' '.
+---- Don't alter the string 95% of the time
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt) v2.0a0, ~~112~~ 108 bytes
```
ª(T=Si26õdI q¹ö28
_¬í¥`Ú0ˆks Š ‰ ¦ke a Øâel`u q)x
(OpW+`: {U} -- sÖ: `+(K=[U]xV¹WÄ
K<28©ßLÆ®p513 iT ö}ÃñV o
```
[Try it online!](https://ethproductions.github.io/japt/?v=2.0a0&code=qihUPVNpMjb1ZEkgcbn2MjgKX6ztYNowiGtzIIogiSCma2UgYSDY4mVsYHUgrCI9PSIgeAooT3BXK2A6IHtVfSAtLSBz1hA6IGArKEs9K1tVXW1WuVfECks8Mjip30zGrnA1MTMgaVQg9n3D8VYgbw==&input=)
-4 bytes thanks to @ETHproductions.
### Unpacked & How it works
```
U||(T=Si26õdI q) ö28 Initialize primary input
U|| If U is not initialized...
26õdI Generate uppercase alphabets
q Convert to string
Si Add space
(T= ) Assign to variable T
ö28 Sample 28 random chars from T and form a string
Implicitly assign to U
_q í==`Ú0ˆks Š ‰ ¦ke a Øâel`u q)x Match counting function
_ Declare a function...
q í== ) Convert to array of chars and pair with the next,
and map with equality...
`Ú0ˆks Š ‰ ¦ke a Øâel`u q "methinks it is like a weasel" to uppercase
split into chars
x Sum (true == 1, false == 0)
Implicitly assign to V
(OpW+`: {U} -- sÖ: `+(K=[U]xV) W+1 Output and increment counter
(Op ) Output with newline...
W+`: {U} -- sÖ: `+ `{W}: {U} -- score: `
[U]xV Call V on [U] and force cast to number
(K= ) Assign to K
W+1 Add 1 to W and implicitly assign to W
K<28&&ßLo@Um_p513 iT ö}} ñV o Termination check and recursion
K<28&& If the match count is less than 28...
ß Recurse the program with...
Um_ Map over chars of U...
p513 iT The char repeated 513 times plus T
ö} Sample a char from it
Lo@ } Generate array of 100 of the above
ñV o Sort by V, pop the largest, pass it as U
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt) `-R`, 94 bytes
A different approach to but with a little inspiration from [Bubbler's solution](https://codegolf.stackexchange.com/a/165790/58974).
```
;C±S ö28
ȶ`Ú0ks ¦ke a Øâel`gY
@=#dÆ£20ö ?X:CöÃÃñ_¬xVÃo)ʶG}a@Np[X+':Uu '-²`sÖ:`G=U¬xV]¸
```
[Test it](https://ethproductions.github.io/japt/?v=1.4.5&code=O0OxUyD2MjgKyLZg2jCIa3MgiiCJIKZrZSBhINjiZWxgZ1kKQD0jZMajMjD2ID9YOkP2w8PxX6x4VsNvKcq2R31hQE5wW1grJzpVdSAnLbJgc9YQOmBHPVWseFZduA==&input=LVI=) (or [Try It Online](https://tio.run/##AYIAff9qYXB0//87Q8KxUyDDtjI4CsOIwrZgw5owwohrcyDCiiDCiSDCpmtlIGEgw5jDomVsYGdZCkA9I2TDhsKjMjDDtiA/WDpDw7bDg8ODw7Ffwqx4VsODbynDisK2R31hQE5wW1grJzpVdSAnLcKyYHPDlhA6YEc9VcKseFZdwrj//y1S))
---
## Explanation
### Line 1
Result gets assigned to variable `U`.
```
;C±S ö28
;C :The lower case alphabet
±S :Append a space and reassign result to C
ö28 :Generate a string of 28 random characters
```
### Line 2
Result gets assigned to variable `V`.
```
ȶ`Ú...l`gY
È :A function that takes 2 arguments; a string (X) and an integer (Y)
`Ú...l` : The compressed string "methinks it is like a weasel"
gY : Get the character at index Y
¶ : Test for equality with X
```
### Line 3
The result of this line is implicitly joined with newlines and output.
```
@=#dÆ£20ö ?X:CöÃÃñ_¬xVÃo)Ê¥G}a@Np[X+':Uu '-²`sÖ:`G=U¬xV]¸
@ }a@ :Repeat until true
[ ] :Build an array containing ...
X+': : A colon appended to the number of the current iteration
Uu : The current value of U uppercased
'-² : A hyphen repeated twice
`sÖ:` : The compressed string "score: "
U¬ : Split U to an array of characters
V : Pass each character X at index Y through function V
x : Reduce by addition
G= : Assign the result to variable G
¸ :Join with spaces
Np :Push to N (initially an empty array)
#d :100
Æ :Generate the range [0,100) and pass each through a function
£ : Map over each character X in U
20ö : Generate a random number in the range [0,20), which has a 5% chance of being 0 (falsey)
?X : If thruthy, return X
:Cö : Else return a random character from C
à : End mapping
à :End function
ñ_ :Sort by passing each through a function
¬ : Split to an array of characters
V : Pass each character X at index Y through function V
x : Reduce by addition
à :End sorting
o :Pop the last element
= ) :Reassign to U
Ê :Length
¶G :Equal to G
```
[Answer]
## [Perl 5](https://www.perl.org/), 219 bytes
```
$_="METHINKS IT IS LIKE A WEASEL";sub r{(A..Z,$")[rand 27]};sub t{~~grep/$t[$-++%28]/,pop=~/./g}$}.=r for@t=/./g;printf"%3d: %s -- score: %d
",$i++,(($})=sort{t($b)<=>t$a}map s/./rand>.05?$&:r/ger,($})x100),t$}until/$}/
```
[Try it online!](https://tio.run/##HY5Ra4MwFIXf9ysu4ToUY@I6yka7dPNBmLTbi4VCSxl2WhE6DTcpDCT@dVf3eM53@Di6ost8HPFLsY90@559rnPItpDlsMnWKSSwS5M83bCluZ6Aej8RYs@RBQcq2hJmT0f3T2w/DDVVWqI9YBSG3uz5KLnutBqkkLVDJxTBuaM3q6Ziqalp7Zl5j@UCPANRBOa7o@oWyjvGsQlD7vvoAmU6sr318RS8qJXFwv0UGszNMR1YiXj@ivcLknVFfNr/PsRxwC26a2ubi0Qnx/EP "Perl 5 – Try It Online")
[Answer]
# Ruby - 410
```
#!/usr/bin/env ruby
C,RC=[32]+(65..90).to_a,->{C[rand(27)].chr}
T,CO,CH,OU,s,sc,a,aa,z,TR="METHINKS IT IS LIKE A WEASEL",->x{a=0;(0...28).each{|z|a+=1 if x[z]==T[z]};a},->{a[aa.rindex(sc)]},->x,y{print x;print " Score: ";puts y},(0...28).map{RC[]}.join,0,[0],[0],0,->{rand(20)==0}
until sc==28
a=[s]*100;aa=[0]*100;(0...100).each{|x|(0...28).each{|y|a[x][y]=RC[] if TR[]};z=CO[a[x]];aa[x]=CO[a[x]];OU[a[x],z]};sc=aa.max;s=CH[] end
```
Edit\* It's currently failing (for some reason a[any] is being set to 0 (type=>fixnum)). However, the actual design is right, I just need to find the bug causing this to happen (it's very mysterious)
[Answer]
## Python 284
```
from random import*
C=choice
A=map(chr,range(65,91)+[32])
s=[C(A)for i in[0]*28]
N=x=0
while N!=28:N,s=max((len([i for i,j in zip(X,"METHINKS IT IS LIKE A WEASEL")if i==j]),X)for X in[[c if random()<.95 else C(A)for c in s]for i in[0]*100]);print`x`+":",''.join(s),"-- score:",N;x+=1
```
[Answer]
## GolfScript 207
```
{91,{64>},32+''+27rand=}:g;'METHINKS IT IS LIKE A WEASEL':s;{`{\.@\=s@==}+s,,\%{+}*}:c;0:k;{k):k\.': '@@c' -- score: '\++++n+}:f;[{g}]28*{~}%{s=!}{{`100,\{\;{100rand 5>{ }{;g}if}%''+}+}~%{c}$)\;{ }%}/{f}/s f
```
Below is a slightly unpacked version of the above GolfScript with explanation. Since I don't think it could beat the APL or some other answers, I didn't bother to truly minify it. I think that with inlining variable declarations, eliminating unnecessary variables, and other such tricks, this code could achieve approximately 190 characters without really changing the algorithm. I think about about 10-15 characters could be removed if I better sorted out the conversion between arrays of ASCII values and strings.
```
#g is a function that returns the ASCII value of a random character or space.
#The ASCII values for capital letters are 65-90, and 32 is space.
{91,{64>},32+''+27rand=}:g;
#s is the string of interest.
'METHINKS IT IS LIKE A WEASEL':s;
#c is a function that returns the 'score' of a given string
#(the number of correct characters in the correct place).
{`{\.@\=s@==}+s,,\%{+}*}:c;
#t is a function that transforms a given string according to
#the specification (by replacing characters with a random character 5% of the times).
{{100rand 5>{ }{;g}if}%''+}:t;
#i is the initial random string.
[{g}]28*{~}%:i;
#Use '/' to unfold the initial value until the string is equal to the string of interest.
#Every loop, do the transformation 100 times, then sort by score c, and then take the top scoring string.
#Aggregate the results into an array a.
i{s=!}{{`100,\{\;t}+}~%{c}$)\;{ }%}/:a;
#Instantiate a counter variable k
0:k;
#f is the formatting function, that takes a string and formats it according to the spec.
{k):k\.': '@@c' -- score: '\++++n+}:f;
#Format every string in the array, and then format the string of interest
a{f}/
s f
```
[Answer]
# JavaScript - 312
There is already a shorter JS solution above but it is using experimental pointer functions, so I thought I'd throw in another solution that is running in any JS environment:
```
for(r=Math.random,R=function(){return'METHINKS CODZAWFLBUGYQRXVJP'[~~(r()*27)]},_=[],_.$=n=0,D=function(s){for(c=[],c.$=i=0;i<28;){c[i]=s&&r()<.95?s[i]:R();_=(c.$+=c[i]=='METHINKS IT IS LIKE A WEASEL'[i++])>_.$?c:_};return c},D();_.$<28;){for(j=0;j++<1e2;)D(_);console.log(n+++': '+_.join('')+' -- score: '+_.$)}
```
[Answer]
## Java: ~~557~~ 534
```
enum W{W;public static void main(String[]a){char[]c=new char[28],h,d[];int i,k,e,s=W.s(c);for(i=0;i<28;i++)c[i]=W.r();for(i=0;;){W.p(i++,h=c,s);if(s>27)break;d=new char[100][28];for(char[]b:d){for(k=0;k<28;k++)b[k]=Math.random()<.05?W.r():h[k];if((e=W.s(b))>s){s=e;c=b;}}}}int s(char[]c){int s=0,k;for(k=0;k<28;k++)if(c[k]=="METHINKS IT IS LIKE A WEASEL".charAt(k))s++;return s;}void p(int i,char[]c,int s){System.out.println(i+": "+new String(c)+" -- score: "+s);}char r(){int i=(int)(Math.random()*27);return(char)(i==26?32:i+65);}}
```
Unwrapped:
```
enum W {
W;
public static void main(String[] a) {
char[] c = new char[28], h, d[];
int i, k, e, s = W.s(c);
for(i = 0; i < 28; i++)
c[i] = W.r();
for(i = 0;;) {
W.p(i++, h = c, s);
if(s > 27)
break;
d = new char[100][28];
for(char[] b : d) {
for(k = 0; k < 28; k++)
b[k] = Math.random() < .05 ? W.r() : h[k];
if((e = W.s(b)) > s) {
s = e;
c = b;
}
}
}
}
int s(char[] c) {
int s = 0, k;
for(k = 0; k < 28; k++)
if(c[k] == "METHINKS IT IS LIKE A WEASEL".charAt(k))
s++;
return s;
}
void p(int i, char[] c, int s) {
System.out.println(i + ": " + new String(c) + " -- score: " + s);
}
char r() {
int i = (int)(Math.random() * 27);
return (char)(i == 26 ? 32 : i + 65);
}
}
```
[Answer]
**PHP ~~429~~ ~~426~~ ~~421~~ 415**
```
<? function t(){$a="ABCDEFGHIJKLMNOPQRSTUVWXYZ ";return $a{rand(0,26)};}$c='';$j=$g=0;$i=28;while($i--)$c.=t();function r($s){$i=28;while($i--)!rand(0,19)&&$s{$i}=t();return $s;}function s($s,&$r){$c="METHINKS IT IS LIKE A WEASEL";$i=28;$r=0;while($i--)$r+=$s{$i}==$c{$i};}while($g<28){$n='';$v=0;$i=100;while($i--){s($t=r($c),$a);($a>$v)&&($v=$a)&($n=$t);}($v>$g)&&($g=$v)&($c=$n);echo $j++.": $c -- score: $g\n";}
```
pretty print
```
<?php
function t(){
$a="ABCDEFGHIJKLMNOPQRSTUVWXYZ ";
return $a{rand(0,26)};
}
$c='';
$j=$g=0;
$i=28;
while($i--)
$c.=t();
function r($s){
$i=28;
while($i--)
!rand(0,19)&&$s{$i}=t();
return $s;
}
function s($s,&$r){
$c="METHINKS IT IS LIKE A WEASEL";
$i=28;
$r=0;
while($i--)
$r+=+($s{$i}==$c{$i});
}
while($g<28){
$n='';
$v=0;
$i=100;
while($i--){
s($t=r($c),$a);
($a>$v)&&($v=$a)&($n=$t);
}
($v>$g)&&($g=$v)&($c=$n);
echo $j++.": $c -- score: $g\n";
}
```
I'll need a less verbose language next time
[Answer]
**Golfscript (**168** 167)**
```
:x;0['METHINKS IT IS LIKE A WEASEL'{}/]:o{;{27rand.!96*+64^}:r~}%{o=!}{100,{;.{20rand{}{;r}if}%}%{{[o\]zip{~=},,}:s~}$)@;\;x 2$+': '+1$+' -- score: '+1$s+n+:x;\)\}/;;x
```
Sadly, I can't seem to compress it quite to APL's level, but it's afaict currently a shared second place.
This is what it does;
```
# Grab the empty parameter string as initially empty output string.
:x;
# Start count at row #0
0
# Store the target string as an array in 'o'
['METHINKS IT IS LIKE A WEASEL'{}/]:o
# Create a random starting string, and define 'r' as a function generating a random char.
{;{27rand.!96*+64^}:r~}%
# Unfold as long as the latest string is different from the target string.
{o=!}
{
// Generate 100 strings, sort by score and keep the highest.
100,{;.{20rand{}{;r}if}%}%{{[o\]zip{~=},,}:s~}$)@;\;
// Append the row to the output string, and increase the row number
x 2$+': '+1$+' -- score: '+1$s+n+:x;\)\
}/
// Clean some junk on the stack
;;
// Output string
x
```
] |
[Question]
[
Write a regex which matches any valid [sudoku](https://en.wikipedia.org/wiki/Sudoku) solution and doesn't match any invalid sudoku solution. The input is an *unrolled* version of the sudoku, i.e. there are no line delimiters. E.g. the following board:
```
7 2 5 8 9 3 4 6 1
8 4 1 6 5 7 3 9 2
3 9 6 1 4 2 7 5 8
4 7 3 5 1 6 8 2 9
1 6 8 4 2 9 5 3 7
9 5 2 3 7 8 1 4 6
2 3 4 7 6 1 9 8 5
6 8 7 9 3 5 2 1 4
5 1 9 2 8 4 6 7 3
```
would be given as:
```
725893461841657392396142758473516829168429537952378146234761985687935214519284673
```
The rules are probably common knowledge by now, but just in case... a sudoku board is valid if and only if:
* Each row contains the digits from `1` to `9` exactly once.
* Each column contains the digits from `1` to `9` exactly once.
* Each of the nine 3x3 subgrids contains the digits from `1` to `9` exactly once.
## Rules
Your answer should consist of a single regex, without any additional code (except, optionally, a list of regex modifiers required to make your solution work). You must not use features of your language's regex flavour that allow you to invoke code in the hosting language (e.g. Perl's `e` modifier).
You can use any regex flavour which existed before this challenge, but please specify the flavour.
Do not assume that the regex is anchored implicitly. E.g. if you're using Python, assume that your regex is used with `re.search` and not with `re.match`. Your regex does not need to match the entire string. It just needs to match at least one substring (which may be empty) for valid solutions and yield no matches for invalid solutions.
You may assume that the input will always be a string of 81 positive digits.
This is regex golf, so the shortest regex in bytes wins. If your language requires delimiters (usually `/.../`) to denote regular expressions, don't count the delimiters themselves. If your solution requires modifiers, add one byte per modifier.
## Test Cases
Valid boards:
```
123456789456789123789123456231564897564897231897231564312645978645978312978312645
725893461841657392396142758473516829168429537952378146234761985687935214519284673
395412678824376591671589243156928437249735186738641925983164752412857369567293814
679543182158926473432817659567381294914265738283479561345792816896154327721638945
867539142324167859159482736275398614936241587481756923592873461743615298618924375
954217683861453729372968145516832497249675318783149256437581962695324871128796534
271459386435168927986273541518734269769821435342596178194387652657942813823615794
237541896186927345495386721743269158569178432812435679378652914924813567651794283
168279435459863271273415986821354769734692518596781342615947823387526194942138657
863459712415273869279168354526387941947615238138942576781596423354821697692734185
768593142423176859951428736184765923572389614639214587816942375295837461347651298
243561789819327456657489132374192865926845317581673294162758943735914628498236571
243156789519847326687392145361475892724918653895263471152684937436729518978531264
498236571735914628162758943581673294926845317374192865657489132819327456243561789
978531264436729518152684937895263471724918653361475892687392145519847326243156789
341572689257698143986413275862341957495726831173985426519234768734869512628157394
```
Invalid boards:
```
519284673725893461841657392396142758473516829168429537952378146234761985687935214
839541267182437659367158924715692843624973518573864192298316475941285736456729381
679543182158926473432817659567381294914256738283479561345792816896154327721638945
867539142324167859159482736275398684936241517481756923592873461743615298618924375
754219683861453729372968145516832497249675318983147256437581962695324871128796534
271459386435168927986273541518734269769828435342596178194387652657942813823615794
237541896186927345378652914743269158569178432812435679495386721924813567651794283
168759432459613278273165984821594763734982516596821347615437829387246195942378651
869887283619214453457338664548525781275424668379969727517385163319223917621449519
894158578962859187461322315913849812241742157275462973384219294849882291119423759
123456789456789123564897231231564897789123456897231564312645978645978312978312645
145278369256389147364197258478512693589623471697431582712845936823956714931764825
243561789829317456657489132374192865916845327581673294162758943735924618498236571
243156789529847316687392145361475892714928653895263471152684937436719528978531264
498236571735924618162758943581673294916845327374192865657489132829317456243561789
978531264436719528152684937895263471714928653361475892687392145529847316243156789
342571689257698143986413275861342957495726831173985426519234768734869512628157394
345678192627319458892451673468793521713524986951862347179246835534187269286935714
341572689257698143986413275862341957495726831173985426519234768734869512628517394
```
For further test cases, [you can use this CJam script](http://cjam.aditsu.net/#code=3e!1%3E%7BI9%2C3%3E%2B3%2CI3f%2B9%2C6%3E%2B%2B6%2CI6f%2B%2BI9%2C3%2Ff%3De_%7DfI%5D%7B%60'%7B%5C%2B%22%5Cf%3D%7D%22%2B%7D%25s~%0A%7BW%25%7D%7Bz%7D%5D%3AP%3B%0A%0Aq%3A~9%2F%7BPmR~%7D1000*&input=7%202%205%208%209%203%204%206%201%0A8%204%201%206%205%207%203%209%202%0A3%209%206%201%204%202%207%205%208%0A4%207%203%205%201%206%208%202%209%0A1%206%208%204%202%209%205%203%207%0A9%205%202%203%207%208%201%204%206%0A2%203%204%207%206%201%209%208%205%0A6%208%207%209%203%205%202%201%204%0A5%201%209%202%208%204%206%207%203) which takes a valid board as input and randomly shuffles it to give a new valid board (input format irrelevant as long as it contains only digits and optionally whitespace).
If your regex is compatible with the .NET flavour, [you can test it online](http://retina.tryitonline.net/) using Retina. A valid solution should print `0` for invalid boards and some positive integer for valid boards. To run all test cases at once, [use this template](http://retina.tryitonline.net/#code=JShHYAo&input=MTIzNDU2Nzg5NDU2Nzg5MTIzNzg5MTIzNDU2MjMxNTY0ODk3NTY0ODk3MjMxODk3MjMxNTY0MzEyNjQ1OTc4NjQ1OTc4MzEyOTc4MzEyNjQ1CjcyNTg5MzQ2MTg0MTY1NzM5MjM5NjE0Mjc1ODQ3MzUxNjgyOTE2ODQyOTUzNzk1MjM3ODE0NjIzNDc2MTk4NTY4NzkzNTIxNDUxOTI4NDY3MwozOTU0MTI2Nzg4MjQzNzY1OTE2NzE1ODkyNDMxNTY5Mjg0MzcyNDk3MzUxODY3Mzg2NDE5MjU5ODMxNjQ3NTI0MTI4NTczNjk1NjcyOTM4MTQKNjc5NTQzMTgyMTU4OTI2NDczNDMyODE3NjU5NTY3MzgxMjk0OTE0MjY1NzM4MjgzNDc5NTYxMzQ1NzkyODE2ODk2MTU0MzI3NzIxNjM4OTQ1Cjg2NzUzOTE0MjMyNDE2Nzg1OTE1OTQ4MjczNjI3NTM5ODYxNDkzNjI0MTU4NzQ4MTc1NjkyMzU5Mjg3MzQ2MTc0MzYxNTI5ODYxODkyNDM3NQo5NTQyMTc2ODM4NjE0NTM3MjkzNzI5NjgxNDU1MTY4MzI0OTcyNDk2NzUzMTg3ODMxNDkyNTY0Mzc1ODE5NjI2OTUzMjQ4NzExMjg3OTY1MzQKMjcxNDU5Mzg2NDM1MTY4OTI3OTg2MjczNTQxNTE4NzM0MjY5NzY5ODIxNDM1MzQyNTk2MTc4MTk0Mzg3NjUyNjU3OTQyODEzODIzNjE1Nzk0CjIzNzU0MTg5NjE4NjkyNzM0NTQ5NTM4NjcyMTc0MzI2OTE1ODU2OTE3ODQzMjgxMjQzNTY3OTM3ODY1MjkxNDkyNDgxMzU2NzY1MTc5NDI4MwoxNjgyNzk0MzU0NTk4NjMyNzEyNzM0MTU5ODY4MjEzNTQ3Nj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MTI5NzgzMTI2NDUKMTQ1Mjc4MzY5MjU2Mzg5MTQ3MzY0MTk3MjU4NDc4NTEyNjkzNTg5NjIzNDcxNjk3NDMxNTgyNzEyODQ1OTM2ODIzOTU2NzE0OTMxNzY0ODI1CjI0MzU2MTc4OTgyOTMxNzQ1NjY1NzQ4OTEzMjM3NDE5Mjg2NTkxNjg0NTMyNzU4MTY3MzI5NDE2Mjc1ODk0MzczNTkyNDYxODQ5ODIzNjU3MQoyNDMxNTY3ODk1Mjk4NDczMTY2ODczOTIxNDUzNjE0NzU4OTI3MTQ5Mjg2NTM4OTUyNjM0NzExNTI2ODQ5Mzc0MzY3MTk1Mjg5Nzg1MzEyNjQKNDk4MjM2NTcxNzM1OTI0NjE4MTYyNzU4OTQzNTgxNjczMjk0OTE2ODQ1MzI3Mzc0MTkyODY1NjU3NDg5MTMyODI5MzE3NDU2MjQzNTYxNzg5Cjk3ODUzMTI2NDQzNjcxOTUyODE1MjY4NDkzNzg5NTI2MzQ3MTcxNDkyODY1MzM2MTQ3NTg5MjY4NzM5MjE0NTUyOTg0NzMxNjI0MzE1Njc4OQozNDI1NzE2ODkyNTc2OTgxNDM5ODY0MTMyNzU4NjEzNDI5NTc0OTU3MjY4MzExNzM5ODU0MjY1MTkyMzQ3Njg3MzQ4Njk1MTI2MjgxNTczOTQ) and insert the regex on the second line. If you need regex modifiers, prepend a ``` to the regex and put the standard modifier letters in front of it.
[Answer]
# Ruby regex, 71 78 73 bytes
```
^(?!.*(?=(.))(.{9}+|(.(?!.{9}*$))+|(?>.(?!.{3}*$)|(.(?!.{27}*$)){7})+)\1)
```
I don't really know Ruby but apparently it doesn't complain about cascaded quantifiers.
[Try it here.](http://rubular.com/r/5WSa21XJwQ)
# .NET regex, 79 78 75 or 77 bytes
Because Martin thinks this is possible... But I guess he will just incorporate these changes too.
```
^(?!(.)+((.{9})+|(?>(.{9})+
|.)+|(?((...)*
)(?>(.{27})+
|.){7}|.)+)(?<=\1))
```
Requires a trailing newline in the input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1MTI2OTM1ODk2MjM0NzE2OTc0MzE1ODI3MTI4NDU5MzY4MjM5NTY3MTQ5MzE3NjQ4MjUKMjQzNTYxNzg5ODI5MzE3NDU2NjU3NDg5MTMyMzc0MTkyODY1OTE2ODQ1MzI3NTgxNjczMjk0MTYyNzU4OTQzNzM1OTI0NjE4NDk4MjM2NTcxCjI0MzE1Njc4OTUyOTg0NzMxNjY4NzM5MjE0NTM2MTQ3NTg5MjcxNDkyODY1Mzg5NTI2MzQ3MTE1MjY4NDkzNzQzNjcxOTUyODk3ODUzMTI2NAo0OTgyMzY1NzE3MzU5MjQ2MTgxNjI3NTg5NDM1ODE2NzMyOTQ5MTY4NDUzMjczNzQxOTI4NjU2NTc0ODkxMzI4MjkzMTc0NTYyNDM1NjE3ODkKOTc4NTMxMjY0NDM2NzE5NTI4MTUyNjg0OTM3ODk1MjYzNDcxNzE0OTI4NjUzMzYxNDc1ODkyNjg3MzkyMTQ1NTI5ODQ3MzE2MjQzMTU2Nzg5CjM0MjU3MTY4OTI1NzY5ODE0Mzk4NjQxMzI3NTg2MTM0Mjk1NzQ5NTcyNjgzMTE3Mzk4NTQyNjUxOTIzNDc2ODczNDg2OTUxMjYyODE1NzM5NAoxMjM0NTY3ODkyMzQ1Njc4OTEzNDU2Nzg5MTI0NTY3ODkxMjM1Njc4OTEyMzQ2Nzg5MTIzNDU3ODkxMjM0NTY4OTEyMzQ1Njc5MTIzNDU2Nzg)
The 77 byte sane version:
```
^(?!(.)+((.{9})+|((?!(.{9})*$).)+|(?((...)*$)((?!(.{27})*$).){7}|.)+)(?<=\1))
```
Thanks Neil for pointing out the error in my previous version and golfing off 1 byte (for the `(...)*`).
[Try it here.](http://retina.tryitonline.net/#code=JShHYApeKD8hKC4pKygoLns5fSkrfCgoPyEoLns5fSkqJCkuKSt8KD8oKC4uLikqJCkoKD8hKC57Mjd9KSokKS4pezd9fC4pKykoPzw9XDEpKQ&input=MTIzNDU2Nzg5NDU2Nzg5MTIzNzg5MTIzNDU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TUyOTg0NzMxNjY4NzM5MjE0NTM2MTQ3NTg5MjcxNDkyODY1Mzg5NTI2MzQ3MTE1MjY4NDkzNzQzNjcxOTUyODk3ODUzMTI2NAo0OTgyMzY1NzE3MzU5MjQ2MTgxNjI3NTg5NDM1ODE2NzMyOTQ5MTY4NDUzMjczNzQxOTI4NjU2NTc0ODkxMzI4MjkzMTc0NTYyNDM1NjE3ODkKOTc4NTMxMjY0NDM2NzE5NTI4MTUyNjg0OTM3ODk1MjYzNDcxNzE0OTI4NjUzMzYxNDc1ODkyNjg3MzkyMTQ1NTI5ODQ3MzE2MjQzMTU2Nzg5CjM0MjU3MTY4OTI1NzY5ODE0Mzk4NjQxMzI3NTg2MTM0Mjk1NzQ5NTcyNjgzMTE3Mzk4NTQyNjUxOTIzNDc2ODczNDg2OTUxMjYyODE1NzM5NAoxMjM0NTY3ODkyMzQ1Njc4OTEzNDU2Nzg5MTI0NTY3ODkxMjM1Njc4OTEyMzQ2Nzg5MTIzNDU3ODkxMjM0NTY4OTEyMzQ1Njc5MTIzNDU2Nzg)
# PCRE, 77 78 bytes
```
^(?!.*(?=(.))((.{9})+|(.(?!(?3)*$))+|(?(?=.(...)*$)(.(?!(.{27})*$)){7}|.)+)\1)
```
Just for completeness.
[Try it here.](https://regex101.com/r/mN5wA8/2)
Another version, also 78 bytes:
```
^(?!.*(?=(.))((.{9})+|(.(?!(?3)*$))+|(?>.(?!(...)*$)|(.(?!(.{27})*$)){7})+)\1)
```
[Try it here.](https://regex101.com/r/mN5wA8/3)
### Explanation
```
^(?!.* # Match a string that doesn't contain the pattern,
# at any position.
(?=(.)) # Capture the next character.
(
(.{9})+ # Any 9*n characters. The next character is in
# the same column as the captured one.
|
(.(?!(.{9})*$))+ # Any n characters not followed by a positions 9*m
# to the end. The next character is in the same row
# as the captured one.
|
( # Any n occasions of...
?(.(...)*$) # If it is at a position 3*k+1 to the end:
(.(?!(.{27})*$)){7} # Then count 7*m characters that are not followed
# by a position 27*j to the end,
|
. # Else count any character.
)+ # The next character is in the same block as the
# captured one.
)
\1 # Fail if the next character is the captured character.
)
```
[Answer]
# PCRE, 117 ~~119 130 133 147~~ bytes
```
^(?!(.{27})*(...){0,2}(.{9})?.?.?(.).?.?(?=(?2)*$).{6,8}(?3)?\4.{0,17}(?1)*$|.*(.)(.{8}(?3)*|((?!(?3)*$)(|.(?7))))\5)
```
~~Should also work in Python, Java, etc. flavors.~~ Now with recursion! And the "recursion" feature used non-recursively for "subroutines", which I totally forgot about until I had to use actual recursion.
[Answer]
# .NET regex, 8339 bytes
Yes, I know my solution is very naive, since Martin told me he did it in like 130 bytes. In fact, the URL to try it online is so long that I couldn't find a URL shortener that would accept it.
```
(code removed, since it's so long nobody will read it here,
and it made the post take forever to load. Just use the "Try it online" link.)
```
*The below link does not work in IE, but does work in Chrome and Firefox.*
[**Try it online**](http://retina.tryitonline.net/#code=IWAoPz0uezAsOH0xKSg_PS57MCw4fTIpKD89LnswLDh9MykoPz0uezAsOH00KSg_PS57MCw4fTUpKD89LnswLDh9NikoPz0uezAsOH03KSg_PS57MCw4fTgpKD89LnswLDh9OSkoPz0uezksMTd9MSkoPz0uezksMTd9MikoPz0uezksMTd9MykoPz0uezksMTd9NCkoPz0uezksMTd9NSkoPz0uezksMTd9NikoPz0uezksMTd9NykoPz0uezksMTd9OCkoPz0uezksMTd9OSkoPz0uezE4LDI2fTEpKD89LnsxOCwyNn0yKSg_PS57MTgsMjZ9MykoPz0uezE4LDI2fTQpKD89LnsxOCwyNn01KSg_PS57MTgsMjZ9NikoPz0uezE4LDI2fTcpKD89LnsxOCwyNn04KSg_PS57MTgsMjZ9OSkoPz0uezI3LDM1fTEpKD89LnsyNywzNX0yKSg_PS57MjcsMzV9MykoPz0uezI3LDM1fTQpKD89LnsyNywzNX01KSg_PS57MjcsMzV9NikoPz0uezI3LDM1fTcpKD89LnsyNywzNX04KSg_PS57MjcsMzV9OSkoPz0uezM2LDQ0fTEpKD89LnszNiw0NH0yKSg_PS57MzYsNDR9MykoPz0uezM2LDQ0fTQpKD89LnszNiw0NH01KSg_PS57MzYsNDR9NikoPz0uezM2LDQ0fTcpKD89LnszNiw0NH04KSg_PS57MzYsNDR9OSkoPz0uezQ1LDUzfTEpKD89Lns0NSw1M30yKSg_PS57NDUsNTN9MykoPz0uezQ1LDUzfTQpKD89Lns0NSw1M301KSg_PS57NDUsNTN9NikoPz0uezQ1LDUzfTcpKD89Lns0NSw1M304KSg_PS57NDUsNTN9OSkoPz0uezU0LDYyfTEpKD89Lns1NCw2Mn0yKSg_PS57NTQsNjJ9MykoPz0uezU0LDYyfTQpKD89Lns1NCw2Mn01KSg_PS57NTQsNjJ9NikoPz0uezU0LDYyfTcpKD89Lns1NCw2Mn04KSg_PS57NTQsNjJ9OSkoPz0uezYzLDcxfTEpKD89Lns2Myw3MX0yKSg_PS57NjMsNzF9MykoPz0uezYzLDcxfTQpKD89Lns2Myw3MX01KSg_PS57NjMsNzF9NikoPz0uezYzLDcxfTcpKD89Lns2Myw3MX04KSg_PS57NjMsNzF9OSkoPz0uezcyLH0xKSg_PS57NzIsfTIpKD89Lns3Mix9MykoPz0uezcyLH00KSg_PS57NzIsfTUpKD89Lns3Mix9NikoPz0uezcyLH03KSg_PS57NzIsfTgpKD89Lns3Mix9OSkoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pMSkoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pMikoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pMykoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pNCkoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pNSkoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pNikoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pNykoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pOCkoPz0ofC57OX18LnsxOH18LnsyN318LnszNn18Lns0NX18Lns1NH18Lns2M318Lns3Mn0pOSkoPz0oLnsxfXwuezEwfXwuezE5fXwuezI4fXwuezM3fXwuezQ2fXwuezU1fXwuezY0fXwuezczfSkxKSg_PSguezF9fC57MTB9fC57MTl9fC57Mjh9fC57Mzd9fC57NDZ9fC57NTV9fC57NjR9fC57NzN9KTIpKD89KC57MX18LnsxMH18LnsxOX18LnsyOH18LnszN318Lns0Nn18Lns1NX18Lns2NH18Lns3M30pMykoPz0oLnsxfXwuezEwfXwuezE5fXwuezI4fXwuezM3fXwuezQ2fXwuezU1fXwuezY0fXwuezczfSk0KSg_PSguezF9fC57MTB9fC57MTl9fC57Mjh9fC57Mzd9fC57NDZ9fC57NTV9fC57NjR9fC57NzN9KTUpKD89KC57MX18LnsxMH18LnsxOX18LnsyOH18LnszN318Lns0Nn18Lns1NX18Lns2NH18Lns3M30pNikoPz0oLnsxfXwuezEwfXwuezE5fXwuezI4fXwuezM3fXwuezQ2fXwuezU1fXwuezY0fXwuezczfSk3KSg_PSguezF9fC57MTB9fC57MTl9fC57Mjh9fC57Mzd9fC57NDZ9fC57NTV9fC57NjR9fC57NzN9KTgpKD89KC57MX18LnsxMH18LnsxOX18LnsyOH18LnszN318Lns0Nn18Lns1NX18Lns2NH18Lns3M30pOSkoPz0oLnsyfXwuezExfXwuezIwfXwuezI5fXwuezM4fXwuezQ3fXwuezU2fXwuezY1fXwuezc0fSkxKSg_PSguezJ9fC57MTF9fC57MjB9fC57Mjl9fC57Mzh9fC57NDd9fC57NTZ9fC57NjV9fC57NzR9KTIpKD89KC57Mn18LnsxMX18LnsyMH18LnsyOX18LnszOH18Lns0N318Lns1Nn18Lns2NX18Lns3NH0pMykoPz0oLnsyfXwuezExfXwuezIwfXwuezI5fXwuezM4fXwuezQ3fXwuezU2fXwuezY1fXwuezc0fSk0KSg_PSguezJ9fC57MTF9fC57MjB9fC57Mjl9fC57Mzh9fC57NDd9fC57NTZ9fC57NjV9fC57NzR9KTUpKD89KC57Mn18LnsxMX18LnsyMH18LnsyOX18LnszOH18Lns0N318Lns1Nn18Lns2NX18Lns3NH0pNikoPz0oLnsyfXwuezExfXwuezIwfXwuezI5fXwuezM4fXwuezQ3fXwuezU2fXwuezY1fXwuezc0fSk3KSg_PSguezJ9fC57MTF9fC57MjB9fC57Mjl9fC57Mzh9fC57NDd9fC57NTZ9fC57NjV9fC57NzR9KTgpKD89KC57Mn18LnsxMX18LnsyMH18LnsyOX18LnszOH18Lns0N318Lns1Nn18Lns2NX18Lns3NH0pOSkoPz0oLnszfXwuezEyfXwuezIxfXwuezMwfXwuezM5fXwuezQ4fXwuezU3fXwuezY2fXwuezc1fSkxKSg_PSguezN9fC57MTJ9fC57MjF9fC57MzB9fC57Mzl9fC57NDh9fC57NTd9fC57NjZ9fC57NzV9KTIpKD89KC57M318LnsxMn18LnsyMX18LnszMH18LnszOX18Lns0OH18Lns1N318Lns2Nn18Lns3NX0pMykoPz0oLnszfXwuezEyfXwuezIxfXwuezMwfXwuezM5fXwuezQ4fXwuezU3fXwuezY2fXwuezc1fSk0KSg_PSguezN9fC57MTJ9fC57MjF9fC57MzB9fC57Mzl9fC57NDh9fC57NTd9fC57NjZ9fC57NzV9KTUpKD89KC57M318LnsxMn18LnsyMX18LnszMH18LnszOX18Lns0OH18Lns1N318Lns2Nn18Lns3NX0pNikoPz0oLnszfXwuezEyfXwuezIxfXwuezMwfXwuezM5fXwuezQ4fXwuezU3fXwuezY2fXwuezc1fSk3KSg_PSguezN9fC57MTJ9fC57MjF9fC57MzB9fC57Mzl9fC57NDh9fC57NTd9fC57NjZ9fC57NzV9KTgpKD89KC57M318LnsxMn18LnsyMX18LnszMH18LnszOX18Lns0OH18Lns1N318Lns2Nn18Lns3NX0pOSkoPz0oLns0fXwuezEzfXwuezIyfXwuezMxfXwuezQwfXwuezQ5fXwuezU4fXwuezY3fXwuezc2fSkxKSg_PSguezR9fC57MTN9fC57MjJ9fC57MzF9fC57NDB9fC57NDl9fC57NTh9fC57Njd9fC57NzZ9KTIpKD89KC57NH18LnsxM318LnsyMn18LnszMX18Lns0MH18Lns0OX18Lns1OH18Lns2N318Lns3Nn0pMykoPz0oLns0fXwuezEzfXwuezIyfXwuezMxfXwuezQwfXwuezQ5fXwuezU4fXwuezY3fXwuezc2fSk0KSg_PSguezR9fC57MTN9fC57MjJ9fC57MzF9fC57NDB9fC57NDl9fC57NTh9fC57Njd9fC57NzZ9KTUpKD89KC57NH18LnsxM318LnsyMn18LnszMX18Lns0MH18Lns0OX18Lns1OH18Lns2N318Lns3Nn0pNikoPz0oLns0fXwuezEzfXwuezIyfXwuezMxfXwuezQwfXwuezQ5fXwuezU4fXwuezY3fXwuezc2fSk3KSg_PSguezR9fC57MTN9fC57MjJ9fC57MzF9fC57NDB9fC57NDl9fC57NTh9fC57Njd9fC57NzZ9KTgpKD89KC57NH18LnsxM318LnsyMn18LnszMX18Lns0MH18Lns0OX18Lns1OH18Lns2N318Lns3Nn0pOSkoPz0oLns1fXwuezE0fXwuezIzfXwuezMyfXwuezQxfXwuezUwfXwuezU5fXwuezY4fXwuezc3fSkxKSg_PSguezV9fC57MTR9fC57MjN9fC57MzJ9fC57NDF9fC57NTB9fC57NTl9fC57Njh9fC57Nzd9KTIpKD89KC57NX18LnsxNH18LnsyM318LnszMn18Lns0MX18Lns1MH18Lns1OX18Lns2OH18Lns3N30pMykoPz0oLns1fXwuezE0fXwuezIzfXwuezMyfXwuezQxfXwuezUwfXwuezU5fXwuezY4fXwuezc3fSk0KSg_PSguezV9fC57MTR9fC57MjN9fC57MzJ9fC57NDF9fC57NTB9fC57NTl9fC57Njh9fC57Nzd9KTUpKD89KC57NX18LnsxNH18LnsyM318LnszMn18Lns0MX18Lns1MH18Lns1OX18Lns2OH18Lns3N30pNikoPz0oLns1fXwuezE0fXwuezIzfXwuezMyfXwuezQxfXwuezUwfXwuezU5fXwuezY4fXwuezc3fSk3KSg_PSguezV9fC57MTR9fC57MjN9fC57MzJ9fC57NDF9fC57NTB9fC57NTl9fC57Njh9fC57Nzd9KTgpKD89KC57NX18LnsxNH18LnsyM318LnszMn18Lns0MX18Lns1MH18Lns1OX18Lns2OH18Lns3N30pOSkoPz0oLns2fXwuezE1fXwuezI0fXwuezMzfXwuezQyfXwuezUxfXwuezYwfXwuezY5fXwuezc4fSkxKSg_PSguezZ9fC57MTV9fC57MjR9fC57MzN9fC57NDJ9fC57NTF9fC57NjB9fC57Njl9fC57Nzh9KTIpKD89KC57Nn18LnsxNX18LnsyNH18LnszM318Lns0Mn18Lns1MX18Lns2MH18Lns2OX18Lns3OH0pMykoPz0oLns2fXwuezE1fXwuezI0fXwuezMzfXwuezQyfXwuezUxfXwuezYwfXwuezY5fXwuezc4fSk0KSg_PSguezZ9fC57MTV9fC57MjR9fC57MzN9fC57NDJ9fC57NTF9fC57NjB9fC57Njl9fC57Nzh9KTUpKD89KC57Nn18LnsxNX18LnsyNH18LnszM318Lns0Mn18Lns1MX18Lns2MH18Lns2OX18Lns3OH0pNikoPz0oLns2fXwuezE1fXwuezI0fXwuezMzfXwuezQyfXwuezUxfXwuezYwfXwuezY5fXwuezc4fSk3KSg_PSguezZ9fC57MTV9fC57MjR9fC57MzN9fC57NDJ9fC57NTF9fC57NjB9fC57Njl9fC57Nzh9KTgpKD89KC57Nn18LnsxNX18LnsyNH18LnszM318Lns0Mn18Lns1MX18Lns2MH18Lns2OX18Lns3OH0pOSkoPz0oLns3fXwuezE2fXwuezI1fXwuezM0fXwuezQzfXwuezUyfXwuezYxfXwuezcwfXwuezc5fSkxKSg_PSguezd9fC57MTZ9fC57MjV9fC57MzR9fC57NDN9fC57NTJ9fC57NjF9fC57NzB9fC57Nzl9KTIpKD89KC57N318LnsxNn18LnsyNX18LnszNH18Lns0M318Lns1Mn18Lns2MX18Lns3MH18Lns3OX0pMykoPz0oLns3fXwuezE2fXwuezI1fXwuezM0fXwuezQzfXwuezUyfXwuezYxfXwuezcwfXwuezc5fSk0KSg_PSguezd9fC57MTZ9fC57MjV9fC57MzR9fC57NDN9fC57NTJ9fC57NjF9fC57NzB9fC57Nzl9KTUpKD89KC57N318LnsxNn18LnsyNX18LnszNH18Lns0M318Lns1Mn18Lns2MX18Lns3MH18Lns3OX0pNikoPz0oLns3fXwuezE2fXwuezI1fXwuezM0fXwuezQzfXwuezUyfXwuezYxfXwuezcwfXwuezc5fSk3KSg_PSguezd9fC57MTZ9fC57MjV9fC57MzR9fC57NDN9fC57NTJ9fC57NjF9fC57NzB9fC57Nzl9KTgpKD89KC57N318LnsxNn18LnsyNX18LnszNH18Lns0M318Lns1Mn18Lns2MX18Lns3MH18Lns3OX0pOSkoPz0oLns4fXwuezE3fXwuezI2fXwuezM1fXwuezQ0fXwuezUzfXwuezYyfXwuezcxfXwuezgwfSkxKSg_PSguezh9fC57MTd9fC57MjZ9fC57MzV9fC57NDR9fC57NTN9fC57NjJ9fC57NzF9fC57ODB9KTIpKD89KC57OH18LnsxN318LnsyNn18LnszNX18Lns0NH18Lns1M318Lns2Mn18Lns3MX18Lns4MH0pMykoPz0oLns4fXwuezE3fXwuezI2fXwuezM1fXwuezQ0fXwuezUzfXwuezYyfXwuezcxfXwuezgwfSk0KSg_PSguezh9fC57MTd9fC57MjZ9fC57MzV9fC57NDR9fC57NTN9fC57NjJ9fC57NzF9fC57ODB9KTUpKD89KC57OH18LnsxN318LnsyNn18LnszNX18Lns0NH18Lns1M318Lns2Mn18Lns3MX18Lns4MH0pNikoPz0oLns4fXwuezE3fXwuezI2fXwuezM1fXwuezQ0fXwuezUzfXwuezYyfXwuezcxfXwuezgwfSk3KSg_PSguezh9fC57MTd9fC57MjZ9fC57MzV9fC57NDR9fC57NTN9fC57NjJ9fC57NzF9fC57ODB9KTgpKD89KC57OH18LnsxN318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njk4Mjg0MzUzNDI1OTYxNzgxOTQzODc2NTI2NTc5NDI4MTM4MjM2MTU3OTQKMjM3NTQxODk2MTg2OTI3MzQ1Mzc4NjUyOTE0NzQzMjY5MTU4NTY5MTc4NDMyODEyNDM1Njc5NDk1Mzg2NzIxOTI0ODEzNTY3NjUxNzk0MjgzCjE2ODc1OTQzMjQ1OTYxMzI3ODI3MzE2NTk4NDgyMTU5NDc2MzczNDk4MjUxNjU5NjgyMTM0NzYxNTQzNzgyOTM4NzI0NjE5NTk0MjM3ODY1MQo4Njk4ODcyODM2MTkyMTQ0NTM0NTczMzg2NjQ1NDg1MjU3ODEyNzU0MjQ2NjgzNzk5Njk3Mjc1MTczODUxNjMzMTkyMjM5MTc2MjE0NDk1MTkKODk0MTU4NTc4OTYyODU5MTg3NDYxMzIyMzE1OTEzODQ5ODEyMjQxNzQyMTU3Mjc1NDYyOTczMzg0MjE5Mjk0ODQ5ODgyMjkxMTE5NDIzNzU5CjEyMzQ1Njc4OTQ1Njc4OTEyMzU2NDg5NzIzMTIzMTU2NDg5Nzc4OTEyMzQ1Njg5NzIzMTU2NDMxMjY0NTk3ODY0NTk3ODMxMjk3ODMxMjY0NQoxNDUyNzgzNjkyNTYzODkxNDczNjQxOTcyNTg0Nzg1MTI2OTM1ODk2MjM0NzE2OTc0MzE1ODI3MTI4NDU5MzY4MjM5NTY3MTQ5MzE3NjQ4MjU) - All test cases at once, with the help of `!`` at the beginning, not included in byte count.
---
Here's the [Python script](http://ideone.com/nUcnlc) I used to generate it (code below):
```
R=range(0,9)
S=range(1,10)
o = ""
# validate rows
T = "(?=.{%s,%s}%s)"
for j in R:
for i in S:
o += T % (9*j,9*(j+1)-1, i)
# validate columns
# "(?=(.{%s}|.{%s}|.{%s}|.{%s}|.{%s}|.{%s}|.{%s}|.{%s}|.{%s})%s)"
T = "(?=("+"|".join([".{%s}"]*9)+")%s)"
for j in R:
for i in S:
o += T % (j,j+9,j+18,j+27,j+36,j+45,j+54,j+63,j+72, i)
# validate boxes
# (?=.{0,2}1|.{9,11}1|.{18,20}1)(?=.{3,5}1|.{12,14}1|.{21,23}1)
# (?=.{27,29}1|.{36,38}1|.{45,47}1)
T = ".{%s,%s}%s"
for i in S:
for x in (0,27,54):
for y in (0,3,6):
o += "(?="+"|".join(T % (x+y+z,x+y+z+2, i) for z in (0,9,18))+")"
o += ".{81}"
o = o.replace(".{0}","").replace(",80}",",}")
print(o)
```
[Answer]
## .NET regex, 121 bytes
```
^(?!(.{27})*(.{9})?(...){0,2}.?.?(.).?.?(?=(...)*$)(.{9})?.{6,8}\4.{0,17}(.{27})*$|.*(?=(.))((.{9})+|(.(?!(.{9})*$))+)\8)
```
Explanation:
```
^(?! Invert match (because we're excluding duplicates)
(.{27})* Skip 0, 3 or 6 rows
(.{9})? Optionally skip another row
(...){0,2} Skip 0, 3 or 6 columns
.?.?(.).?.?(?=(...)*$) Choose any of the next three cells
(.{9})? Optionally skip another row
.{6,8}\4 Match any of the three cells below
.{0,17}(.{27})*$ As long as they're from the same square
| OR
.*(?=(.))( Choose any cell
(.{9})+ Skip at least one row
| or
(. Skip cells
(?!(.{9})*$) Without reaching the end of the row
)+ For at least one cell (i.e. the cell chosen above)
)\8) Match the chosen cell to the next cell
)
```
[Answer]
# PCRE, 3579 bytes
An absolutely terrible brute force solution. Negative lookbehinds ahoy!
I spent way too much time on this to abandon it, so here it is, for posterity's sake.
On the bright side, if Sudoku suddenly starts using a different set of 9 characters, this'll still work, I guess...
<http://pastebin.com/raw/CwtviGkC>
I don't know how to operate Retina, but you can also paste it into <https://regex101.com> or similar and it'll match.
Ruby code used to generate the regex:
```
# Calculate the block you're in
def block(x)
x /= 3
x + x%3 - x%9
end
81.times do |i|
row, col = i.divmod(9)
neg = []
neg += (0...col).map {|e| 9*row + e + 1}
neg += (0...row).map {|e| 9*e + col + 1}
neg += (0...i).map {|e| e + 1 if block(e) == block(i)}.compact
neg = neg.uniq.sort.map {|e| "\\#{e}"}
if neg.size > 0
print "(?!#{neg.join '|'})"
end
print "(.)"
end
```
[Answer]
## Ruby flavour, ~~75~~ 74 bytes
*Thanks to jimmy23013 for saving 1 byte.*
```
^(?!(.{9}*(.|(.)){,8}|.*(\g<2>.{8})*|.{27}?.{3}?(\g<2>{3}.{6}){,2}.?.?)\3).
```
[Test it here.](http://rubular.com/r/zAedzia7ds)
Now that it's finally beaten, I can share my own solution. :) I discovered an interesting (maybe new?) regex technique in the process (the `(.|(.)){,8}\3` part), which would probably be unbeatable in cases where this can't be combined with other parts of the regex (as was the case in jimmy23013's answer).
### Explanation
Like the other short answers I'm using a negative lookahead which searches for duplicates in rows, columns or blocks. The basic building block of the solution is this:
```
(.|(.))...\3
```
Note that the `\3` is reused between three different alternatives (which all use group `3` for duplicate detection).
That group on the left (which is group `2`, containing group `3`) is used for any position that can contain the first half of a duplicate digit (within a group that must not contain duplicate digits). Then `...` is something that gets us the the next position where such a digit might occur (if necessary) and `\3` tries to find the second half of the duplicate via backreference. The reason this works is backtracking. When the engine first matches `(.|(.))` it will simply use `.` every time and not capture anything. Now the `\3` at the end fails. But now the engine will gradually try using `(.)` instead of `.` for individual matches. Ultimately, if there's a duplicate, it will find the combination where `(.)` was last used on the first digit of the duplicate (such that the capture isn't overwritten later), and then uses some more `.` to bridge the gap to the backreference. If there is a duplicate, backtracking will always find it.
Let's look at the three different parts where this is used:
```
.{9}*(.|(.)){,8}
```
This checks for duplicates in some row. First we skip to any row with `.{9}*`. Then we match up to 8 characters (i.e. anything in that row except the last digit) using the optional duplicate capture and try to find the `\3` after it.
```
.*(\g<2>.{8})*
```
This looks for duplicates in some column. First, note that `\g<2>` is a subroutine call, so this is the same as:
```
.*((.|(.)).{8})*
```
where the two groups we've just inserted are still referred to as `2` and `3`.
Here, the `.*` simply skips as far as necessary (it would be sufficient to match up to 8 characters here, but that costs more bytes). Then the outer group matches one complete row (which may wrap across two physical rows) at a time, optionally capturing the first character. The `\3` will be looked for right after this, which ensures vertical alignment between the capture and the backreference.
Finally, checking the blocks:
```
.{27}?.{3}?(\g<2>{3}.{6}){,2}.?.?
```
Again, the `\g<2>` is a subroutine call, so this is the same as:
```
.{27}?.{3}?((.|(.)){3}.{6}){,2}.?.?
```
To verify the blocks, note that since we've already checked all the rows and columns, we only need to check four of the 3x3 blocks. When we know that all rows and columns as well as these 3x3 blocks are correct:
```
XX.
XX.
...
```
Then we know that there can't possibly be duplicates in the remaining blocks. Hence I'm only checking these four blocks. Furthermore, note that we don't have to look for duplicates within the same row of a 3x3 block. It's enough to find the first half of the duplicate in one row and search for the second half in a row further down.
Now for the code itself, we first skip to the beginning of one of the four blocks with `.{27}?.{3}?` (optionally skip three rows, optionally skip three columns). Then we try to match up to two of the rows of the 3x3 block with the same trick we used for the rows earlier:
```
(.|(.)){3}.{6}
```
We allow but don't require capturing of any of the 3 cells in the current row of the 3x3 block and then skip to the next row with `.{6}`. Finally, we try to find a duplicate in either of the 3 cells of the row we end up on:
```
.?.?
```
And that's it.
[Answer]
# Javascript regex, ~~532~~ ~~530~~ ~~481~~ 463 chars
Validate rows:
```
/^((?=.{0,8}1)(?=.{0,8}2)(?=.{0,8}3)(?=.{0,8}4)(?=.{0,8}5)(?=.{0,8}6)(?=.{0,8}7)(?=.{0,8}8)(?=.{0,8}9).{9})+$/
```
Validate columns:
```
/^((?=(.{9}){0,8}1)(?=(.{9}){0,8}2)(?=(.{9}){0,8}3)(?=(.{9}){0,8}4)(?=(.{9}){0,8}5)(?=(.{9}){0,8}6)(?=(.{9}){0,8}7)(?=(.{9}){0,8}8)(?=(.{9}){0,8}9).){9}/
```
Validate square from its first char:
```
/(?=.?.?(.{9}){0,2}1)(?=.?.?(.{9}){0,2}2)(?=.?.?(.{9}){0,2}3)(?=.?.?(.{9}){0,2}4)(?=.?.?(.{9}){0,2}5)(?=.?.?(.{9}){0,2}6)(?=.?.?(.{9}){0,2}7)(?=.?.?(.{9}){0,2}8)(?=.?.?(.{9}){0,2}9)/
```
Set preview to start of the square:
```
/^(((?=)...){3}.{18})+$/
```
And the whole expression:
```
/^(?=((?=.{0,8}1)(?=.{0,8}2)(?=.{0,8}3)(?=.{0,8}4)(?=.{0,8}5)(?=.{0,8}6)(?=.{0,8}7)(?=.{0,8}8)(?=.{0,8}9).{9})+$)(?=((?=(.{9}){0,8}1)(?=(.{9}){0,8}2)(?=(.{9}){0,8}3)(?=(.{9}){0,8}4)(?=(.{9}){0,8}5)(?=(.{9}){0,8}6)(?=(.{9}){0,8}7)(?=(.{9}){0,8}8)(?=(.{9}){0,8}9).){9})(((?=.?.?(.{9}){0,2}1)(?=.?.?(.{9}){0,2}2)(?=.?.?(.{9}){0,2}3)(?=.?.?(.{9}){0,2}4)(?=.?.?(.{9}){0,2}5)(?=.?.?(.{9}){0,2}6)(?=.?.?(.{9}){0,2}7)(?=.?.?(.{9}){0,2}8)(?=.?.?(.{9}){0,2}9)...){3}.{18})+$/
```
Matches the whole string.
---
Test in Javascript ES6:
```
r = /^(?=((?=.{0,8}1)(?=.{0,8}2)(?=.{0,8}3)(?=.{0,8}4)(?=.{0,8}5)(?=.{0,8}6)(?=.{0,8}7)(?=.{0,8}8)(?=.{0,8}9).{9})+$)(?=((?=(.{9}){0,8}1)(?=(.{9}){0,8}2)(?=(.{9}){0,8}3)(?=(.{9}){0,8}4)(?=(.{9}){0,8}5)(?=(.{9}){0,8}6)(?=(.{9}){0,8}7)(?=(.{9}){0,8}8)(?=(.{9}){0,8}9).){9})(((?=.?.?(.{9}){0,2}1)(?=.?.?(.{9}){0,2}2)(?=.?.?(.{9}){0,2}3)(?=.?.?(.{9}){0,2}4)(?=.?.?(.{9}){0,2}5)(?=.?.?(.{9}){0,2}6)(?=.?.?(.{9}){0,2}7)(?=.?.?(.{9}){0,2}8)(?=.?.?(.{9}){0,2}9)...){3}.{18})+$/
;`123456789456789123789123456231564897564897231897231564312645978645978312978312645
725893461841657392396142758473516829168429537952378146234761985687935214519284673
395412678824376591671589243156928437249735186738641925983164752412857369567293814
679543182158926473432817659567381294914265738283479561345792816896154327721638945
867539142324167859159482736275398614936241587481756923592873461743615298618924375
954217683861453729372968145516832497249675318783149256437581962695324871128796534
271459386435168927986273541518734269769821435342596178194387652657942813823615794
237541896186927345495386721743269158569178432812435679378652914924813567651794283
168279435459863271273415986821354769734692518596781342615947823387526194942138657
863459712415273869279168354526387941947615238138942576781596423354821697692734185
768593142423176859951428736184765923572389614639214587816942375295837461347651298`
.split`
`.every(r.test.bind(r))
&&
`519284673725893461841657392396142758473516829168429537952378146234761985687935214
839541267182437659367158924715692843624973518573864192298316475941285736456729381
679543182158926473432817659567381294914256738283479561345792816896154327721638945
867539142324167859159482736275398684936241517481756923592873461743615298618924375
754219683861453729372968145516832497249675318983147256437581962695324871128796534
271459386435168927986273541518734269769828435342596178194387652657942813823615794
237541896186927345378652914743269158569178432812435679495386721924813567651794283
168759432459613278273165984821594763734982516596821347615437829387246195942378651
869887283619214453457338664548525781275424668379969727517385163319223917621449519
894158578962859187461322315913849812241742157275462973384219294849882291119423759
123456789456789123564897231231564897789123456897231564312645978645978312978312645
145278369256389147364197258478512693589623471697431582712845936823956714931764825`
.split`
`.every(s => !r.test(s))
```
] |
[Question]
[
>
> **The results are in, the contest is over.**
>
> The winner is [arshajii's](https://codegolf.stackexchange.com/users/6611/arshajii) [EvilBot](https://codegolf.stackexchange.com/a/23902/737) with 14 wins ahead of Neo-Bot with 13 wins and CentreBot and LastStand with 11 wins each.
>
>
>
**Scores from the final run**
```
Results:
java Rifter: 9 match wins (45 total bout wins)
java EvadeBot: 10 match wins (44 total bout wins)
java EvilBot: 14 match wins (59 total bout wins)
java LastStand: 11 match wins (43 total bout wins)
java UltraBot: 9 match wins (40 total bout wins)
python ReadyAimShoot.py: 8 match wins (36 total bout wins)
./SpiralBot: 0 match wins (1 total bout wins)
python DodgingTurret.py: 8 match wins (43 total bout wins)
ruby1.9 TroubleAndStrafe.rb: 8 match wins (41 total bout wins)
./RandomBot: 1 match wins (6 total bout wins)
python StraightShooter.py: 8 match wins (41 total bout wins)
python mineminemine.py: 3 match wins (14 total bout wins)
./CamperBot: 5 match wins (20 total bout wins)
python3.3 CunningPlanBot.py: 3 match wins (15 total bout wins)
node CentreBot.js: 11 match wins (44 total bout wins)
node Neo-Bot.js: 13 match wins (59 total bout wins)
python NinjaPy.py: 3 match wins (19 total bout wins)
```
This is a [king-of-the-hill](/questions/tagged/king-of-the-hill "show questions tagged 'king-of-the-hill'") challenge. The aim is to write a bot that will beat more of the other bots than any other.
# The Game
The bots will all be pitted against each other 2 at a time in a 10x10 arena with the task of reducing the opponent's energy down from 10 to 0 before its own energy is reduced to 0.
Each match will consist of 5 bouts. The winner of the match is the winner of the most bouts. The total number of match wins and bout wins will be stored by the control program and will be used to determine the overall winner of the contest. The winner receives the big green tick and the adulation of the masses.
Each bout will proceed in a number of rounds. At the beginning of each round the current state of the arena will be given to each bot and the bot will then respond with a command to determine what it wants to do next. Once both commands have been received by the control program both commands are executed at the same time and the arena and bot energy levels are updated to reflect the new state. If both bots still have enough energy to continue the game goes onto the next round. There will be a limit of 1000 rounds per bout to ensure no bout goes on forever, and in the event that this limit is reached the winner will be the bot with the most energy. If both bots have equal energy the bout is a draw and neither bot will get a point for the win (it would be as if they had both lost).
## The Weapons
Each bot will have at its disposal a number of weapons:
* Armour-piercing bullets. These travel 3 squares at a time and cause 1 energy point of damage.
* Missiles. These travel 2 squares at a time and cause 3 energy points of damage at the point of impact, and 1 point of damage in all the immediately surrounding squares.
* Landmines. These are dropped in one of the squares immediately surrounding the bot and cause 2 energy points of damage when stepped on, and 1 energy point of damage to anything standing in one of the immediately surrounding squares.
* Electro-magnetic pulse. Causes both bots' movement circuits to malfunction for 2 turns, meaning they cannot move. They can, however, still deploy weapons (yes I know that's not realistic, but it's a game. It's not supposed to be real life). **Edit: Each EMP deployment will cost one energy point to the bot that uses it.**
Bullets/missiles can only impact with bots, or walls. They will hit any bot that is in any of the squares that they travel through. They disappear once they have hit something.
In all cases `immediately surrounding squares` means the 8 squares that the bot could move to on its next move - the Moore neighbourhood.
## The commands
* `0` do nothing.
* `N`, `NE`, `E`, `SE`, `S`, `SW`, `W`, `NW` are all direction commands and move the bot one square in the given direction. If the bot is unable to move in that direction because there is a wall or another bot in the square, the bot remains where it is. Moving into a square that already contains a bullet or missile is safe since the bullet/missile will be considered to already be on its way out of that square.
* `B` followed by a space and then one of the direction commands fires an armour piercing bullet in that direction.
* `M` followed by a space and then one of the direction commands fires a missile in that direction.
* `L` followed by a space and then one of the direction commands drops a land mine on that square next to the bot. If the square is already occupied by a wall or a bot, the command is ignored. If a landmine is dropped onto another landmine, it detonates it. This will damage the bot doing the dropping, and any other bot within range of the original landmine.
* `P` fires the EMP.
Since only one command may be given per round, a bot can only move or fire/deploy a weapon, not do both at the same time.
**Order of commands**
The movement of either bot will always come first, and all movements will be attempted twice to account for another bot being in the way but moving out of the way.
*Example*
* Bot1 tries to move `E` but Bot2 is already in that square
* Control program moves on to Bot2.
* Bot2 tries to move `S` and succeeds because nothing is in the way.
* Bot1 gets a second attempt at doing its move. This time it succeeds and Bot1 moves `E`.
Once the bots have made any movements they want to make, the weapons will be fired and all projectiles (new and previously fired) will move their predefined number of squares.
## The arena
At the beginning of each round the bot will receive the current state of play as the program's only command line argument:
```
X.....LLL.
..........
..........
..........
M.........
..........
..........
..........
..........
...B.....Y
Y 10
X 7
B 3 9 W
M 0 4 S
L 6 0
B 3 9 S
L 7 0
L 8 0
```
The arena comes first consisting of 10 lines of 10 characters. It is surrounded with walls which are not shown. The characters' meanings are as follows:
* `.` represents an empty square
* `Y` represents your bot.
* `X` represents the opponent bot.
* `L` represents a landmine.
* `B` represents a bullet in flight.
* `M` represents a missile in flight.
This is followed by the remaining energy of the bots, one bot per line. Only one space will separate the bot identifier from its energy level. As in the arena, `Y` represents your bot and `X` represents your opponent. Finally comes a list of the projectiles and landmines, their positions and (if appropriate) headings, again one per line.
# The control program
```
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#define NUMBOTS 2
#define BOUTSPERMATCH 5
#define ROUNDSPERBOUT 1000
#define MAXFILENAMESIZE 100
#define MAXWEAPONS 100
#define DISPLAYBOUTS true
typedef struct
{
int x, y, energy;
char cmd[5];
} Bot;
int getxmove(char cmd[5]);
int getymove(char cmd[5]);
int newposinbounds(int oldx, int oldy, int dx, int dy);
int directhit(Bot bot, int landmine[2]);
int landminecollision(int landmine1[2], int landmine2[2]);
int inshrapnelrange(Bot bot, int landmine[2]);
int directiontoint(char direction[5], char directions[8][3]);
void deployweapons(Bot *bot, Bot *enemy, int bullets[MAXWEAPONS][3], int missiles[MAXWEAPONS][3], int landmines[MAXWEAPONS][2], char directions[8][3]);
void cleararena(char arena[10][11]);
int main()
{
FILE *fp;
Bot b1, b2;
int bot1, bot2, bot1bouts, bot2bouts;
int bout, round, loop, totalprojectiles, dx, dy;
char bots[NUMBOTS][MAXFILENAMESIZE]=
{
"./donowt ",
"php -f huggybot.php "
};
char directions[8][3]={"N", "NE", "E", "SE", "S", "SW", "W", "NW"};
char openstring[5000], argumentstring[4000], bot1string[6], bot2string[6];
int matcheswon[NUMBOTS],boutswon[NUMBOTS];
int missiles[MAXWEAPONS][3];
int bullets[MAXWEAPONS][3];
int landmines[MAXWEAPONS][2];
int paralyzedturnsremaining=0;
bool bot1moved;
char arena[10][11];
char projectiles[300][10];
for(loop=0;loop<NUMBOTS;loop++)
{
matcheswon[loop]=0;
boutswon[loop]=0;
}
srand(time(NULL));
for(bot1=0;bot1<NUMBOTS-1;bot1++)
{
for(bot2=bot1+1;bot2<NUMBOTS;bot2++)
{
bot1bouts=bot2bouts=0;
printf("%s vs %s ",bots[bot1],bots[bot2]);
for(bout=0;bout<BOUTSPERMATCH;bout++)
{
printf("%d ",bout);
//setup the arena for the bout
b1.x=1;b1.y=1;
b2.x=9;
//b1.y=rand()%10;
b2.y=rand()%10;
b1.energy=b2.energy=10;
//clear the previous stuff
memset(missiles, -1, sizeof(missiles));
memset(bullets, -1, sizeof(bullets));
memset(landmines, -1, sizeof(landmines));
for(round=0;round<ROUNDSPERBOUT;round++)
{
//draw the arena based on current state
cleararena(arena);
totalprojectiles=0;
for(loop=0;loop<MAXWEAPONS;loop++)
{
if(bullets[loop][0]!= -1)
{
arena[bullets[loop][1]][bullets[loop][0]]='B';
sprintf(projectiles[totalprojectiles], "%c %d %d %s\n", 'B', bullets[loop][0], bullets[loop][1], directions[bullets[loop][2]]);
totalprojectiles+=1;
}
if(missiles[loop][0]!= -1)
{
arena[missiles[loop][1]][missiles[loop][0]]='M';
sprintf(projectiles[totalprojectiles], "%c %d %d %s\n", 'M', missiles[loop][0], missiles[loop][1], directions[missiles[loop][2]]);
totalprojectiles+=1;
}
if(landmines[loop][0]!= -1)
{
arena[landmines[loop][1]][landmines[loop][0]]='L';
sprintf(projectiles[totalprojectiles], "%c %d %d\n", 'L', landmines[loop][0], landmines[loop][1]);
totalprojectiles+=1;
}
}
//send the arena to both bots to get the commands
// create bot1's input
arena[b1.y][b1.x]='Y';
arena[b2.y][b2.x]='X';
sprintf(bot1string, "Y %d\n", b1.energy);
sprintf(bot2string, "X %d\n", b2.energy);
strcpy(argumentstring, "'");
strncat(argumentstring, *arena, 10*11);
strcat(argumentstring, bot1string);
strcat(argumentstring, bot2string);
for(loop=0;loop<totalprojectiles;loop++)
{
strcat(argumentstring, projectiles[loop]);
}
strcat(argumentstring, "'");
sprintf(openstring, "%s %s", bots[bot1], argumentstring);
// send it and get the command back
fp=popen(openstring, "r");
fgets(b1.cmd, 5, fp);
fflush(NULL);
pclose(fp);
// create bot2's input
arena[b2.y][b2.x]='Y';
arena[b1.y][b1.x]='X';
sprintf(bot2string, "Y %d\n", b2.energy);
sprintf(bot1string, "X %d\n", b1.energy);
strcpy(argumentstring, "'");
strncat(argumentstring, *arena, 10*11);
strcat(argumentstring, bot2string);
strcat(argumentstring, bot1string);
for(loop=0;loop<totalprojectiles;loop++)
{
strcat(argumentstring, projectiles[loop]);
}
strcat(argumentstring, "'");
sprintf(openstring, "%s %s", bots[bot2], argumentstring);
// send it and get the command back
fp=popen(openstring, "r");
fgets(b2.cmd, 5, fp);
fflush(NULL);
pclose(fp);
if(DISPLAYBOUTS)
{
arena[b1.y][b1.x]='A';
arena[b2.y][b2.x]='B';
printf("\033c");
printf("Round: %d\n", round);
printf("%s", arena);
sprintf(bot1string, "A %d\n", b1.energy);
sprintf(bot2string, "B %d\n", b2.energy);
printf("%s%s", bot1string, bot2string);
}
//do bot movement phase
if(paralyzedturnsremaining==0)
{
// move bot 1 first
bot1moved=false;
dx=dy=0;
dx=getxmove(b1.cmd);
dy=getymove(b1.cmd);
if(newposinbounds(b1.x, b1.y, dx, dy))
{
if(!(b1.x+dx==b2.x) || !(b1.y+dy==b2.y))
{
bot1moved=true;
b1.x=b1.x+dx;
b1.y=b1.y+dy;
}
}
// move bot 2 next
dx=dy=0;
dx=getxmove(b2.cmd);
dy=getymove(b2.cmd);
if(newposinbounds(b2.x, b2.y, dx, dy))
{
if(!(b2.x+dx==b1.x) || !(b2.y+dy==b1.y))
{
b2.x=b2.x+dx;
b2.y=b2.y+dy;
}
}
if(!bot1moved) // if bot2 was in the way first time, try again
{
dx=dy=0;
dx=getxmove(b1.cmd);
dy=getymove(b1.cmd);
if(newposinbounds(b1.x, b1.y, dx, dy))
{
if(!(b1.x+dx==b2.x) || !(b1.y+dy==b2.y))
{
b1.x=b1.x+dx;
b1.y=b1.y+dy;
}
}
}
//check for landmine hits
for(loop=0;loop<MAXWEAPONS;loop++)
{
if(landmines[loop][0]!= -1)
{
if(directhit(b1, landmines[loop]))
{
b1.energy-=2;
if(inshrapnelrange(b2, landmines[loop]))
{
b2.energy-=1;
}
landmines[loop][0]= -1;
landmines[loop][1]= -1;
}
if(directhit(b2, landmines[loop]))
{
b2.energy-=2;
if(inshrapnelrange(b1, landmines[loop]))
{
b1.energy-=1;
}
landmines[loop][0]= -1;
landmines[loop][1]= -1;
}
}
}
}
else
{
paralyzedturnsremaining-=1;
}
//do weapons firing phase
if(strcmp(b1.cmd, "P")==0)
{
paralyzedturnsremaining=2;
b1.energy--;
}
else if(strcmp(b2.cmd, "P")==0)
{
paralyzedturnsremaining=2;
b2.energy--;
}
deployweapons(&b1, &b2, bullets, missiles, landmines, directions);
deployweapons(&b2, &b1, bullets, missiles, landmines, directions);
//do weapons movement phase
int moves;
for(loop=0;loop<MAXWEAPONS;loop++)
{
dx=dy=0;
if(bullets[loop][0]!= -1)
{
dx=getxmove(directions[bullets[loop][2]]);
dy=getymove(directions[bullets[loop][2]]);
for(moves=0;moves<3;moves++)
{
if(newposinbounds(bullets[loop][0], bullets[loop][1], dx, dy))
{
bullets[loop][0]+=dx;
bullets[loop][1]+=dy;
if(directhit(b1, bullets[loop]))
{
b1.energy-=1;
bullets[loop][0]= -1;
bullets[loop][1]= -1;
bullets[loop][2]= -1;
}
if(directhit(b2, bullets[loop]))
{
b2.energy-=1;
bullets[loop][0]= -1;
bullets[loop][1]= -1;
bullets[loop][2]= -1;
}
}
else
{
bullets[loop][0]= -1;
bullets[loop][1]= -1;
bullets[loop][2]= -1;
dx=dy=0;
}
}
}
};
for(loop=0;loop<MAXWEAPONS;loop++)
{
dx=dy=0;
if(missiles[loop][0]!= -1)
{
dx=getxmove(directions[missiles[loop][2]]);
dy=getymove(directions[missiles[loop][2]]);
for(moves=0;moves<2;moves++)
{
if(newposinbounds(missiles[loop][0], missiles[loop][1], dx, dy))
{
missiles[loop][0]+=dx;
missiles[loop][1]+=dy;
if(directhit(b1, missiles[loop]))
{
b1.energy-=3;
if(inshrapnelrange(b2, missiles[loop]))
{
b2.energy-=1;
}
missiles[loop][0]= -1;
missiles[loop][1]= -1;
missiles[loop][2]= -1;
}
if(directhit(b2, missiles[loop]))
{
b2.energy-=3;
if(inshrapnelrange(b1, missiles[loop]))
{
b1.energy-=1;
}
missiles[loop][0]= -1;
missiles[loop][1]= -1;
missiles[loop][2]= -1;
}
}
else
{
if(inshrapnelrange(b1, missiles[loop]))
{
b1.energy-=1;
}
if(inshrapnelrange(b2, missiles[loop]))
{
b2.energy-=1;
}
missiles[loop][0]= -1;
missiles[loop][1]= -1;
missiles[loop][2]= -1;
dx=dy=0;
}
}
}
}
//check if there's a winner
if(b1.energy<1 || b2.energy<1)
{
round=ROUNDSPERBOUT;
}
}
// who has won the bout
if(b1.energy<b2.energy)
{
bot2bouts+=1;
boutswon[bot2]+=1;
}
else if(b2.energy<b1.energy)
{
bot1bouts+=1;
boutswon[bot1]+=1;
}
}
if(bot1bouts>bot2bouts)
{
matcheswon[bot1]+=1;
}
else if(bot2bouts>bot1bouts)
{
matcheswon[bot2]+=1;
}
printf("\n");
}
}
// output final scores
printf("\nResults:\n");
printf("Bot\t\t\tMatches\tBouts\n");
for(loop=0;loop<NUMBOTS;loop++)
{
printf("%s\t%d\t%d\n", bots[loop], matcheswon[loop], boutswon[loop]);
}
}
int getxmove(char cmd[5])
{
int dx=0;
if(strcmp(cmd, "NE")==0)
dx= 1;
else if(strcmp(cmd, "E")==0)
dx= 1;
else if(strcmp(cmd, "SE")==0)
dx= 1;
else if(strcmp(cmd, "SW")==0)
dx= -1;
else if(strcmp(cmd, "W")==0)
dx= -1;
else if(strcmp(cmd, "NW")==0)
dx= -1;
return dx;
}
int getymove(char cmd[5])
{
int dy=0;
if(strcmp(cmd, "N")==0)
dy= -1;
else if(strcmp(cmd, "NE")==0)
dy= -1;
else if(strcmp(cmd, "SE")==0)
dy= 1;
else if(strcmp(cmd, "S")==0)
dy= 1;
else if(strcmp(cmd, "SW")==0)
dy= 1;
else if(strcmp(cmd, "NW")==0)
dy= -1;
return dy;
}
int newposinbounds(int oldx, int oldy, int dx, int dy)
{
return (oldx+dx>=0 && oldx+dx<10 && oldy+dy>=0 && oldy+dy<10);
}
int directhit(Bot bot, int landmine[2])
{
return (bot.x==landmine[0] && bot.y==landmine[1]);
}
int landminecollision(int landmine1[2], int landmine2[2])
{
return ((landmine1[1]==landmine2[1]) && abs(landmine1[0]==landmine2[0]));
}
int inshrapnelrange(Bot bot, int landmine[2])
{
return (abs(bot.x-landmine[0])<2 && abs(bot.y-landmine[1])<2);
}
int directiontoint(char direction[5], char directions[8][3])
{
int loop,returnval=8;
for(loop=0;loop<8;loop++)
{
if(strcmp(directions[loop], direction)==0)
returnval=loop;
}
return returnval;
}
void deployweapons(Bot *bot, Bot *enemy, int bullets[MAXWEAPONS][3], int missiles[MAXWEAPONS][3], int landmines[MAXWEAPONS][2], char directions[8][3])
{
int loop;
if(strlen(bot->cmd)>2)
{
if(bot->cmd[0]=='B')
{
int weaponslot=0;
while(bullets[weaponslot][0]!= -1)
weaponslot+=1;
bullets[weaponslot][0]=bot->x;
bullets[weaponslot][1]=bot->y;
bullets[weaponslot][2]=directiontoint(bot->cmd+2, directions);
if(bullets[weaponslot][2]>7)
{
// direction wasn't recognized so clear the weapon
bullets[weaponslot][0]= -1;
bullets[weaponslot][1]= -1;
bullets[weaponslot][2]= -1;
}
}
if(bot->cmd[0]=='M')
{
int weaponslot=0;
while(missiles[weaponslot][0]!= -1)
weaponslot+=1;
missiles[weaponslot][0]=bot->x;
missiles[weaponslot][1]=bot->y;
missiles[weaponslot][2]=directiontoint(bot->cmd+2, directions);
if(missiles[weaponslot][2]>7)
{
// direction wasn't recognized so clear the weapon
missiles[weaponslot][0]= -1;
missiles[weaponslot][1]= -1;
missiles[weaponslot][2]= -1;
}
}
if(bot->cmd[0]=='L')
{
int weaponslot=0;
while(landmines[weaponslot][0]!= -1)
weaponslot+=1;
if(newposinbounds(bot->x, bot->y, getxmove(bot->cmd+2), getymove(bot->cmd+2)))
{
landmines[weaponslot][0]=bot->x+getxmove(bot->cmd+2);
landmines[weaponslot][1]=bot->y+getymove(bot->cmd+2);
//check for landmine hits
for(loop=0;loop<MAXWEAPONS;loop++)
{
if(landmines[loop][0]!= -1)
{
if(landminecollision(landmines[weaponslot], landmines[loop]) && weaponslot!=loop)
{
if(inshrapnelrange(*bot, landmines[loop]))
{
bot->energy-=1;
}
if(inshrapnelrange(*enemy, landmines[loop]))
{
enemy->energy-=1;
}
landmines[loop][0]= -1;
landmines[loop][1]= -1;
landmines[weaponslot][0]= -1;
landmines[weaponslot][1]= -1;
}
}
}
}
}
}
}
void cleararena(char arena[10][11])
{
int loop;
memset(arena, '.', 110);
for(loop=0;loop<10;loop++)
{
arena[loop][10]='\n';
}
}
```
The control program will call your bot from the command line. For this reason, **programs which cannot be called from the command line will be considered invalid**. I apologise to those whose language of choice doesn't work that way, but doing each match manually would be impractical.
[intx13](https://codegolf.stackexchange.com/users/18280/intx13) has kindly written a more robust version of the control program with some bugfixes which you can find [here](https://github.com/gazrogers/CodegolfBattlebotsScorer/blob/master/scorernew.c).
Suggestions for improvements or bug-fixes to the control program are welcome.
# Test bots
*None* of the test bots will be included in the scoring runs. They're just for testing purposes.
**Dudley DoNowt (C)**
```
int main(int argc, char *argv)
{
printf("0");
}
```
Does nothing regardless of the situation. Not expected to win much.
**HuggyBot (PHP)**
```
<?php
$arena=$argv[1];
list($meX, $meY)=findMe($arena);
list($oppX, $oppY)=findOpp($arena);
if($meY<$oppY)
{
if($meX<$oppX)
echo "SE";
elseif($meX==$oppX)
echo "S";
else
echo "SW";
}
elseif($meY==$oppY)
{
if($meX<$oppX)
echo "E";
else
echo "W";
}
else
{
if($meX<$oppX)
echo "NE";
elseif($meX==$oppX)
echo "N";
else
echo "NW";
}
function findMe($arena)
{
return find("Y", explode("\n", $arena));
}
function findOpp($arena)
{
return find("X", explode("\n", $arena));
}
function find($char, $array)
{
$x=0;
$y=0;
for($loop=0;$loop<10;$loop++)
{
if(strpos($array[$loop], $char)!==FALSE)
{
$x=strpos($array[$loop], $char);
$y=$loop;
}
}
return array($x, $y);
}
?>
```
Tries to get right next to the opponent. Vulnerable to landmines since it doesn't look for them. Makes firing missiles a less effective tactic for the opponent when it achieves its goal.
# The results
The final scoring run will be done after **23:59 on the 24th March 2014**. I will run test runs regularly so that entrants can see how their bots are stacking up against the current opposition.
# Entries
Entries should include your bot's source, and the command line argument I'll need to use to run it. You're welcome to post as many different entries as you like, but each answer should contain **only one** bot.
# Important
It seems that some entries want to write to disk to retain some state between runs. These are new rules regarding writing to disk.
* You may modify the source of your own bot. Modifying any other bot is cheating and will result in the offending bot being disqualified.
* You may write to a file created for the purpose of storing state. This file must be stored in a subdirectory of the directory where your bot is located. The subdirectory will be named `state`. Writing to any other part of the filesystem (other than your own source) is disallowed.
[Answer]
## Rifter
This bot takes different actions based on what bot it's fighting. To determine the opponent, it flips its own state and feeds it into the other bots to see what they would do, and compares that to what they actually do. Once they hit a threshold of 'correct' moves, it stops testing the others.
Once it knows what bot it's fighting, it *generally* knows where it will be on the next turn, so it can fire *there* instead of their current position.
Of course, there are some drawbacks. One is that bots that have "random" activity aren't detected so well. This is balanced by using the King's Last Stand logic when the opponent isn't known.
However, if a bot is purely deterministic, this has *no* trouble figuring out who it is. It can then be easily adapted to the situation by adding more cases into its logic for each opponent. For example, fighting Last Stand, it will corner him, stand 2x1 away so that the he can't move or fire directly, and shoot missiles into the wall behind, killing it with splash damage.
Like my others, it extends BattleBot.java:
```
import java.awt.Point;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class Rifter extends BattleBot{
String output="0";
String state;
String oldState = null;
List<Rift> rifts;
Rift chosen;
List<Point> safe;
Point probable;
int round;
final int testCount = 100;
Rifter(String[] args) {
super(args.length>0?args:testState);
state = args.length>0?args[0]:testState[0];
round = 0;
}
public static void main(String[] args) {
debug = false;
System.out.print(new Rifter(args).execute());
}
@Override
String execute() {
if(!valid)
return "0";
init();
probable = getLikelyPosition();
if(!safe.contains(yPosition) && evade())
return output;
if(riftShift())
return output;
return fallback();
}
boolean riftShift(){
if(chosen==null)
return false;
if("P".equals(chosen.nextAction))
return fireAt(xPosition, true);
switch(getChosenIndex()){
case 1:
output = fightStand();
break;
case 2:
output = fightEvil();
break;
default:
output = fallback();
}
return output.equals("0")?false:true;
}
int getChosenIndex(){
for(int i=0;i<baseBots.length;i++)
if(chosen.bot.equals(baseBots[i]))
return i;
return -1;
}
int distanceToWall(Point pos){
int min = Math.min(pos.x, pos.y);
min = Math.min(min, (arenaSize - 1) - pos.x);
return Math.min(min, (arenaSize - 1) - pos.y);
}
String fightStand(){
int wall = distanceToWall(xPosition);
if(wall > 0 || distance(yPosition, probable) > 2){
if(moveToward(probable, NONE))
return output;
if(fireAt(probable, false))
return output;
}
if(probable.x==0 && probable.y==0)
return "M NW";
if(probable.x==arenaSize-1 && probable.y==0)
return "M NE";
if(probable.x==arenaSize-1 && probable.y == arenaSize-1)
return "M SE";
if(probable.x==0 && probable.y == arenaSize-1)
return "M SW";
if(probable.x==0)
return "M W";
if(probable.x==arenaSize-1)
return "M E";
if(probable.y==0)
return "M N";
if(probable.y==arenaSize-1)
return "M S";
return "M " + headings[headingToPoint(probable)];
}
String fightEvil(){
if(areAligned(yPosition,xPosition)){
if(distance(yPosition,xPosition)>3)
if(moveToward(probable,UNALIGN))
return output;
if(fireAt(probable, false))
return output;
}
if(fireAt(probable, false))
return output;
if(moveToward(center, ALIGN))
return output;
return "0";
}
String fallback(){
output = getOutputFrom(fallbackBots[rand.nextInt(fallbackBots.length)]);
if(output==null)
output="0";
return output;
}
int NONE = 0;
int ALIGN = 1;
int UNALIGN = 2;
boolean moveToward(Point target, int align){
Point closest = new Point(-99,-99);
for(Point pos : safe){
if(pos.equals(yPosition))
continue;
if(distance(pos,target) < distance(closest,target)){
if(areAligned(pos,target) && align == UNALIGN)
continue;
if(!areAligned(pos,target) && align == ALIGN)
continue;
closest = pos;
}
}
if(isOutside(closest))
for(Point pos : safe)
if(distance(pos,target) < distance(closest,target))
closest = pos;
if(distance(closest,target) > distance(yPosition,target))
return false;
output = headings[headingToPoint(closest)];
return true;
}
boolean fireAt(Point target, boolean override){
if(!override && !areAligned(yPosition, target))
return false;
int dist = distance(yPosition, target);
if(!override && dist>3)
return false;
int heading = headingToPoint(target);
output = "M ";
if(dist > 3 || dist == 1)
output = "B ";
output += headings[heading];
return true;
}
String getOutputFrom(String bot){
return new Rift(bot,0).foretell(state);
}
boolean evade(){
if(safe.isEmpty())
return false;
Point dest = null;
for(Point pos : safe)
if(areAligned(pos,probable))
dest = pos;
if(dest==null){
output = getOutputFrom("java LastStand");
return true;
}
output = headings[headingToPoint(dest)];
return true;
}
Point getLikelyPosition(){
if(chosen!=null)
return chosen.getNextPosition(null);
if(round > testCount)
return xPosition;
int[] arena = new int[arenaSize*arenaSize];
for(Rift rift : rifts){
Point next = rift.getNextPosition(null);
if(!isOutside(next))
arena[next.y*arenaSize+next.x]++;
}
int max = 0, index = -1;
for(int i=0;i<arena.length;i++){
if(arena[i] > max){
max = arena[i];
index = i;
}
}
Point dest = new Point(index%arenaSize, index/arenaSize);
return isOutside(dest)?xPosition:dest;
}
boolean areAligned(Point a, Point b){
int x = Math.abs(a.x - b.x);
int y = Math.abs(a.y - b.y);
if(x==0 || y==0 || x==y)
return true;
return false;
}
void init(){
safe = new ArrayList<Point>();
if(spotCollision(yPosition)==null)
safe.add(yPosition);
for(int heading=0;heading<8;heading++){
Point pos = nextPosition(heading, yPosition);
if(isOutside(pos))
continue;
if(spotCollision(pos)==null)
safe.add(pos);
}
loadBots(readState());
updateRifts();
writeState();
}
void updateRifts(){
if(chosen == null && round < testCount)
for(Rift rift : rifts)
if(rift.validate(oldState))
rift.correct++;
}
Rift chooseBot(){
double avg = 0.0;
int highest = 0;
Rift choice = null;
for(Rift rift : rifts){
avg += rift.correct;
if(rift.correct >= highest){
highest = rift.correct;
choice = rift;
}
}
avg /= rifts.size();
if(choice!= null && (choice.correct > 8) && choice.correct > avg*2)
return choice;
else
return null;
}
boolean writeState(){
File dir = new File("state");
dir.mkdirs();
File file = new File("state/rifter.state");
try {
BufferedWriter writer = new BufferedWriter(new FileWriter(file));
writer.write(">" + round + "\n");
for(Rift rift : rifts)
writer.write(":" + rift.correct + "|" + rift.bot + "\n");
writer.write(state);
writer.flush();
writer.close();
} catch (IOException e) {
log(e.getMessage());
return false;
}
return true;
}
List<String> readState(){
List<String> bots = new ArrayList<String>();
File file = new File("state/rifter.state");
if(file.exists()){
try {
BufferedReader reader = new BufferedReader(new FileReader(file));
String line;
String oldState = "";
line = reader.readLine();
if(line != null && line.startsWith(">"))
round = Integer.valueOf(line.substring(1)) + 1;
while((line = reader.readLine()) != null){
if(line.startsWith(":"))
bots.add(line.substring(1));
else
oldState += line + "\n";
}
reader.close();
BattleBot bot = new Rifter(new String[]{oldState});
if(isStateInvalid(bot)){
bots.clear();
oldState = "";
round = 0;
}
this.oldState = oldState;
} catch(Exception e){
log(e.getMessage());
bots.clear();
this.oldState = "";
}
}
return bots.isEmpty()?Arrays.asList(baseBots):bots;
}
boolean isStateInvalid(BattleBot bot){
if(!bot.valid)
return true;
if(distance(bot.xPosition, xPosition) > 1)
return true;
if(distance(bot.yPosition, yPosition) > 1)
return true;
if(xEnergy > bot.xEnergy || yEnergy > bot.yEnergy)
return true;
return false;
}
List<Rift> loadBots(List<String> bots){
rifts = new ArrayList<Rift>();
String flipped = flipState(state);
for(String bot : bots){
String[] tokens = bot.split("\\|");
Rift rift;
if(tokens.length < 2)
rift = new Rift(bot, 0);
else
rift = new Rift(tokens[1], Integer.valueOf(tokens[0]));
rifts.add(rift);
}
if((chosen = chooseBot()) == null)
if(round < testCount)
for(Rift rift : rifts)
rift.nextAction = rift.foretell(flipped);
else
chosen.nextAction = chosen.foretell(flipped);
return rifts;
}
String flipState(String in){
String tmp = in.replaceAll("X", "Q");
tmp = tmp.replaceAll("Y", "X");
tmp = tmp.replaceAll("Q", "Y");
String[] lines = tmp.split("\\r?\\n");
tmp = lines[arenaSize];
lines[arenaSize] = lines[arenaSize+1];
lines[arenaSize+1] = tmp;
String out = "";
for(int i=0;i<lines.length;i++)
out += lines[i] + "\n";
return out.trim();
}
class Rift{
String bot;
String nextAction;
String state;
String nextState;
int correct;
Rift(String name, int count){
bot = name;
correct = count;
}
Point getNextPosition(String action){
if(action==null)
action = nextAction;
if(action==null || action.length()<1)
return xPosition;
int heading = getHeading(action.split(" ")[0]);
return nextPosition(heading, xPosition);
}
boolean validate(String oldState){
boolean valid = true;
if(oldState == null)
return valid;
if(oldState.split("\\r?\\n").length < 12)
return valid;
String action = foretell(flipState(oldState));
if(action==null || action.length() < 1){
log(this.bot + " : " + "invalid action");
return valid;
}
BattleBot bot = new Rifter(new String[]{oldState});
switch(action.charAt(0)){
case 'B':
case 'M':
case 'L':
valid = testShot(action, bot);
break;
case 'P':
case '0':
valid = testNothing(bot);
break;
default:
valid = testMovement(action, bot);
break;
}
log(this.bot + " : " + action + " : " + valid);
return valid;
}
boolean testNothing(BattleBot bot){
if(!xPosition.equals(bot.xPosition))
return false;
for(Weapon weapon : weapons){
int dist = weapon.type==LANDMINE?1:weapon.speed;
log(dist);
if(distance(weapon.position, bot.xPosition) != dist)
continue;
int dir = weapon.heading;
if(isHeadingExact(dir,bot.xPosition,weapon.position))
return false;
}
return true;
}
boolean testShot(String act, BattleBot bot){
if(!xPosition.equals(bot.xPosition))
return false;
if(weapons == null)
return false;
String[] tokens = act.split(" ");
char which = tokens[0].charAt(0);
int type = which=='B'?BULLET:
which=='M'?MISSILE:
LANDMINE;
for(Weapon weapon : weapons){
if(weapon.type != type)
continue;
int dist = weapon.type==LANDMINE?1:weapon.speed;
log(dist);
if(distance(weapon.position, bot.xPosition) != dist)
continue;
int dir;
if(act==null)
dir = weapon.heading;
else if(tokens.length < 2)
return false;
else
dir = getHeading(tokens[1]);
if(isHeadingExact(dir,bot.xPosition,weapon.position))
return true;
}
return false;
}
boolean testMovement(String act, BattleBot bot){
return xPosition.equals(nextPosition(getHeading(act), bot.xPosition));
}
String foretell(String state){
this.state = state;
String[] cmdRaw = bot.split(" ");
String[] cmd = new String[cmdRaw.length+1];
for(int i=0;i<cmdRaw.length;i++)
cmd[i] = cmdRaw[i];
cmd[cmd.length-1]=state;
String out = null;
try {
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();
BufferedReader err = new BufferedReader(new InputStreamReader(p.getErrorStream()));
String line;
while((line = err.readLine()) != null){
out = line;
}
err.close();
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
while((line = reader.readLine()) != null){
out = line;
}
reader.close();
} catch (Exception e) {
log(e.getMessage());
}
return out!=null&&out.length()<6&&out.length()>0?out:null;
}
}
String fallbackBots[] = {"node Neo-Bot.js"};
String[] baseBots = {
"java EvadeBot",
"java LastStand",
"java EvilBot",
"python ReadyAimShoot.py",
"python DodgingTurret.py",
"python mineminemine.py",
"python StraightShooter.py",
"./RandomBot",
"./SpiralBot",
"ruby1.9 TroubleAndStrafe.rb",
"python3 CunningPlanBot.py",
"./CamperBot",
"node CentreBot.js",
"node Neo-Bot.js",
"java UltraBot",
"python NinjaPy.py"
};
static String[] testState = {".X....LLL.\n..........\n.M........\n..........\nM.........\n..........\n..........\n..........\n.Y........\n...B......\nY 10\nX 7\nM 1 2 S"};
}
```
[Answer]
# EvilBot
**a bot that tries to be as evil as possible**
Well here's what I've got: a Java bot that tries to get as close to the opponent a circular strip of radius 2.5 around the center of the arena as possible and then do as much damage as it can when it can. Its movement pattern is based on assigning a "danger" value to each of its neighboring squares, and deciding to move based on these values *and* based on a tendency to be as close to a circular region of radius 2.5 about the center of the arena. I used some of the nuts and bolts from @Geobits's answer (e.g. having an abstract `BattleBot` class and the parsing technique), so thanks! I'm probably going to modify/expand what I have so far, although it does fare quite well as is with the other bots posted so far. The code is below. (if anyone else is using Java, feel free to use my abstract/helper classes.)
(`EvilBot.java`)
```
import java.io.File; // debugging
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Scanner; // debugging
class Point {
private int x, y;
public Point(int x, int y) {
this.x = x;
this.y = y;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
public int distTo(Point other) {
return Math.max(Math.abs(x - other.x), Math.abs(y - other.y));
}
public double conventionalDistTo(Point other) {
return Math.hypot(x - other.x, y - other.y);
}
@Override
public boolean equals(Object other) {
if (!(other instanceof Point))
return false;
Point otherPoint = (Point) other;
return x == otherPoint.x && y == otherPoint.y;
}
@Override
public int hashCode() {
return x * (1 << Arena.ARENA_SIZE) + y;
}
@Override
public String toString() {
return "(" + x + "," + y + ")";
}
}
interface ArenaElement {
char getSymbol();
}
enum Projectile implements ArenaElement {
BULLET('B', 3, 1) {
},
MISSILE('M', 2, 3) {
},
LANDMINE('L', 0, 2) {
@Override
public int timeUntilImpact(Point current, Point target, Direction dir) {
return current.equals(target) ? 0 : -1;
}
};
private final char symbol;
private final int speed;
private final int damage;
private Projectile(char symbol, int speed, int damage) {
this.symbol = symbol;
this.speed = speed;
this.damage = damage;
}
@Override
public char getSymbol() {
return symbol;
}
public int getSpeed() {
return speed;
}
public int getDamage() {
return damage;
}
public static Projectile fromSymbol(char symbol) {
for (Projectile p : values()) {
if (p.getSymbol() == symbol)
return p;
}
return null;
}
public int timeUntilImpact(Point current, Point target, Direction dir) {
final int dx = target.getX() - current.getX();
final int dy = target.getY() - current.getY();
if (!(dx == 0 || dy == 0 || dx == dy || dx == -dy))
return -1;
if (dx == 0) {
if (dy > 0 && dir != Direction.N)
return -1;
if (dy < 0 && dir != Direction.S)
return -1;
}
if (dy == 0) {
if (dx > 0 && dir != Direction.E)
return -1;
if (dx < 0 && dir != Direction.W)
return -1;
}
if (dx == dy) {
if (dx > 0 && dir != Direction.NE)
return -1;
if (dx < 0 && dir != Direction.SW)
return -1;
}
if (dx == -dy) {
if (dx > 0 && dir != Direction.SE)
return -1;
if (dx < 0 && dir != Direction.NW)
return -1;
}
int dist = target.distTo(current);
return (dist / speed) + (dist % speed == 0 ? 0 : 1);
}
}
enum BotType implements ArenaElement {
ME('Y'), ENEMY('X');
private final char symbol;
private BotType(char symbol) {
this.symbol = symbol;
}
@Override
public char getSymbol() {
return symbol;
}
public static BotType fromSymbol(char symbol) {
for (BotType bt : values()) {
if (bt.getSymbol() == symbol)
return bt;
}
return null;
}
}
enum EmptySpot implements ArenaElement {
EMPTY;
@Override
public char getSymbol() {
return '.';
}
public static EmptySpot fromSymbol(char symbol) {
for (EmptySpot es : values()) {
if (es.getSymbol() == symbol)
return es;
}
return null;
}
}
enum Direction {
N, NE, E, SE, S, SW, W, NW
}
class Arena {
public static final int ARENA_SIZE = 10;
public static final Point center = new Point(ARENA_SIZE / 2, ARENA_SIZE / 2);
private ArenaElement[][] arena;
private Arena(boolean fill) {
arena = new ArenaElement[ARENA_SIZE][ARENA_SIZE];
if (!fill)
return;
for (int i = 0; i < ARENA_SIZE; i++) {
for (int j = 0; j < ARENA_SIZE; j++) {
arena[i][j] = EmptySpot.EMPTY;
}
}
}
public boolean inBounds(int x, int y) {
return x >= 0 && x < ARENA_SIZE && y >= 0 && y < ARENA_SIZE;
}
public boolean inBounds(Point p) {
final int x = p.getX(), y = p.getY();
return inBounds(x, y);
}
public ArenaElement get(int x, int y) {
if (!inBounds(x, y)) {
return null; // be cautious of this
}
return arena[ARENA_SIZE - 1 - y][x];
}
public ArenaElement get(Point p) {
return get(p.getX(), p.getY());
}
// note: a point is considered its own neighbor
public List<Point> neighbors(Point p) {
List<Point> neighbors = new ArrayList<Point>(9);
for (int i = -1; i <= 1; i++) {
for (int j = -1; j <= 1; j++) {
Point p1 = new Point(p.getX() + i, p.getY() + j);
if (get(p1) != null)
neighbors.add(p1);
}
}
return neighbors;
}
public Point findMe() {
for (int i = 0; i < ARENA_SIZE; i++) {
for (int j = 0; j < ARENA_SIZE; j++) {
if (get(i, j) == BotType.ME)
return new Point(i, j);
}
}
return null;
}
public Point findEnemy() {
for (int i = 0; i < ARENA_SIZE; i++) {
for (int j = 0; j < ARENA_SIZE; j++) {
if (get(i, j) == BotType.ENEMY)
return new Point(i, j);
}
}
return null;
}
public Point impactOfRayFromPointInDirection(Point p, Direction dir) {
int x = p.getX(), y = p.getY();
switch (dir) {
case N:
y += (Arena.ARENA_SIZE - 1 - y);
break;
case NE: {
int dx = (Arena.ARENA_SIZE - 1 - x);
int dy = (Arena.ARENA_SIZE - 1 - y);
int off = Math.max(dx, dy);
x += off;
y += off;
break;
}
case E:
x += (Arena.ARENA_SIZE - 1 - x);
break;
case SE: {
int dx = (Arena.ARENA_SIZE - 1 - x);
int dy = y;
int off = Math.max(dx, dy);
x += off;
y -= off;
break;
}
case S:
y = 0;
break;
case SW: {
int dx = x;
int dy = y;
int off = Math.max(dx, dy);
x -= off;
y -= off;
break;
}
case W:
x = 0;
break;
case NW: {
int dx = x;
int dy = (Arena.ARENA_SIZE - 1 - y);
int off = Math.max(dx, dy);
x -= off;
y += off;
break;
}
}
return new Point(x, y);
}
private static ArenaElement fromSymbol(char symbol) {
ArenaElement e = EmptySpot.fromSymbol(symbol);
if (e != null)
return e;
e = Projectile.fromSymbol(symbol);
if (e != null)
return e;
return BotType.fromSymbol(symbol);
}
public static Arena parse(String[] input) {
Arena arena = new Arena(false);
for (int i = 0; i < ARENA_SIZE; i++) {
for (int j = 0; j < ARENA_SIZE; j++) {
char symbol = input[i].charAt(j);
arena.arena[i][j] = fromSymbol(symbol);
}
}
return arena;
}
}
abstract class BaseBot {
protected static class ProjectileInfo {
Projectile projectile;
Point position;
Direction direction;
@Override
public String toString() {
return projectile.toString() + " " + position + " " + direction;
}
}
protected Arena arena;
protected Point myPos;
protected int energy;
protected Point enemyPos;
protected int enemyEnergy;
public List<ProjectileInfo> projectiles;
public BaseBot(String[] args) {
if (args.length < 1)
return;
String[] lines = args[0].split("\r?\n");
projectiles = new ArrayList<ProjectileInfo>(lines.length
- Arena.ARENA_SIZE - 2);
arena = Arena.parse(lines);
myPos = arena.findMe();
enemyPos = arena.findEnemy();
for (int i = Arena.ARENA_SIZE; i < lines.length; i++) {
parseInputLine(lines[i]);
}
}
private void parseInputLine(String line) {
String[] split = line.split(" ");
char c0 = line.charAt(0);
if (c0 == 'Y') {
energy = Integer.parseInt(split[1]);
} else if (c0 == 'X') {
enemyEnergy = Integer.parseInt(split[1]);
} else {
ProjectileInfo pinfo = new ProjectileInfo();
pinfo.projectile = Projectile.fromSymbol(split[0].charAt(0));
pinfo.position = new Point(Integer.parseInt(split[1]),
Arena.ARENA_SIZE - 1 - Integer.parseInt(split[2]));
if (split.length > 3)
pinfo.direction = Direction.valueOf(split[3]);
projectiles.add(pinfo);
}
}
abstract String getMove();
}
public class EvilBot extends BaseBot {
public static final boolean DEBUG = false;
public static void main(String... args) throws Exception {
if (DEBUG) {
StringBuffer input = new StringBuffer();
Scanner scan = new Scanner(new File("a.txt"));
while (scan.hasNextLine()) {
input.append(scan.nextLine());
input.append('\n');
}
scan.close();
args = new String[] { input.toString() };
}
System.out.print(new EvilBot(args).getMove());
}
public EvilBot(String[] args) {
super(args);
}
/*
* Direction to p if perfectly aligned, null otherwise
*/
private Direction getDirTo(Point p) {
final int dx = p.getX() - myPos.getX();
final int dy = p.getY() - myPos.getY();
if (dx == 0) {
return (dy > 0) ? Direction.N : Direction.S;
}
if (dy == 0) {
return (dx > 0) ? Direction.E : Direction.W;
}
if (dx == dy) {
return (dy > 0) ? Direction.NE : Direction.SW;
}
if (dx == -dy) {
return (dy > 0) ? Direction.NW : Direction.SE;
}
return null;
}
/*
* Direction towards p (best approximation)
*/
private Direction getDirTowards(Point p) {
Direction minDir = null;
double minDist = 0;
for (Direction dir : Direction.values()) {
double dist = arena.impactOfRayFromPointInDirection(myPos, dir)
.conventionalDistTo(p);
if (minDir == null || dist < minDist) {
minDir = dir;
minDist = dist;
}
}
return minDir;
}
private boolean isEnemyCloseToWall() {
return (enemyPos.getX() < 2 || enemyPos.getY() < 2
|| enemyPos.getX() > Arena.ARENA_SIZE - 3 || enemyPos.getY() > Arena.ARENA_SIZE - 3);
}
private String missileAttack() {
return "M " + getDirTowards(enemyPos);
}
@Override
public String getMove() {
List<Point> neighbors = arena.neighbors(myPos);
Map<Point, Double> dangerFactors = new HashMap<Point, Double>();
for (Point neighbor : neighbors) {
double dangerFactor = 0;
if (arena.get(neighbor) == Projectile.LANDMINE) {
dangerFactor += 2;
}
for (ProjectileInfo pi : projectiles) {
int time = pi.projectile.timeUntilImpact(pi.position, neighbor,
pi.direction);
if (time > 0) {
dangerFactor += ((double) pi.projectile.getDamage()) / time;
}
}
dangerFactors.put(neighbor, dangerFactor);
}
if (dangerFactors.get(myPos) == 0) {
// we are safe for now...
Direction dir = getDirTo(enemyPos);
boolean closeToWall = isEnemyCloseToWall();
if (dir != null) {
int dist = myPos.distTo(enemyPos);
if (dist < Projectile.MISSILE.getSpeed() * 2) {
return "M " + dir;
} else {
return "B " + dir;
}
} else if (closeToWall) {
if (Math.random() > 0.5) // so we don't get caught in loops
return missileAttack();
}
}
// move!
double leastDanger = Double.POSITIVE_INFINITY;
for (Entry<Point, Double> entry : dangerFactors.entrySet()) {
if (entry.getValue() < leastDanger)
leastDanger = entry.getValue();
}
Point moveTo = null;
for (Entry<Point, Double> entry : dangerFactors.entrySet()) {
if (entry.getKey().equals(myPos))
continue;
if (entry.getValue() == leastDanger) {
double d1 = entry.getKey().conventionalDistTo(Arena.center);
double d2 = moveTo == null ? 0 : moveTo
.conventionalDistTo(Arena.center);
if (moveTo == null || Math.abs(d1 - 2.5) < Math.abs(d2 - 2.5)) {
moveTo = entry.getKey();
}
}
}
if (moveTo == null) {
return missileAttack();
}
return getDirTo(moveTo).toString();
}
}
```
Usage:
```
javac EvilBot.java
java EvilBot <input>
```
---
**Notes:**
* Currently, land mines are not being used, only dodged. I'm probably not going to change this, since using land mines appears to do more harm than good (at least for EvilBot) judging by a few tests I ran.
* Currently, EMP is not being used. I tried the strategy of aligning with the opponent and firing the EMP followed by missiles, but there are a few counter-strategies to this that would win almost 100% of the time, so I decided to abandon that route. I might explore using the EMP in different ways later on.
[Answer]
### ReadyAimShoot
**a [R](http://cran.r-project.org/) Bot**
```
input <- strsplit(commandArgs(TRUE),split="\\\\n")[[1]]
arena <- do.call(rbind,strsplit(input[1:10],"")) #Parse arena
life <- as.integer(strsplit(input[11:12]," ")[[1]][2]) #Parse stats
stuff <- strsplit(input[13:length(input)]," ") #Parse elements
if(length(input)>12){ #What are they
stuff <- strsplit(input[13:length(input)]," ")
whatstuff <- sapply(stuff,`[`,1)
}else{whatstuff<-""}
if(sum(whatstuff=="L")>1){ #Where are the mines
mines <- t(apply(do.call(rbind,stuff[whatstuff=="L"])[,3:2],1,as.integer))+1
}else if(sum(whatstuff=="L")==1){
mines <- as.integer(stuff[whatstuff=="L"][[1]][3:2])+1
}else{mines <- c()}
me <- which(arena=="Y",arr.ind=T) #Where am I
other <- which(arena=="X",arr.ind=T) #Where is the target
direction <- other-me #Direction of the other bot in term of indices
if(length(mines)>2){ #Direction of mines in term of indices
dirmines <- mines-matrix(rep(me,nrow(mines)),nc=2,byrow=T)
}else if(length(mines)==1){
dirmines <- mines-me
}else{dirmines<-c()}
file <- normalizePath(gsub("^--file=","",grep("^--file=",commandArgs(FALSE),v=TRUE))) #Path to this very file
f1 <- readLines(file) #Read-in this source file
where <- function(D){ #Computes direction of something in term of NSWE
d <- ""
if(D[2]<0) d <- paste(d,"W",sep="")
if(D[2]>0) d <- paste(d,"E",sep="")
if(D[1]<0) d <- paste(d,"N",sep="")
if(D[1]>0) d <- paste(d,"S",sep="")
d
}
d <- where(direction) #Direction of the other bot in term of NSWE
M <- dirmines[dirmines[,1]%in%(-1:1) & dirmines[,2]%in%(-1:1),] #Which mines are next to me
if(length(M)>2){m<-apply(M,1,where)}else if(length(M)==1){m<-where(M)}else{m<-""} #Direction of close-by mines in term of NSWE
if(any(direction==0) & life >1 & !grepl("#p_fired", tail(f1,1))){
# If aligned with target, if life is more than one
# and if this source file doesn't end with a comment saying the EMP was already fired
# Fire the EMP, and leave comment on this file saying so
action <- "P"
f2 <- c(f1,"#p_fired2")
cat(f2, file=file, sep="\n")
}else if(tail(f1,1)=="#p_fired2"){
# If EMP have been fired last turn
# Send missile in direction of target
# Change comment on file.
action <- paste("M", d)
f2 <- c(f1[-length(f1)], "#p_fired1")
cat(f2, file=file, sep="\n")
}else if(tail(f1,1)=="#p_fired1"){
# If EMP was fired two turns ago
# Send bullet and erase comment line.
action <- paste("B", d)
f2 <- f1[-length(f1)]
cat(f2, file=file, sep="\n")
}
if (any(direction==0) & life<2){
# If aligned but life is 1 don't fire the EMP, but send missile instead
action <- paste("M",d)
}
if (!any(direction==0)){
# If not aligned, try to align using shortest, landmine-free direction
if(direction[2]<direction[1]){
if(grepl('W',d) & !'W'%in%m){action <- 'W'}
if(grepl('E',d) & !'E'%in%m){action <- 'E'}
}else if(direction[2]>=direction[1]){
if(grepl('N',d) & !'N'%in%m){action <- 'N'}
if(grepl('S',d) & !'S'%in%m){action <- 'S'}
}else{ #If no landmine-free direction, don't move
action <- 0
}
}
cat(action,"\n")
```
This bot tries to place itself in the same row or column as the target, when it is aligned with the target it fires the EMP, then on the following turn it fires a missile toward the target, and then a bullet. It should also be aware of the surrounding mine and avoid them but is completely oblivious of bullets and missiles. If life is already at 1 it skips the EMP.
To keep track of when it triggers the EMP, it modifies its source code by adding a comment at the end of the file (`#p_fired2` at first, then modifies it to `#p_fired1` and then erase it). I hope that keeping track of when it triggers the EMP this way is not too borderline.
Command line should be `Rscript ReadyAimShoot.R`, followed by the argument as in the example, at least on UNIX systems but probably as well on windows (I'll check that when I ll actually test it against the other bots).
**Edit**: Since the R version seems to have problem parsing the input, here is a python version of the same bot with, I hope, works. If any other R programmer see the post and see what's wrong with this bot, feel free to debug!
```
import sys, os
def Position(arena, element):
y = [i for i,j in enumerate(arena) if element in arena[i]][0]
x = arena[y].index(element)
return (x,y)
def Direction(coord1, coord2):
d0 = coord1[0]-coord2[0]
d1 = coord1[1]-coord2[1]
if d1!=0:
a = ['N','S'][d1<0]
else: a = ""
if d0!=0:
b = ['W','E'][d0<0]
else: b = ""
return a+b
def Shortest(coord1,coord2):
d = abs(coord1[0]-coord2[0])-abs(coord1[1]-coord2[1])
if d>0: a = 'EW'
if d<=0: a = 'NS'
return a
input = sys.argv[1].splitlines()
arena = input[0:10]
life = input[10].split(" ")
stuff = input[12:]
path = os.path.dirname(__file__)
f1 = os.path.join(path,'state','RAS')
try:
with open(f1, 'r') as f:
fired = int(f.read())
except:
fired = 0
me = Position(arena, "Y")
other = Position(arena, "X")
target = Direction(me,other)
m = []
if len(stuff):
s = [i.split(" ") for i in stuff]
for i in s:
if i[0]=='L': m += [(int(i[1]),int(i[2]))]
near = [(me[0]+i,me[1]) for i in range(-1,2,2)]+[(me[0],me[1]+i) for i in range(-1,2,2)]+[(5+me[0],5+me[1]) for i in range(-1,2,2)]
closeMines = [i for i in m if i in near]
dirmines = []
for j in closeMines:
dirmines += Direction(me, j)
if target in ['N','S','E','W']:
if int(life[1])>1 and fired==0:
action = "P"
with open(f1,'w') as f:
f.write('2')
else:
if fired==2:
action = "M "+target
with open(f1,'w') as f:
f.write('1')
if fired==1:
action = "B "+target
with open(f1,'w') as f:
f.write('0')
if int(life[1])==1:
action = "M "+target
else:
s = Shortest(me,other)
d1 = Direction((me[0],other[1]), other)
d2 = Direction((other[0],me[1]), other)
if s=='EW' and d1 not in dirmines:
action = d1
if s=='NS' and d2 not in dirmines:
action = d2
else:
if d2 not in dirmines: action = d2
if d1 not in dirmines: action = d1
else: action = 0
sys.stdout.write(action)
```
[Answer]
## King's Last Stand
An extension to my `BattleBot`, this is designed to combat EMP-blasters. The only sensible way (IMO) to use EMP is by firing it while you're on the same axis as the opponent, then shooting missiles/weapons toward the stuck opponent. So, I stay off the axis :)
If you've ever had a chess game go down to a king against a king+queen, you know that a queen alone *can't checkmate*, you have to get the king involved. If you don't, the lone king's strategy is easy: try to stay off-axis and toward the center to maximize mobility. If you get stuck, go for a stalemate.
Of course, there is no great way to force a stalemate here, so *eventually* you get stuck on a side or corner if the queen is playing at any level of competence. If this bot is ever in that situation, it shoots. Assuming the opponent is going to EMP, this gives a one-turn damage advantage, so the king's last stand should turn out alright unless he's already low on life.
Oh, and if it's already off-axis and safe from projectiles, it'll just take a potshot in the general direction of the enemy.
**LastStand.java**
```
import java.awt.Point;
import java.util.ArrayList;
public class LastStand extends BattleBot{
String output = "0";
ArrayList<Point> safeFromEnemy;
ArrayList<Point> safeFromWeapons;
ArrayList<Point> safeFromBoth;
public static void main(String[] args){
System.out.print(new LastStand(args).execute());
}
LastStand(String[] args){
super(args);
debug = false;
}
@Override
String execute() {
findSafeSpots();
if(attack())
return output;
if(evade(safeFromBoth))
return output;
if(evade(safeFromEnemy))
return output;
return output;
}
boolean evade(ArrayList<Point> points){
Point dest = closestToCenter(points);
if(dest==null)
return false;
int heading = headingToPoint(dest);
output = headings[heading];
return true;
}
boolean attack(){
if(safeFromEnemy.isEmpty() || safeFromBoth.contains(yPosition))
return fire();
return false;
}
Point closestToCenter(ArrayList<Point> points){
Point closest = null;
int dist = 15;
for(Point pos : points){
if(distance(center, pos) < dist){
closest = pos;
dist = distance(center, pos);
}
}
return closest;
}
boolean isOnEnemyAxis(Point pos){
int x = Math.abs(pos.x - xPosition.x);
int y = Math.abs(pos.y - xPosition.y);
if(x==0 || y==0 || x==y)
return true;
return false;
}
void findSafeSpots(){
safeFromEnemy = new ArrayList<Point>();
safeFromWeapons = new ArrayList<Point>();
safeFromBoth = new ArrayList<Point>();
if(!isOnEnemyAxis(yPosition))
safeFromEnemy.add(yPosition);
if(spotCollision(yPosition)==null)
safeFromWeapons.add(yPosition);
for(int heading=0;heading<8;heading++){
Point pos = nextPosition(heading, yPosition);
if(isOutside(pos))
continue;
if(!isOnEnemyAxis(pos))
safeFromEnemy.add(pos);
if(spotCollision(pos)==null)
safeFromWeapons.add(pos);
}
for(Point pos : safeFromEnemy){
if(safeFromWeapons.contains(pos))
safeFromBoth.add(pos);
}
}
boolean fire(){
int heading = headingToPoint(xPosition);
int dist = distance(xPosition, yPosition);
if(dist>1 || yEnergy>4)
output = "M " + headings[heading];
else
output = "B " + headings[heading];
return true;
}
}
```
To compile run, place in a folder with [`BattleBot.java`](https://codegolf.stackexchange.com/a/23771/14215) and run:
```
javac LastStand.java
java LastStand <arena-argument>
```
[Answer]
## EvadeBot
This bot prioritizes staying alive. If it detects incoming collisions, it tries to move to a safe spot by checking *that* spot for collisions. If there are no surrounding "safe" spots, it stays put and goes to the next step.
If there were no collisions (or safe spots in case of collision), it does an attack check. If the opponent is 8-axis aligned, it fires 80% of the time. If it's not aligned, it fires 50% of the time in the nearest heading. It chooses a weapon based on distance. If it's close, a landmine or bullet(depending on exact distance and relative health), missiles from afar.
If it decided not to fire, it takes a random walk(again checking for safe spots).
If none of the above worked out, it just sits there until the next turn.
It doesn't use EMP, and I have a bad feeling about squaring up against `ReadyAimShoot`, but we'll see how it goes.
---
The code is in two pieces. Since I may make more than one bot, I created an abstract `BattleBot` class. It includes helper functions like reading the arena, collision checking, heading management, etc. There's also a log function to help track what's going on while debugging. If `debug==false`, it will only print the actual output. If anyone wants to use/extend it, feel free. It's not *pretty* code, but it beats writing boilerplate.
**BattleBot.java**
```
import java.awt.Point;
import java.util.Random;
abstract class BattleBot {
static boolean debug;
Random rand;
final String[] headings = {"N","NE","E","SE","S","SW","W","NW"};
final int BULLET = 0,
MISSILE = 1,
LANDMINE = 2;
final int arenaSize = 10;
final Point center = new Point(arenaSize/2, arenaSize/2);
boolean valid = false;
Weapon[] weapons;
Point xPosition, yPosition;
int xEnergy, yEnergy;
abstract String execute();
Point nextPosition(int heading, Point from){
if(from == null)
from = yPosition;
Point next = new Point(from);
if(heading<0||heading>7)
return next;
if(heading<2 || heading>6)
next.y--;
if(heading<6 && heading>2)
next.y++;
if(heading>4)
next.x--;
if(heading<4 && heading>0)
next.x++;
return next;
}
boolean isHeadingExact(int heading, Point from, Point to){
Point next = new Point(from);
while(!isOutside(next)){
next = nextPosition(heading, next);
if(next.equals(to))
return true;
}
return false;
}
int headingToPoint(Point to){
int x = yPosition.x - to.x;
int y = yPosition.y - to.y;
if(x<0){
if(y<0) return 3;
if(y>0) return 1;
return 2;
}else if(x>0){
if(y<0) return 5;
if(y>0) return 7;
return 6;
}else{
if(y<0) return 4;
return 0;
}
}
BattleBot(String[] args){
rand = new Random();
if(args.length < 1 || args[0].length() < arenaSize*arenaSize)
return;
String[] lines = args[0].split("\\r?\\n");
if(lines.length<12)
return;
weapons = new Weapon[lines.length - 12];
int wIndex = 0;
for(int i=0;i<lines.length;i++){
String line = lines[i];
if(i<arenaSize){
if(line.contains("X"))
xPosition = new Point(line.indexOf("X"),i);
if(line.contains("Y"))
yPosition = new Point(line.indexOf("Y"),i);
} else {
String[] tokens = line.split(" ");
switch(tokens[0].charAt(0)){
case 'X':
xEnergy = Integer.parseInt(tokens[1]);
break;
case 'Y':
yEnergy = Integer.parseInt(tokens[1]);
break;
case 'B':
case 'M':
case 'L':
weapons[wIndex++] = new Weapon(tokens);
break;
}
}
}
valid = true;
}
int distance(Point a, Point b){
return Math.max(Math.abs(a.x-b.x), Math.abs(a.y-b.y));
}
Point spotCollision(Point pos){
for(int i=0;i<weapons.length;i++){
Point collision = weapons[i].collisionPoint(pos);
if(collision != null){
log("Collision at " + collision.x + "," + collision.y + " with weapon type " + weapons[i].type);
if(collision.equals(pos))
return collision;
else if(weapons[i].type==MISSILE && distance(collision,pos) < 2)
return collision;
log("Collision disregarded");
}
}
return null;
}
boolean isOutside(Point pos){
if(pos.x<0||pos.y<0||pos.x>=arenaSize||pos.y>=arenaSize)
return true;
return false;
}
static <T> void log(T msg){
if(debug) System.out.println(msg);
}
int getHeading(String in){
for(int i=0;i<headings.length;i++){
if(in.equalsIgnoreCase(headings[i]))
return i;
}
return -1;
}
class Weapon{
final int[] speeds = {3,2,0};
Point position;
int type;
int heading;
int speed;
Weapon(String[] tokens){
char which = tokens[0].charAt(0);
type = which=='B'?BULLET:
which=='M'?MISSILE:
LANDMINE;
speed = speeds[type];
position = new Point(Integer.parseInt(tokens[1]), Integer.parseInt(tokens[2]));
if(type==BULLET || type == MISSILE)
heading = getHeading(tokens[3]);
else
heading = -1;
}
Point collisionPoint(Point pos){
Point next = new Point(position);
if(type==LANDMINE)
return next;
for(int i=0;i<speed;i++){
next = nextPosition(heading, next);
if(isOutside(next))
return next;
if(next.equals(xPosition) || next.equals(yPosition))
return next;
if(next.equals(pos))
return next;
}
return null;
}
}
}
```
This *particular* bot is `EvadeBot`. To compile/run, put it in a folder with `BattleBot.java` and run:
```
javac EvadeBot.java
java EvadeBot <arena-argument>
```
If you omit the argument or it can't parse it correctly, it defaults to `"0"` output.
**EvadeBot.java**
```
import java.awt.Point;
public class EvadeBot extends BattleBot{
String output = "0";
public static void main(String[] args){
System.out.print(new EvadeBot(args).execute());
}
EvadeBot(String[] args) {
super(args);
debug = false;
}
@Override
String execute() {
if(!valid)
return output;
if(evade())
return output;
if(attack())
return output;
if(walk())
return output;
return output;
}
boolean evade(){
Point collision = spotCollision(yPosition);
if(collision!=null){
log("Incoming! " + collision.x + "," + collision.y);
return moveAwayFrom(collision);
}
return false;
}
boolean attack(){
int dist = distance(yPosition, xPosition);
int heading = headingToPoint(xPosition);
int odds = rand.nextInt(100);
if(isHeadingExact(heading, yPosition, xPosition)){
if(odds<20)
return false;
} else {
if(odds<50)
return false;
}
log("Odds of firing " + headings[heading] + " to " + xPosition.x + "," + xPosition.y + " checked, preparing to attack.");
if(dist==2){
if(yEnergy > 3 || (xEnergy < 2 && yEnergy > 1)){
output = "L " + headings[heading];
return true;
}
}else if(dist<4){
output = "B " + headings[heading];
return true;
}else{
output = "M " + headings[heading];
return true;
}
return false;
}
boolean walk(){
log("Trying to random walk...");
int heading = rand.nextInt(8);
for(int i=0;i<8;i++,heading=(heading+1)%8){
Point next = nextPosition(heading, yPosition);
if(!isOutside(next) && spotCollision(next)==null){
output = headings[heading];
return true;
}
}
return false;
}
boolean moveAwayFrom(Point from){
int heading;
if(from.equals(yPosition))
heading = rand.nextInt(8);
else
heading = (headingToPoint(from) + (rand.nextBoolean()?2:6)) % 8;
Point next = nextPosition(heading, yPosition);
for(int i=0;i<8;i++){
log("Checking move " + headings[heading] + " to " + next.x + "," + next.y);
if(!isOutside(next) && spotCollision(next)==null){
output = headings[heading];
return true;
}
heading = (heading + 1) % 8;
next = nextPosition(heading, yPosition);
}
return false;
}
}
```
[Answer]
## Spiral Bot Literate Haskell
In literate haskell, comments are default, so this entire post is the program.
This bot will shoot missiles in spirals around it, ignoring input. It stores state in a file (which hopefully isn't being posioned by the competer.)
```
> import System.Directory (doesFileExist, createDirectoryIfMissing, setCurrentDirectory)
> import Control.Monad (unless)
```
First we list the missile actions.
```
> missiles = map ("M "++) $ cycle ["N", "NE", "E", "SE", "S", "SW", "W", "NW"]
```
Next we go straight into the IO monad.
If "spiral.txt" doesn't exist, we write "0" to it. We also check for the directory.
```
> main = do
> createDirectoryIfMissing True "state"
> setCurrentDirectory "state"
> exists <- doesFileExist "spiral.txt"
> unless exists $ writeFile "spiral.txt" "0"
```
Then we read it and print the action.
```
> actPos <- fmap read $ readFile "spiral.txt" :: IO Int
> putStr $ missiles !! actPos
```
And finally we write to the file the now position.
```
> writeFile "spiral.txt" (show $ actPos + 1)
```
[Answer]
### DodgingTurret
**a Python Bot**
Here's another attempt. Since ReadyAimShoot is in the repair shop for a while :) I figured I'll try something else in the meantime, using Python this time.
```
import sys
def Position(arena, element):
y = [i for i,j in enumerate(arena) if element in arena[i]][0]
x = arena[y].index(element)
return (x,y)
def Direction(coord1, coord2):
d0 = coord1[0]-coord2[0]
d1 = coord1[1]-coord2[1]
if d1!=0:
a = ['N','S'][d1<0]
else: a = ""
if d0!=0:
b = ['W','E'][d0<0]
else: b = ""
return a+b
def GetPath(coord, direction):
if direction=='N': path = [(coord[0],coord[1]-i) for i in xrange(3)]
if direction=='S': path = [(coord[0],coord[1]+i) for i in xrange(3)]
if direction=='E': path = [(coord[0]+i,coord[1]) for i in xrange(3)]
if direction=='W': path = [(coord[0]-i,coord[1]) for i in xrange(3)]
if direction=='NE': path = [(coord[0]+i,coord[1]-i) for i in xrange(3)]
if direction=='NW': path = [(coord[0]-i,coord[1]-i) for i in xrange(3)]
if direction=='SE': path = [(coord[0]+i,coord[1]+i) for i in xrange(3)]
if direction=='SW': path = [(coord[0]-i,coord[1]+i) for i in xrange(3)]
return path
def Danger(coord, stuff):
if len(stuff):
s = [i.split(" ") for i in stuff]
for i in s:
if i[0] in ['M','B']:
path = GetPath((int(i[1]),int(i[2])),i[3])
if coord in path:
return ['unsafe',path]
return ['safe',()]
else:
return ['safe',()]
input = sys.argv[1].splitlines()
arena = input[0:10]
stuff = input[12:]
me = Position(arena, "Y")
center = Direction(me, (5,5))
if center != "":
action = center
else:
d = Danger(me,stuff)
if d[0]=='safe':
other = Position(arena,"X")
target = Direction(me, other)
action = 'M '+target
if d[0]=='unsafe':
escape = [(me[0]+i,me[1]) for i in range(-1,2,2)]+[(me[0],me[1]+i) for i in range(-1,2,2)]+[(5+me[0],5+me[1]) for i in range(-1,2,2)]
esc_choice = [i for i in escape if i not in d[1]][0]
action = Direction(me,esc_choice)
sys.stdout.write(action)
```
I shamelessly stole the line `sys.argv[1].splitlines()` from @Gareth but at least this time that means I won't have a problem parsing the input.
This bot runs at the center at the start of the bout, then stays there and shoots missiles in the direction of the opponent. He also tries to dodge nearby bullets and missiles if it's on their path but then goes back to the center before starting shooting again.
[Answer]
# Straight shooter
This is another simple bot you can use for testing. If it has a direct line of sight to the opponent it shoots, otherwise it steps randomly.
```
import sys
try:
map = sys.argv[1][0:110].split()
except:
sys.exit(1)
# Locate us and the opponent.
#
for y in range(0,10):
for x in range(0, 10):
if 'Y' == map[y][x]:
me_y = y
me_x = x
elif 'X' == map[y][x]:
him_y = y
him_x = x
# If we're on a direct line with the opponent, fire a missile.
#
if me_y == him_y or me_x == him_x or abs(me_y - him_y) == abs(me_x - him_x):
if him_y < me_y and him_x < me_x:
sys.stdout.write('M NW')
elif him_y < me_y and him_x == me_x:
sys.stdout.write('M N')
elif him_y < me_y and him_x > me_x:
sys.stdout.write('M NE')
elif him_y == me_y and him_x < me_x:
sys.stdout.write('M W')
elif him_y == me_y and him_x > me_x:
sys.stdout.write('M E')
elif him_y > me_y and him_x < me_x:
sys.stdout.write('M SW')
elif him_y > me_y and him_x == me_x:
sys.stdout.write('M S')
elif him_y > me_y and him_x > me_x:
sys.stdout.write('M SE')
# Otherwise, move randomly.
#
else:
import random
sys.stdout.write(random.choice(['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW']))
```
[Answer]
# neo-bot
### coffeescript
Another JavaScript bot to add to the mix. This one targets Node.js and is written in CoffeeScript. The architecture follows from the Java crowd with a base class handling general bottiness and another file with specialization for the bot at hand.
The main strategy of this bot is to not get hit by your projectiles. If you aren't an immediate threat neo-bot will just start shooting.
The base file `shared.coffee`
```
# entry point
deserializeBoard = (board) ->
me = no
you = no
rows = board.split '\n'
all = for i in [0...rows.length]
row = rows[i]
me = row: i, col: row.indexOf 'Y' if /Y/.test row
you = row: i, col: row.indexOf 'X' if /X/.test row
row.split ''
throw new Error "missing player" unless me and you
all.me = me
all.you = you
all
deserializeState = (state) ->
board = deserializeBoard state[0...110]
rest = state[110...]
.split '\n'
.filter (d) -> d
if rest[0][0] is 'Y'
board.me.health = +rest[0][2...]
board.you.health = +rest[1][2...]
else
board.you.health = +rest[0][2...]
board.me.health = +rest[1][2...]
board.mines = []
board.projectiles = []
for weapon in rest[2...]
parts = weapon[2...].split ' '
if weapon[0] is 'L'
board.mines.push
row: +parts[1]
col: +parts[0]
else
board.projectiles.push
type: weapon[0]
row: +parts[1]
col: +parts[0]
dir: parts[2]
board
module.exports = bot = (handle) ->
state = process.argv[-1...][0]
board = deserializeState state
move = handle board
process.stdout.write move
```
And `neo-bot.coffee`, the bot code.
```
# i know kung fu
bot = require "./shared"
board_rows = [0...10]
board_cols = [0...10]
directions = [
'NW', 'N', 'NE'
'W', 'E'
'SW', 'S', 'SE'
]
direction = (a, b) ->
if a.row < b.row
if a.col < b.col
"SE"
else if a.col is b.col
"S"
else
"SW"
else if a.row is b.row
if a.col < b.col
"E"
else
"W"
else
if a.col < b.col
"NE"
else if a.col is b.col
"N"
else
"NW"
move = (me, dir) ->
row = me.row
col = me.col
if /N/.test dir
row--
if /S/.test dir
row++
if /W/.test dir
col--
if /E/.test dir
col++
{row, col}
clamp = (v) ->
Math.max 0, Math.min 9, v
legal = (pos) ->
clamp(pos.row) is pos.row and clamp(pos.col) is pos.col
randOf = (choices) ->
i = Math.floor Math.rand * choices.length
choices[i]
moves =
B: 3
M: 2
damage =
B: 1
M: 3
danger = (board) ->
n = ((0 for i in [0...10]) for j in [0...10])
for projectile in board.projectiles
next = projectile
for i in [0...moves[projectile.type]]
next = move next, projectile.dir
if projectile.type is 'M' and not legal next
for d in directions
schrapnel = move next, d
if legal schrapnel
n[schrapnel.row][schrapnel.col] += 1
continue unless legal next
n[next.row][next.col] += damage[projectile.type]
for mine in board.mines
n[mine.row][mine.col] += 2
n
warning = (board) ->
n = ((0 for i in [0...10]) for j in [0...10])
for dir in directions
p = board.you
p = move p, dir
continue unless legal p
n[p.row][p.col] = damage.M - 1 # relative damage
p = move p, dir
continue unless legal p
n[p.row][p.col] = damage.M
p = move p, dir
continue unless legal p
n[p.row][p.col] = damage.B
for mine in board.mines
for dir in directions
p = move mine, dir
continue unless legal p
n[p.row][p.col] += 1
n
board_map = (map) ->
(a) ->
((map a[i][j] for j in board_cols) for i in board_rows)
board_pair = (join) ->
(a, b) ->
((join a[i][j], b[i][j] for j in board_cols) for i in board_rows)
boards =
sum: board_pair (a, b) -> a + b
scale: (n) -> board_map (a) -> a * n
chooseSafeDir = ({me, you}, lava) ->
dirs = []
min = +Infinity
for dir in directions
guess = move me, dir
continue unless legal guess
guess.dir = dir
guess.damage = lava[guess.row][guess.col]
min = guess.damage if guess.damage < min
dirs.push guess
dirs.sort (a, b) ->
if a.damage < b.damage
-1
else if b.damage < a.damage
1
else
0
choice = randOf dirs.filter (d) ->
d.damage < min + 1
choice = choice or dirs[0]
choice.dir
neo = (WARNING_FACTOR, MISSILE_FACTOR, MOVE_FACTOR) ->
WARNING_FACTOR ?= 0.8
MISSILE_FACTOR ?= 0.2
MOVE_FACTOR ?= 0.1
combine = (d, w) ->
boards.sum d, boards.scale(WARNING_FACTOR)(w)
shoot = ({me, you}) ->
weapon = if Math.random() < MISSILE_FACTOR then 'M' else 'B'
dir = direction me, you
"#{weapon} #{dir}"
(board) ->
lava = combine danger(board), warning(board)
if lava[board.me.row][board.me.col] or Math.random() < MOVE_FACTOR
chooseSafeDir board, lava
else
shoot board
bot neo()
```
I'd highly recommend compiling the coffee files to javascript before running; it's quite a bit faster. Basically you want to do this:
```
> coffee -c *.coffee
> ./bb "java EvilBot" "node ./neo-bot.js"
```
[Answer]
# CamperBot
This bot just stays where he is and shoots. I only implemented bullets, as the other weapons would harm the bot. Please forgive me my awful C-skills ;)
```
#include <stdio.h>
#include <time.h>
int main(int argc, char *argv[])
{
int direction = 0;
char directions[][3] = {"N", "NE", "E", "SE", "S", "SW", "W", "NW"};
srand(time(NULL));
direction = rand() % 8;
printf("B %s", directions[direction]);
return 0;
}
```
Not really expected to win much.
[Answer]
Since there are no entries yet I'll put one out there so you have something to beat up. I give to you:
# Mine! Mine! Mine!
```
import sys
import random
from itertools import product
def getMyPos(arena):
x=0
y=0
for idx, line in enumerate(arena):
if(line.find('Y')!= -1):
x=line.find('Y')
y=idx
return [x, y]
def isNearMine(pos, badstuff):
returnval=False
for badthing in badstuff:
thinglist=badthing.split(" ")
if(thinglist[0]=='L'):
returnval=returnval or isNear(pos, map(int, thinglist[1:3]))
return returnval
def isNear(pos1, pos2):
return ((abs(pos1[0]-pos2[0])<2) and (abs(pos1[1]-pos2[1])<2))
def newpos(mypos, move):
return [mypos[0]+move[0], mypos[1]+move[1]]
def inBounds(pos):
return pos[0]<10 and pos[0]>=0 and pos[1]<10 and pos[1]>=0
def randomSafeMove(arena, badstuff):
mypos=getMyPos(arena)
badsquares=[mypos] #don't want to stay still
for badthing in badstuff:
thinglist=badthing.split(" ")
if(thinglist[0]=='L'):
badsquares.append(map(int, thinglist[1:3]))
possiblemoves=list(product(range(-1, 2), repeat=2))
possiblemoves=[list(x) for x in possiblemoves]
safemoves=[x for x in possiblemoves if newpos(mypos, x) not in badsquares]
safemoves=[x for x in safemoves if inBounds(newpos(mypos, x))]
move=random.choice(safemoves)
return (("N S"[move[1]+1])+("W E"[move[0]+1])).strip()
def randomDropMine(arena):
mypos=getMyPos(arena)
badsquares=[mypos] #don't want to drop a mine under myself
possiblemoves=list(product(range(-1, 2), repeat=2))
possiblemoves=[list(x) for x in possiblemoves]
possiblemoves=[x for x in possiblemoves if newpos(mypos, x) not in badsquares]
possiblemoves=[x for x in possiblemoves if inBounds(newpos(mypos, x))]
move=random.choice(possiblemoves)
return "L "+(("N S"[move[1]+1])+("W E"[move[0]+1])).strip()
input=sys.argv[1].splitlines()
arena=input[0:10]
energy=input[10:12]
badstuff=input[12:]
if(isNearMine(getMyPos(arena), badstuff)):
sys.stdout.write(randomSafeMove(arena, badstuff))
else:
sys.stdout.write(randomDropMine(arena))
```
Doesn't do anything particularly clever. Drops a mine if there are none in any of the surrounding squares otherwise moves into one of the safe surrounding squares. Can only barely beat the HuggyBot.
Please excuse the naff Python coding.
[Answer]
# Random bot
This bot just makes a random action on each move. It doesn't fire the EMP and it doesn't look at the map at all. Half the time it's just firing into the wall!
```
#include <stdio.h>
#include <sys/time.h>
void main(int argc, char **argv)
{
char dirs[][3] = {"N", "NE", "E", "SE", "S", "SW", "W", "NW"};
struct timeval tv;
gettimeofday(&tv, NULL);
srand(tv.tv_usec);
int action = rand()%11;
int dir = rand()%7;
switch(action)
{
case 8:
printf("B %s", dirs[dir]);
break;
case 9:
printf("M %s", dirs[dir]);
break;
case 10:
printf("L %s", dirs[dir]);
break;
default:
printf(dirs[action]);
break;
}
}
```
Test it (against itself) as below.
```
$ gcc random.c -o random
$ ./bb random
```
[Answer]
## Trouble and Strafe
Some Ruby representation in the fight. Moves up and down the randomly assigned wall firing missiles at the opposite wall. Slightly glitchy at the top and bottom.
```
def getInput()
inputlines=ARGV[0].split(/\n/)
return [inputlines[0, 10], inputlines[10, 2], inputlines[12..-1]]
end
def getMyPos(arena)
pos=[]
arena.each_with_index{|str, index| pos=[str.index('Y'), index] if(!str.index('Y').nil?)}
return pos
end
def parseProjectiles(projectiles)
projectiles.map!{|prj| prj.split(' ')}
missiles=projectiles.select{|prj| prj[0]=='M'}
bullets=projectiles.select{|prj| prj[0]=='B'}
landmines=projectiles.select{|prj| prj[0]=='L'}
return [missiles, bullets, landmines]
end
def haveFired?(ypos, direction, projectiles)
return projectiles.select{|prj| prj[2]==ypos.to_s && prj[3]==direction}.size>0
end
arena, botenergy, projectiles=getInput()
missiles, bullets, landmines=parseProjectiles(projectiles)
myposX=getMyPos(arena)[0]
myposY=getMyPos(arena)[1]
direction="WE"[myposX!=0 ? 0 : 1]
if haveFired?(myposY, direction, missiles)
if myposY==0
print "S"
elsif myposY==9
print "N"
else
if haveFired?(myposY-1, direction, missiles)
print "S"
elsif haveFired?(myposY+1, direction, missiles)
print "N"
else
if(Random.rand(2)==0)
print "N"
else
print "S"
end
end
end
else
print "M "+direction
end
```
[Answer]
# A JavaScript core
I thought I'd be kind and give you my core JS bot. It's got all the functions necessary for making a bot, all you need is some actions to do based on the data that this gives you. Not finished yet, as I can't really test it (can't get the arena code to compile).
Feel free to use this, I'm looking forward to seeing some JS bots in the mix.
**To Do:**
* Add functions to calculate weapon locations
```
var stdi = WScript.StdIn;
var stdo = WScript.StdOut;
function botLog(toLog){
var fso = new ActiveXObject("Scripting.FileSystemObject");
var fh = fso.CreateTextFile("./botLog.txt", 8, true);
fh.WriteLine(toLog);
fh.Close();
}
var directions = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];
// READ ARGUMENTS AND CREATE THE ARENA
var arena = {};
arena.map = WScript.Arguments.Item(0); // Get the arena from arguments
arena.rows = arena.map.split('\\n');
arena.find = function(toFind){ //Find a character in the arena.
for(var i = 0; i < 10; i++){
if(arena.rows[i].indexOf(toFind) !== -1){
return [arena.rows[i].search(toFind), i];
}
}
};
arena.findAtPos = function(x, y){
return arena.rows[y].charAt(x);
};
me = {};
me.pos = arena.find('Y');
me.x = me.pos[0];
me.y = me.pos[1];
me.energy = parseInt(arena.rows[10].replace("Y ", ""));
me.nearby = {
N : arena.findAtPos(me.x, me.y - 1),
NE : arena.findAtPos(me.x + 1, me.y - 1),
E : arena.findAtPos(me.x + 1, me.y),
SE : arena.findAtPos(me.x + 1, me.y + 1),
S : arena.findAtPos(me.x, me.y + 1),
SW : arena.findAtPos(me.x - 1, me.y + 1),
W : arena.findAtPos(me.x - 1, me.y),
NW : arena.findAtPos(me.x -1, me.y - 1),
contains : function(checkFor){
for(var j = 0; j < 8; j++){
if(me.nearby[j] === checkFor){
return true;
}
}
}
}
foe = {};
foe.pos = arena.find('X');
foe.x = foe.pos[0];
foe.y = foe.pos[1];
foe.energy = parseInt(arena.rows[11].replace("X ", ""));
```
**Please note** that some things here may have to be modified for other OS (this works only on Windows). Rhino version here: <http://pastebin.com/FHvmHCB8>
[Answer]
# Centre-Bot
**A JavaScript Bot**
This bot aims to get into the middle of the arena, before it shoots bullets or missiles at it's target each turn depending on how close it is. If the enemy is in the middle, it'll just keep shooting bullets in the vague direction.
I don't expect it to do very well, but it's more of a testing one, and I'm interested to see how well it really does.
```
var arena = {};
var sys = require("sys");
var fs = require("fs");
arena.map = process.argv[2];
arena.rows = arena.map.split('\n');
arena.find = function(toFind){
for(var i = 0; i < 10; i++){
if(arena.rows[i].indexOf(toFind) !== -1){
return [arena.rows[i].search(toFind), i];
}
}
};
arena.findAtPos = function(x, y){
return arena.rows[y].charAt(x);
};
me = {};
me.pos = arena.find('Y');
me.x = me.pos[0];
me.y = me.pos[1];
me.energy = parseInt(arena.rows[10].replace("Y ", ""));
foe = {};
foe.pos = arena.find('X');
foe.x = foe.pos[0];
foe.y = foe.pos[1];
foe.energy = parseInt(arena.rows[11].replace("X ", ""));
function findFoe(){
if(me.x < foe.x){
if(me.y < foe.y){
foe.direction = 'SE';
}
else if(me. y === foe.y){
foe.direction = 'E';
}
else{
foe.direction = 'NE';
}
}
if(me.x === foe.x){
if(me.y < foe.y){
foe.direction = 'S';
}
else{
foe.direction = 'N';
}
}
if(me.x > foe.x){
if(me.y < foe.y){
foe.direction = 'SW';
}
else if(me. y === foe.y){
foe.direction = 'W';
}
else{
foe.direction = 'NW'
}
}
}
function findCentre(){
if(me.x < 5){
if(me.y < 5){
centreDirection = 'SE';
}
else if(me.y === 5){
centreDirection = 'E';
}
else{
centreDirection = 'NE'
}
}
if(me.x === 5){
if(me.y < 5){
centreDirection = 'S';
}
else{
centreDirection = 'N'
}
}
if(me.x > 5){
if(me.y < 5){
centreDirection = 'SW';
}
else if(me. y === 5){
centreDirection = 'W';
}
else{
centreDirection = 'NW'
}
}
}
findCentre();
findFoe();
if(me.x !== 5 && me.y !== 5){
process.stdout.write(centreDirection);
}else{
if(foe.x >= me.x + 2 || foe.x <= me.x - 2 || foe.y >= me.y + 2 || foe.y <= me.y - 2){
process.stdout.write('M ' + foe.direction);
}else process.stdout.write('B ' + foe.direction);
}
```
save as .js file and execute with `node centrebot.js`. This will work with Node.js, but you may have to modify it for another program, sorry!
**In my tests:**
* Thrashed ReadyAimShoot without a scratch.
* MOSTLY wins against DodgingTurret
* Won all with a few scratches from lucky landmines from Randombot
* Beat Straight shooter 9 times out of 9, but each bout was close, even though I won all of them.
Haven't tested any of the top java bots, and I'm not too confident either...
[Answer]
## CunningPlanBot (Python 3.3)
This is completely untested under the actual interface... It does work correctly with the maps at least!
It's written for Python 3.3
What it does:
If in Phase 1
- If at wall and direction moves into wall or moving into a landmine,
randomly change direction to a non wall or landmine direction
- Move in current direction
- Go to Phase 2
If in Phase 2
- Shoot bullet in closest direction to enemy
- Go to Phase 3
If in Phase 3
- If no land mine, drop land mine
- Go to phase 1
Still needs to figure out whether to shoot a missile. Also I've got no clue whatsoever about whether the landmine avoiding stuff works. Needs more testing tomorrow evening.
```
#!/usr/bin/python
import sys
import os.path
import random
import math
def iround(x):
return int(round(x) - .5) + (x > 0)
currentphase = 0
currentdir = 0
#
# 4
# 5 3
# 6 DIR 2
# 7 1
# 0
if os.path.isfile('state/cpb'):
statein = open('state/cpb', 'r')
currentdir = int(statein.read(1))
currentphase = int(statein.read(1))
statein.close()
Landmines = []
#Loads the map bit. The bits we care about anyway.
line=sys.argv[1].splitlines()
for y in range(0, 10):
for x in range(0, 10):
if line[x][y] == "X":
hisloc = (x, y)
elif line[x][y] == "Y":
myloc = (x, y)
elif line[x][y] == "L":
Landmines.append((x,y))
#print(myloc[0])
#print(myloc[1])
newdir = False
if (currentphase == 0):
if (currentdir == 7) or (currentdir == 0) or (currentdir == 1) and (myloc[1] == 9):
newdir = True
if (currentdir == 5) or (currentdir == 4) or (currentdir == 3) and (myloc[1] == 0):
newdir = True
if (currentdir == 3) or (currentdir == 2) or (currentdir == 1) and (myloc[0] == 9):
newdir = True
if (currentdir == 5) or (currentdir == 6) or (currentdir == 7) and (myloc[0] == 0):
newdir = True
if newdir:
newdirs = []
#Test 0
if (myloc[1] < 9) and not (myloc[0], myloc[1] + 1) in Landmines:
newdirs.append(0)
#Test 1
if (myloc[0] < 9) and (myloc[1] < 9) and not (myloc[0] + 1, myloc[1] + 1) in Landmines:
newdirs.append(1)
#Test 2
if (myloc[0] < 9) and not (myloc[0] + 1, myloc[1]) in Landmines:
newdirs.append(2)
#Test 3
if (myloc[0] < 9) and (myloc[1] > 0) and not (myloc[0] + 1, myloc[1] - 1) in Landmines:
newdirs.append(3)
#Test 4
if (myloc[1] > 0) and not (myloc[0], myloc[1] - 1) in Landmines:
newdirs.append(4)
#Test 5
if (myloc[0] > 0) and (myloc[1] > 0) and not (myloc[0] - 1, myloc[1] - 1) in Landmines:
newdirs.append(5)
#Test 6
if (myloc[0] > 0) and not (myloc[0] - 1, myloc[1] ) in Landmines:
newdirs.append(6)
#Test 7
if (myloc[0] > 0) and (myloc[1] > 9) and not (myloc[0] - 1, myloc[1] + 1) in Landmines:
newdirs.append(7)
if len(newdirs) == 0:
if currendir == 0: currentdir = 4
elif currendir == 1: currentdir = 5
elif currendir == 2: currentdir = 6
elif currendir == 3: currentdir = 7
elif currendir == 4: currentdir = 0
elif currendir == 5: currentdir = 1
elif currendir == 6: currentdir = 2
elif currendir == 7: currentdir = 3
else:
currentdir = random.SystemRandom().choice(newdirs)
if currentdir == 0: print ("S", end="")
elif currentdir == 1: print ("SE", end="")
elif currentdir == 2: print ("E", end="")
elif currentdir == 3: print ("NE", end="")
elif currentdir == 4: print ("N", end="")
elif currentdir == 5: print ("NW", end="")
elif currentdir == 6: print ("W", end="")
elif currentdir == 7: print ("SW", end="")
elif (currentphase == 1):
dx = (myloc[0] - hisloc[0])
dy = (myloc[1] - hisloc[1])
distance = math.pow(dx*dx+dy*dy, 0.5)
angle = int(iround(math.degrees(math.atan2(dx, -dy)) / 45) ) % 8
if angle == 5: print ("B S", end="")
elif angle == 1: print ("B SE", end="")
elif angle == 2: print ("B E", end="")
elif angle == 3: print ("B NE", end="")
elif angle == 4: print ("B N", end="")
elif angle == 5: print ("B NW", end="")
elif angle == 6: print ("B W", end="")
elif angle == 7: print ("B SW", end="")
elif (currentphase == 2):
if not (myloc in Landmines): print ("L", end="")
currentphase = (currentphase + 1) % 3
stateout = open ('state/cpb', 'w')
stateout.write(str(currentdir))
stateout.write(str(currentphase))
stateout.close()
```
[Answer]
# UltraBot
A Java bot that calculates the danger for each surrounding field. If a surrounding field is less dangerous than the current one, the bot moves there (or another, equally dangerous field). If there is no less dangerous field, the bot shoots (missiles if enemy bot is far away, bullets if enemy bot is close). I took some code from the BattleBot (thanks!).
```
import java.awt.Point;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Random;
public class UltraBot {
private static final int arenaSize = 10;
private static ArrayList<Weapon> weapons = new ArrayList<Weapon>();
private static Bot me;
private static Bot enemy;
public static void main(String args[]) {
Direction suggestedMove;
readInput(args[0]);
suggestedMove = suggestedMove();
if (suggestedMove != Direction.STAY) {
System.out.print(suggestedMove.name());
return;
}
System.out.print(shootCmd());
}
public static void readInput(String args) {
String[] lines = args.split("\\r?\\n");
for(int i=0;i<lines.length;i++){
String line = lines[i];
if(i<arenaSize){
if(line.contains("X"))
enemy = new Bot(new Field(line.indexOf("X"),i));
if(line.contains("Y"))
me = new Bot(new Field(line.indexOf("Y"),i));
} else {
String[] tokens = line.split(" ");
switch(tokens[0].charAt(0)){
case 'X':
enemy.setLife(Integer.parseInt(tokens[1]));
break;
case 'Y':
me.setLife(Integer.parseInt(tokens[1]));
break;
default:
weapons.add(new Weapon(tokens));
break;
}
}
}
}
public static Direction suggestedMove() {
Map<Direction, Integer> surrFields = new HashMap<Direction, Integer>();
Random rand = new Random();
//calculate danger for all surrounding fields
for(Direction direction : Direction.values()) {
Field currField = me.getPos().incPos(direction, 1);
surrFields.put(direction, currField.calcDanger(weapons, enemy));
}
int currDanger = surrFields.get(Direction.STAY);
Direction currDirection = Direction.STAY;
for (Entry<Direction, Integer> e : surrFields.entrySet()) {
//always move if better field found
if (e.getValue() < currDanger) {
currDanger = e.getValue();
currDirection = e.getKey();
}
//move sometimes if equal danger field found
else if(e.getValue() == currDanger && rand.nextInt(3) == 1) {
if (currDanger != 0 || rand.nextInt(15) == 1) {
currDanger = e.getValue();
currDirection = e.getKey();
}
}
}
return currDirection;
}
public static String shootCmd() {
WeaponType type = WeaponType.M;
if(me.getPos().isNear(enemy.getPos(), 3)) {
type = WeaponType.B;
}
return type.name() + " " + me.shootDirection(enemy);
}
}
class Bot {
private Field pos;
private int life;
public Bot(Field pos) {
this.pos = pos;
}
public void setLife(int life) {
this.life = life;
}
public Field getPos() {
return pos;
}
public int getLife() {
return life;
}
public String shootDirection(Bot other) {
Random rand = new Random();
Direction direction = Direction.S;
if (getPos().getX() >= other.getPos().getX() && getPos().getY() >= other.getPos().getY()) {
switch(rand.nextInt(5)) {
case 0: direction = Direction.N; break;
case 1: direction = Direction.W; break;
default: direction = Direction.NW; break;
}
}
else if (getPos().getX() <= other.getPos().getX() && getPos().getY() >= other.getPos().getY()) {
switch(rand.nextInt(3)) {
case 0: direction = Direction.N; break;
case 1: direction = Direction.E; break;
default: direction = Direction.NE; break;
}
}
if (getPos().getX() >= other.getPos().getX() && getPos().getY() <= other.getPos().getY()) {
switch(rand.nextInt(3)) {
case 0: direction = Direction.S; break;
case 1: direction = Direction.W;break;
default: direction = Direction.SW;break;
}
}
if (getPos().getX() <= other.getPos().getX() && getPos().y <= other.getPos().y) {
switch(rand.nextInt(3)) {
case 0: direction = Direction.S; break;
case 1: direction = Direction.E; break;
default: direction = Direction.SE; break;
}
}
return direction.name();
}
}
enum Direction {
N(0, -1), NE(1, -1), E(1, 0), SE(1, 1), S(0, 1), SW(-1, 1), W(-1, 0), NW(-1,-1), STAY(0,0);
public final int offsetX;
public final int offsetY;
Direction(int offsetX, int offsetY) {
this.offsetX = offsetX;
this.offsetY = offsetY;
}
}
enum WeaponType {
B(1, 3), M(3, 2), L(2, 0);
public final int dmg;
public final int speed;
WeaponType(int dmg, int speed) {
this.dmg = dmg;
this.speed = speed;
}
}
class Weapon {
private WeaponType type;
private Direction direction;
private Field pos;
public Weapon(String[] tokens) {
this.type = WeaponType.valueOf(tokens[0]);
this.pos = new Field(Integer.parseInt(tokens[1]), Integer.parseInt(tokens[2]));
if(type != WeaponType.L) {
this.direction = Direction.valueOf(tokens[3]);
}
}
public int getDanger(Field dest) {
if (dest.isOutside()) {
return 99;
}
if (type == WeaponType.L) {
return dest.equals(pos) ? type.dmg * 3 : 0; // stepped on landmine
}
for (int i = 1; i <= type.speed; i++) {
Field newPos = pos.incPos(direction, i);
if (dest.equals(newPos)) {
return type.dmg * 3; // direct hit with missile or bullet
}
}
return 0;
}
}
class Field extends Point{
public Field(int x, int y) {
super(x,y);
}
// as it tries to stay off walls and enemy, it doesn't need to calc splash dmg
public int calcDanger(ArrayList<Weapon> weapons, Bot enemy) {
int danger = 0;
// is near wall
if (this.getX() == 0 || this.getX() == 9)
danger++;
if (this.getY() == 0 || this.getY() == 9)
danger++;
for (Weapon weapon : weapons) {
danger += weapon.getDanger(this);
}
// near bot
if (this.isNear(enemy.getPos(), 2)) {
danger++;
}
return danger;
}
public Boolean isOutside() {
if (this.getX() > 9 || this.getY() > 9 || this.getX() < 0 || this.getY() < 0) {
return true;
}
return false;
}
public Boolean isNear(Field dest, int distance) {
int dx = (int)Math.abs(dest.getX() - this.getX());
int dy = (int)Math.abs(dest.getY() - this.getY());
if (dx <= distance || dy <= distance) {
return true;
}
return false;
}
public Field incPos(Direction direction, int step) {
return new Field((int)this.getX() + (direction.offsetX * step),
(int)this.getY() + (direction.offsetY * step));
}
}
```
This bot is extremely hard to hit, but not very good at shooting the enemy… I still expect it to be better than my previous CamperBot.
[Answer]
## NinjaPy
A last minute submission in python (untested but hopefully will work).
The idea is that it advances toward the opponent while staying in its blind spot. When it is close enough (3 cells away) it places itself in the diagonal of the opponent and shoots a missile.
```
import sys
def position(arena, element):
y = [i for i,j in enumerate(arena) if element in arena[i]][0]
x = arena[y].index(element)
return (x,y)
def distance(other):
dM = [[0 for x in range(10)] for y in range(10)]
for i in range(len(dM)):
for j in range(len(dM[0])):
dM[i][j] = max([abs(other[0]-i),abs(other[1]-j)])
return dM
def direction(coord1, coord2):
d0 = coord1[0]-coord2[0]
d1 = coord1[1]-coord2[1]
if d1!=0:
a = ['N','S'][d1<0]
else: a = ""
if d0!=0:
b = ['W','E'][d0<0]
else: b = ""
return a+b
def getPath(coord, aim, speed):
d = {'N': (0,-1), 'S':(0,1), 'E':(1,0), 'W':(-1,0), 'NW':(-1,-1), 'NE':(1,-1), 'SW':(-1,1), 'SE':(1,1)}
D = d[aim]
path = [(coord[0]+D[0]*i, coord[1]+D[1]*i) for i in range(speed+1)]
return path
def dangerMap(stuff,other):
dM = [[0 for x in range(10)] for y in range(10)]
surroundings = [(other[0]+i,other[1]+j) for i in range(-2,3) for j in range(-2,3)]
for i in range(len(dM)):
for j in range(len(dM[0])):
if i == other[0] : dM[i][j] = 1
if j == other[1] : dM[i][j] = 1
if (i,j) in [(other[0]+k, other[1]+k) for k in range(-10,11)]: dM[i][j] = 1
if (i,j) in [(other[0]-k, other[1]+k) for k in range(-10,11)]: dM[i][j] = 1
for j in surroundings:
dM[j[0]][j[1]] = 2
if len(stuff):
s = [i.split(" ") for i in stuff]
for i in s:
if i[0]=='L':
g = [(int(i[1]),int(i[2]))]
if i[0]=='M':
g = getPath((int(i[1]),int(i[2])),i[3],2)
if i[0]=='B':
g = getPath((int(i[1]),int(i[2])),i[3],3)
for j in g:
dM[j[0]][j[1]] = 2
return dM
input = sys.argv[1].splitlines()
arena = input[0:10]
stuff = input[12:]
me = position(arena, "Y")
other = position(arena,"X")
distOther = distance(other)
distMe = distance(me)
dangM = dangerMap(stuff,other)
if distOther[me[0]][me[1]] > 3:
surroundings = [(i,j) for i in range(10) for j in range(10) if distMe[i][j]==1]
choice = [k for k in surroundings if dangM[k[0]][k[1]] == 0]
if len(choice)==0: choice = [k for k in surroundings if dangM[k[0]][k[1]] == 1]
if len(choice)>1:
K = []
for i in choice: K += [distOther[i[0]][i[1]]]
choice = [choice[k] for k in range(len(choice)) if K[k] == min(K)]
action = direction(me,choice[0])
else:
diag = [(other[0]+i, other[1]+i) for i in [-2,2]]+[(other[0]-i, other[1]+i) for i in [-2,2]]
if me in diag:
action = 'M '+direction(me,other)
else:
distDiag = []
for i in diag:
distDiag += [distMe[i[0]][i[1]]]
choice = [diag[k] for k in range(len(diag)) if distDiag[k] == min(distDiag)]
action = direction(me,choice[0])
sys.stdout.write(action)
```
] |
[Question]
[
Trump needs the wall constructed and you are going to do it! To most efficiently build his wall I have created a simple, repeatable pattern for you to use:
```
__ __
| |_| |
___| |___
- - - -
- - - - - - -
- - - - - - - -
———————————————
```
Trump will tell you how many wall segments he needs and you will build them to look just like this.
Here is the pattern:
```
__ __ <-- 4-2-3-2-4 ' _ _ '
| |_| | <-- 3-1-2-1-1-1-2-1-3 ' | |_| | '
___| |___ <-- 3-1-7-1-3 '_| |_'
- - - - <-- 1-3-1-3-1-3-1-1 '- - - - '
- - - - - - - <-- 1-1-...-1-1 ' - -...- - '
- - - - - - - - <-- 1-1-...-1-1 '- - ... - -'
——————————————— <-- 15 Unicode U+2014
```
Input will always be an integer >0.
Test cases:
```
1
__ __
| |_| |
___| |___
- - - -
- - - - - - -
- - - - - - - -
———————————————
2
__ __ __ __
| |_| | | |_| |
___| |______| |___
- - - - - - - -
- - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -
——————————————————————————————
5
__ __ __ __ __ __ __ __ __ __
| |_| | | |_| | | |_| | | |_| | | |_| |
___| |______| |______| |______| |______| |___
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -
———————————————————————————————————————————————————————————————————————————
```
Since you need to do this fast, write the shortest program possible!
If it helps, I wrote the challenge first, title last ;)
[Answer]
# CJam, 52 bytes
```
F,ri*"s@;b6(MBZF,fu"128b6b"_
|-—"f=N/ff=zN*
```
Includes a bunch of unprintable ASCII characters. The hexdump of the first string literal pushed is:
```
01 73 06 40 3B 62 36 28 1E 4D 07 42 5A 14 1B 46 2C 66 75
```
[Try it here!](http://cjam.aditsu.net/#code=%22%01s%06%40%3Bb6(%1EM%07BZ%14%1BF%2Cfu%22128b6b%22_%20%0A%7C-%E2%80%94%22f%3DN%2FFf*Ff%3Crif*N*&input=5)
## Explanation
The above hexdump is interpreted as a base-128 number, then converted to base 6, to get this list:
```
[1 1 1 1 0 0 1 1 1 0 0 2
1 1 1 3 1 1 3 0 3 1 1 3 2
0 0 0 3 1 1 1 1 1 1 1 3 2
4 1 1 1 2
1 4 2
4 1 2
5]
```
To this, we apply the mapping `0 → _`, `1 → space`, `2 → \n`, `3 → |`, `4 → -`, `5 → —`. This gets us the string:
```
__ __
| |_| |
___| |
-
-
-
—
```
It consists of the "period" of each line; i.e. we can cycle the fifth line `" -"` to get `" - - - - - - - "`.
Then, we execute this subprogram:
```
N/ Split into lines.
Ff* Repeat each line 15 times (to cycle it).
Ff< Take the first 15 chars of each line.
rif* Repeat these chars input() times.
N* Join lines.
```
(The new version does this in a slightly different way that I actually can't wrap my head around myself very well, because it uses `ff=`.)
[Answer]
# JavaScript (ES6), ~~116~~ 115 bytes
```
n=>"__ __ n| |_| | n| |___n - n- n -n—".split`n`.map(l=>l.repeat(15).slice(-15).repeat(n)).join`
`
```
*Saved a byte thanks to [@Neil](https://codegolf.stackexchange.com/users/17602/neil)!*
## Explanation
Pretty much the same as [@Mauris' CJam method](https://codegolf.stackexchange.com/a/67463/46855), but without the character mapping.
The wall parts are in the format:
```
__ __
| |_| |
| |___
-
-
-
—
```
because if you repeat each line 15 times you get:
```
... __ __ __ __ __ __
... | |_| | | |_| | | |_| |
... | |___| |___| |___
- - - - - - - - - -
- - - - - - - - - - - - - - -
- - - - - - - - - - - - - - -
———————————————
```
and after slicing to just the last 15 characters you get:
```
__ __
| |_| |
___| |___
- - - -
- - - - - - -
- - - - - - - -
———————————————
```
### Ungolfed
```
n=>
// array of wall line parts
"__ __ n| |_| | n| |___n - n- n -n—".split`n`
.map(l=> // for each wall line
l.repeat(15) // repeat the line 15 times to create a complete wall line
.slice(-15) // each wall piece is only 15 characters long
.repeat(n) // repeat the wall n times
)
.join`
` // output the resulting wall
```
## Test
```
var solution = n=>"__ __ n| |_| | n| |___n - n- n -n—".split`n`.map(l=>l.repeat(15).slice(-15).repeat(n)).join`
`
```
```
<input type="number" oninput="result.textContent=solution(+this.value)" />
<pre id="result"></pre>
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 38 bytes
```
•4H’*»È%f·ù„áÅ'4•4B3ÝJ"_ -|"‡8ô€ûvy¹×»
```
[Try it online!](https://tio.run/nexus/05ab1e#AUIAvf//4oCiNEjigJkqwrvDiCVmwrfDueKAnsOhw4UnNOKAojRCM8OdSiJfIC18IuKAoTjDtOKCrMO7dnnCucOXwrv//zM "05AB1E – TIO Nexus")
```
•4H’*»È%f·ù„áÅ'4• # Push '1724427993555739020619095486300160'
4B # Convert to base 4 (turns it into an 8x8 bitmap).
3ÝJ"_ -|"‡ # Replace digits 0-3 with _, , -, or |.
8ô # Split into pieces of 8.
€û # Palindromize each piece.
vy¹×» # For each row, dupe it n times (hori) and print it.
```
***1724427993555739020619095486300160 converted to base-4:***
`11110011111311300003111121112111121212122121212100000000`
***11110011111311300003111121112111121212122121212100000000 with characters replaced:***
`__ | |____| - - - - - -- - - - ________`
***Previous pattern split into 8 pieces:***
```
__
| |_
___|
- -
- - - -
- - - -
________
```
***Then you palindromize, and make it as long as needed through repetition.***
[Answer]
# [Jolf](https://github.com/ConorOBrien-Foxx/Jolf/), 135 bytes
~~Considerable golfing can be done.~~ Turn off pretty print and clear the output for a better result. [Try it here!](http://conorobrien-foxx.github.io/Jolf/#code=b0hwQXRvUysqIiAtIjcnIG9uKyByUyIgLSIrKysrKysrKysrKysqIiAgICBfXyAgIF9fICAgICJqSCoiICAgfCAgfF98ICB8ICAgImpIKiJfX198ICAgICAgIHxfX18iakgqaiItICAgLSAgIC0gICAtICAiSCpTakgqbmpIKk0zNWon4oCU&input=MQoKMgoKMw). Also, use [this](http://conorobrien-foxx.github.io/Jolf/#code=b0hwQXRvUysqIiAtIjcnIG9uKyByUyIgLSIKb2pQIllPVVIgTlVNQkVSIEhFUkUhIgorKysrKysrKysrKysqIiAgICBfXyAgIF9fICAgICJqSCoiICAgfCAgfF98ICB8ICAgImpIKiJfX198ICAgICAgIHxfX18iakgqaiItICAgLSAgIC0gICAtICAiSCpTakgqbmpIKk0zNWon4oCU) to test an arbitrary number with more ease.
```
oHpAt++++++++++++*" __ __ "jH*" | |_| | "jH*"___| |___"jH*j"- - - - "H*+*" -"7' jH*"- - - - - - - -"jH*M35j'—
```
I will add an explanation later.
[Answer]
## Haskell, ~~116~~ ~~118~~ 108 bytes
```
h n=take(n*15).cycle
f n=unlines$h n.h 1<$>lines" __ __\n | |_| |\n___| |\n- \n -\n- \n—"
```
Usage example:
```
*Main> putStr $ f 3
__ __ __ __ __ __
| |_| | | |_| | | |_| |
___| |______| |______| |___
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -- - - - - - - -
—————————————————————————————————————————————
```
This uses the same strategy as other answers here: each line of the wall is one cycle of the pattern, e.g. "- " (dash + space) for the second last line. Repeat each pattern, take 15 chars to get one wall segment, repeat again and take `15*n` chars for `n` segments.
Edit: @Mauris found 10 bytes. Thanks!
[Answer]
# Bash + Linux utilities (~~247~~ ~~186~~ 180 bytes)
```
read x
for i in {1..7}
do
tail -n +7 $0|gzip -dc|sed -nr "$i s/(.*)/$(printf '\\1%.0s' $(seq 1 $x))/p"
done
exit
ˈ ELzVSPPPȏǑ
\@\Dk>ĄÚ ܋ɀÜ@r²uٞ5L! ͠
```
Since unprintable characters have been generously used in the construction of the above script, here's a hexdump:
```
00000000 72 65 61 64 20 78 0a 66 6f 72 20 69 20 69 6e 20 |read x.for i in |
00000010 7b 31 2e 2e 37 7d 0a 64 6f 0a 74 61 69 6c 20 2d |{1..7}.do.tail -|
00000020 6e 20 2b 37 20 24 30 7c 67 7a 69 70 20 2d 64 63 |n +7 $0|gzip -dc|
00000030 7c 73 65 64 20 2d 6e 72 20 22 24 69 20 73 2f 28 ||sed -nr "$i s/(|
00000040 2e 2a 29 2f 24 28 70 72 69 6e 74 66 20 27 5c 5c |.*)/$(printf '\\|
00000050 31 25 2e 30 73 27 20 24 28 73 65 71 20 31 20 24 |1%.0s' $(seq 1 $|
00000060 78 29 29 2f 70 22 0a 64 6f 6e 65 0a 65 78 69 74 |x))/p".done.exit|
00000070 0a 1f 8b 08 00 45 4c 7a 56 02 03 53 50 50 50 88 |.....ELzV..SPPP.|
00000080 8f 87 11 0a 5c 40 5c 03 44 f1 35 60 5a 81 2b 3e |....\@\.D.5`Z.+>|
00000090 1e c4 04 83 1a 20 9b 4b 17 c8 40 c2 5c 40 02 19 |..... .K..@.\@..|
000000a0 72 a1 72 75 b9 1e 35 4c 21 1e 01 00 f3 30 f0 f9 |r.ru..5L!....0..|
000000b0 8d 00 00 00 |....|
000000b4
```
[Answer]
# PowerShell, ~~103~~ 100 characters (105 bytes on disk, 102 w/o BOM)
Pretty much the same as [@user81655 method](https://codegolf.stackexchange.com/a/67467/48455).
```
Param($c)' __ __n | |_| |n___| |n- n -n- n—'-split'n'|%{($_*15).Substring(0,15)*$c}
```
### Ungolfed version
```
# Assign input to variable,
Param($c)
# Split array of wall parts and send them down the pipeline
' __ __n | |_| |n___| |n- n -n- n—' -split 'n' |
ForEach-Object { # For each piece of wall
($_*15) # Repeat the line 15 times to create a complete wall line
.Substring(0,15) # Each wall piece is only 15 characters long
*$c # Repeat the wall n times
}
```
### Usage example
```
PS> .\TrumpWall.ps1 3
__ __ __ __ __ __
| |_| | | |_| | | |_| |
___| |______| |______| |___
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -- - - - - - - -
—————————————————————————————————————————————
```
[Answer]
# PHP 5.4, ( ~~182~~ 175 characters )
```
foreach([' __ __ ',' | |_| | ','___| |___','- - - - ', ' - - - - - - - ','- - - - - - - -','———————————————'] as$d)echo str_repeat($d,$argv[1])."\n";
```
Ungolfed Version
```
$s=[' __ __ ',
' | |_| | ',
'___| |___',
'- - - - ',
' - - - - - - - ',
'- - - - - - - -',
'———————————————'
];
foreach($s as $d) {
echo str_repeat($d,$argv[1])."\n";
}
```
[ 7 characters saved by follow Blackhole suggestion. ]
Another version with less bytes but more characters
# PHP 5.4, ( 176 characters, 178 bytes )
```
foreach([' __ __ ',' | |_| | ','___| |___','- - - - ',' - - - - - - - ','- - - - - - - -',str_repeat('—',15)] as$d)echo str_repeat($d,$argv[1])."\n";
```
Just replace 15 instances of m-dash with one dash with str\_repeat function
[Answer]
# C, 148 bytes
```
#define q 16843009
i;p[]={-1,q*17,q*68,q*16,-8388417,8577152,3936000};
f(n){for(i=n*105;i--;i%(15*n)||puts(""))putchar(" -|_"[p[i/15/n]>>i%15*2&3]);}
```
Score excludes the unnecessary newline before `f(n)` which is included for clarity.
the magic numbers in `p` encode the characters for the wall in base 4, which are reconstructed from the string `" -|_"` *0,1,2,3 respectively*
`16843009` in hex is `0x1010101`. this is used for the lines with `-` in them.
Because `_` is encoded by `3`, the bottom line can be encoded simply as `-1`, which is the number with all the bits set to `1`.
[Answer]
# [Vitsy](https://github.com/VTCAKAVSMoACE/Vitsy), 121 bytes
How I do this is by accessing each line one at a time input times, giving me stacks with the contents of each line. Then, I output a line at a time. If anyone wants me to give a more in-depth explanation, just ask (I'm currently opening presents, so...).
```
V0v7\[v1+v&V\[vDvm]a]y\[?Z]
" __ __ "
" | |_| | "
"___| |___"
4\["- "]Xr
6mXr" "
8\["- "]X
"—"e\D
```
[Try it online!](http://vitsy.tryitonline.net/#code=VjB2N1xbdjErdiZWXFt2RHZtXWFdeVxbP1pdCiIgICAgX18gICBfXyAgICAiCiIgICB8ICB8X3wgIHwgICAiCiJfX198ICAgICAgIHxfX18iCjRcWyItICAgIl1Ycgo2bVhyIiAiCjhcWyItICJdWAoi4oCUImVcRA&input=&args=NQ)
[Answer]
# PHP5.5, ~~182~~ ~~172 bytes~~ 168 bytes
based on @kuldeep.kamboj's answer, which is actually 212 bytes the moment I write this but 182 characters.
I wish the wall was a bit higher, then I could do some more optimisation ;-)
this one is 168 bytes, thanks to @JörgHülsermann
```
$r='str_repeat';$d=$r(' -',7);$x=' ';foreach(["$x __ __ $x","$x| |_| |$x","___|$x$x |___","-$x-$x-$x- ","$d ","-$d",$r('—',15)] as$z){echo$r($z,$argv[1])."
";}
```
This one is 172 bytes
```
$r='str_repeat';$d=$r(' -',7);$x=$r(' ',3);foreach(["$x __ __ $x","$x| |_| |$x","___|$x$x |___","-$x-$x-$x- ","$d ","-$d",$r('—',15)] as$z){echo$r($z,$argv[1])."
";}
```
This one is 182 bytes :-)
```
$r='str_repeat';$d=$r(' -',7);$x=$r(' ',4);foreach([$x.'__ __'.$x,' | |_| | ','___| |___','- - - - ',$d.' ','-'.$d,$r('—',15)] as$z){echo $r($z,$argv[1]).'
';}
```
ungolfed version
```
$r='str_repeat';
$d=$r(' -',7);
$x=$r(' ',3);
$s=["$x __ __ $x",
"$x| |_| |$x",
"___|$x$x |___",
"-$x-$x-$x- ",
"$d ",
"-$d",
$r('—',15)
];
foreach($s as $z) {
echo$r($z,$argv[1])."
";
}
```
[Answer]
## Python 3, 132 122 120 bytes
```
def f(n):[print((s*15*n)[:15*n])for s in[' __ __ ',' | |_| | ','___| |___','- ', ' -', '- ', '—']]
```
Ungolfed:
```
def f(n):
[print((s*15*n)[:15*n])for s in[' __ __ ',
' | |_| | ',
'___| |___',
'- ',
' -',
'- ',
'—']]
```
[Answer]
# Python 2, (161 characters, 191 bytes)
```
x=input();a=[' __ __ ',' | |_| | ','___| |___','- - - - ',' - - - - - - - ','- - - - - - - -','———————————————']
for i in a:print i*x
```
[Answer]
# Vim, 90 keys
Assuming the input is in a buffer by itself the following will do the job (newline only for readability)
```
"aDi __ __ ^M | |_| | ^M___| |___^M^[
4i- ^[xo-^[Y7P8JY2PxA ^[GVr^K-M^Vgg$d@aP
```
where `^M` is a `return`, `^[` is `escape`, `^K` is `ctrl+k` and `^V` is `ctrl+v`.
This can very likely be golfed down quite a bit, as there might be much better ways of generating the pattern.
[Answer]
# [SOGL V0.12](https://github.com/dzaima/SOGLOnline), 32 [bytes](https://github.com/dzaima/SOGL/blob/master/chartable.md)
```
→↔\ιδ»►℮⁰}▒║ΙOģΠp~⁵‘ ¾“ζ'¹*+'¹n*
```
[Try it Here!](https://dzaima.github.io/SOGLOnline/?code=JXUyMTkyJXUyMTk0JTVDJXUwM0I5JXUwM0I0JUJCJXUyNUJBJXUyMTJFJXUyMDcwJTdEJXUyNTkyJXUyNTUxJXUwMzk5TyV1MDEyMyV1MDNBMHAlN0UldTIwNzUldTIwMTglMjAlQkUldTIwMUMldTAzQjYlMjclQjkqKyUyNyVCOW4q,inputs=Mg__,v=0.12)
Explanation:
```
...‘ ¾“ζ'¹*+'¹n*
...‘ push a string of the top 6 lines of 1 wall piece (no newlines)
¾“ push 8212
ζ convert to char from unicode codepoint
'¹* repeat 15 times
+ add that to the previous compressed string
'¹n split into lines with length 15
* repeat horizontally input times
```
[Answer]
# Java 11, ~~236~~ ~~235~~ ~~231~~ 229 bytes
```
n->{String w[]={"","","","","","",""},t="- ".repeat(7);for(;n-->0;w[0]+="x __x__x ",w[1]+="x| |_| |x",w[2]+="___|xx |___",w[3]+="-x-x-x- ",w[4]+=" "+t,w[5]+=t+"-")w[6]+="_".repeat(15);return"".join("\n",w).replace("x"," ");}
```
[Try it online.](https://tio.run/##hVHBboMwDL3vKyyfEpWgdl3XA6J/sF52pCjKKN3oaKhCKEwt384cyLRJ0zTFQc57Nsl7PqqLEsf9@5CVqq7hSRX6egdQaJubg8py2LojwLM1hX6FjBEDmkcE9rQpaqtskcEWNMQwaLG5@to2SeMrYvAr@sDGJj/nyjIUgMGaR4fKsEgLsZlHbTJPZzF2IGVHQXybLEbkBnCT7tM57N5hUspb1xEspcOWDhPduGDsfHAI4MxSvqLczlAgb5NHyr/eQK2LFY9MbhujEcNjVWiGO039PKSiknxgSJciGYE86odokn5uXkqS7h24VMUeTmQgmwxIUlDcu/dR2/wUVo0Nz0TZUjMdZmzBRyP/5Jf/8GvuB/E9Bu@9l@ZPtTWBGymoU9Vo6x816QWdt76LuTR7UyaZ6tIf6ndzDOg3/r5@@AQ)
NOTE: Java 11 isn't on TIO yet, so `String.repeat(int)` has been emulated with `repeat(String,int)` (for the same byte-count).
**Explanation:**
```
n->{ // Method with integer parameter and String return-type
String w[]={"","","","","","",""},// Start with seven empty rows
t="- ".repeat(7); // Temp String to reduce bytes
for(;n-->0; // Loop `n` amount of times:
w[0]+="x __x__x ", // Append to the first row
w[1]+="x| |_| |x", // Append to the second row
w[2]+="___|xx |___", // Append to the third row
w[3]+="-x-x-x- ", // Append to the fourth row
w[4]+=" "+t, // Append to the fifth row
w[5]+=t+"-") // Append to the sixth row
w[6]+="_".repeat(15); // Append to the seventh row
return"".join("\n",w) // Join all rows by new-lines
.replace("x"," ");} // Then replace all "x" with three spaces,
// and return the result
```
[Answer]
# Powershell + file, 92 bytes
save powershell to `get-trumpwall.ps1` (40 bytes)
```
param($c);gc f|%{-join($_*15)[0..14]*$c}
```
save data file with name `f` and data contains Unicode symbol and Linux LF only (52 bytes):
```
__ __
| |_| |
___| |
-
-
-
—
```
hex dump:
```
0000000000: 20 20 20 20 5F 5F 20 20 │ 20 5F 5F 0A 20 20 20 7C __ __◙ |
0000000010: 20 20 7C 5F 7C 20 20 7C │ 0A 5F 5F 5F 7C 20 20 20 |_| |◙___|
0000000020: 20 20 20 20 7C 0A 2D 20 │ 20 20 0A 20 2D 0A 2D 20 |◙- ◙ -◙-
0000000030: 0A E2 80 94 │ ◙—››
```
## Usage example
```
PS> .\get-trumpwall.ps1 5
__ __ __ __ __ __ __ __ __ __
| |_| | | |_| | | |_| | | |_| | | |_| |
___| |______| |______| |______| |______| |___
- - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -- - - - - - - -
———————————————————————————————————————————————————————————————————————————
```
] |
[Question]
[
Write a program or function which will provably **print all integers exactly once** given infinite time and memory.
Possible outputs could be:
```
0, 1, -1, 2, -2, 3, -3, 4, -4, …
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1, -2, -3, -4, -5, -6, -7, -8, -9, 10, 11, …
```
This is not a valid output, as this would never enumerate negative numbers:
~~```
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, …
```~~
* The output must be in decimal, unless your language does not support decimal integer (in that case use the natural representation of integers your language uses).
* Your program has to work up to the numbers with the biggest magnitude of the standard integer type of your language.
* Each integer must be separated from the next using any separator (a space, a comma, a linebreak, etc.) that is not a digit nor the negative sign of your language.
* The separator must not change at any point.
* The separator can consist of multiple characters, as long as none of them is a digit nor the negative sign (e.g. `,` is as valid as just `,`).
* Any supported integer must eventually be printed after a finite amount of time.
### Scoring
This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so the shortest answer in bytes wins
### Leaderboard
```
var QUESTION_ID=93441,OVERRIDE_USER=41723;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+ANSWER_FILTER}function commentUrl(e,s){return"https://api.stackexchange.com/2.2/answers/"+s.join(";")+"/comments?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+COMMENT_FILTER}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.share_link.match(/\d+/);answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return e.owner.display_name}function process(){var e=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r="<h1>"+e.body.replace(OVERRIDE_REG,"")+"</h1>")});var a=r.match(SCORE_REG);a&&e.push({user:getAuthorName(s),size:+a[2],language:a[1],link:s.share_link})}),e.sort(function(e,s){var r=e.size,a=s.size;return r-a});var s={},r=1,a=null,n=1;e.forEach(function(e){e.size!=a&&(n=r),a=e.size,++r;var t=jQuery("#answer-template").html();t=t.replace("{{PLACE}}",n+".").replace("{{NAME}}",e.user).replace("{{LANGUAGE}}",e.language).replace("{{SIZE}}",e.size).replace("{{LINK}}",e.link),t=jQuery(t),jQuery("#answers").append(t);var o=e.language;/<a/.test(o)&&(o=jQuery(o).text()),s[o]=s[o]||{lang:e.language,user:e.user,size:e.size,link:e.link}});var t=[];for(var o in s)s.hasOwnProperty(o)&&t.push(s[o]);t.sort(function(e,s){return e.lang>s.lang?1:e.lang<s.lang?-1:0});for(var c=0;c<t.length;++c){var i=jQuery("#language-template").html(),o=t[c];i=i.replace("{{LANGUAGE}}",o.lang).replace("{{NAME}}",o.user).replace("{{SIZE}}",o.size).replace("{{LINK}}",o.link),i=jQuery(i),jQuery("#languages").append(i)}}var ANSWER_FILTER="!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe",COMMENT_FILTER="!)Q2B_A2kjfAiU78X(md6BoYk",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page;getAnswers();var SCORE_REG=/<h\d>\s*([^\n,]*[^\s,]),.*?(\d+)(?=[^\n\d<>]*(?:<(?:s>[^\n<>]*<\/s>|[^\n<>]+>)[^\n\d<>]*)*<\/h\d>)/,OVERRIDE_REG=/^Override\s*header:\s*/i;
```
```
body{text-align:left!important}#answer-list,#language-list{padding:10px;width:290px;float:left}table thead{font-weight:700}table td{padding:5px}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b"> <div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table>
```
[Answer]
## Haskell, 19 bytes
```
do n<-[1..];[1-n,n]
```
Produces the infinite list `[0,1,-1,2,-2,3,-3,4,-4,5,-5,6,-6,7,-7...`
Haskell allows infinite lists natively. Printing such a list will prints its elements one a time forever.
[Answer]
# Brainfuck, 6 bytes
This makes use of the cell wrapping and prints all possible values. In Brainfuck, the native integer representation is by [byte value](https://codegolf.meta.stackexchange.com/questions/4708/can-numeric-input-output-be-in-the-form-of-byte-values/4719#4719).
```
.+[.+]
```
[Try it online!](http://brainfuck.tryitonline.net/#code=LitbLitd&input=&args=&debug=on)
[Answer]
# [Cubix](https://github.com/ETHproductions/cubix), ~~14~~ 12 bytes
```
.(.\OSo;?.>~
```
[Test it online!](http://ethproductions.github.io/cubix/?code=LiguXE9Tbzs/Lj5+&input=&speed=20) You can now adjust the speed if you want it to run faster or slower.
### How it works
The first thing the interpreter does is remove all whitespace and pad the code with no-ops `.` until it fits perfectly on a cube. That means that the above code can also be written like this:
```
. (
. \
O S o ; ? . > ~
. . . . . . . .
. .
. .
```
Now the code is run. The IP (instruction pointer) starts out at the top left corner of the far left face, pointed east. Here's the paths it takes throughout the course of running the program:
[![enter image description here](https://i.stack.imgur.com/XcEPV.png)](https://i.stack.imgur.com/XcEPV.png)
The IP starts on the red trail at the far left of the image. It then runs `OSo;`, which does the following:
* `O` Print the TOS (top-of-stack) as an integer. At the beginning of the program, the stack contains infinite zeroes, so this prints `0`.
* `S` Push `32`, the char code for the space character.
* `o` Print the TOS as a character. This prints a space.
* `;` Pop the TOS. Removes the `32` from the stack.
Now the IP hits the `?`, which directs it left, right, or straight depending on the sign of the TOS. Right now, the TOS is `0`, so it goes straight. This is the blue path; `.` does nothing, and the IP hits the arrow `>`, which directs it east along the red path again. `~` takes the bitwise NOT of the TOS, changing it to `-1`.
Here the IP reaches the right edge of the net, which wraps it back around to the left; this again prints the TOS (this time `-1`) and a space.
Now the IP hits the `?` again. This time, the TOS is `-1`; since this is negative, the IP turns left, taking the green path. The mirror `\` deflects the IP to the `(`, which decrements the TOS, changing it to `-2`. It comes back around and hits the arrow; `~` takes bitwise NOT again, turning the `-2` to `1`.
Again the TOS is outputted and a space printed. This time when the IP hits the `?`, the TOS is `1`; since this is positive, the IP turns right, taking the yellow path. The first operator it encounters is `S`, pushing an extra `32`; the `;` pops it before it can cause any trouble.
Now the IP comes back around to the arrow and performs its routine, `~` changing the TOS to `-2` and `O` printing it. Since the TOS is negative again, the IP takes the green path once more. And it just keeps cycling like that forever\*: red, green, red, yellow, red, green, red, yellow..., printing in the following cycle:
```
0 -1 1 -2 2 -3 3 -4 4 -5 5 -6 6 -7 7 -8 8 -9 9 -10 10 ...
```
## TL;DR
This program repeatedly goes through these 3 easy steps:
1. Output the current number and a space.
2. If the current number is negative, decrement it by 1.
3. Take bitwise NOT of the current number.
### Non-separated version, 6 bytes
```
nO?~>~
```
Removing the separation simplifies the program so much that it can fit onto a unit cube:
```
n
O ? ~ >
~
```
\* **Note**: Neither program is truly infinite, as they only count up to 252 (where JavaScript starts to lose integer precision).
[Answer]
# [Sesos](https://github.com/DennisMitchell/sesos), ~~113~~ 3 bytes
```
0000000: c4ceb9 ...
```
[Try it online!](http://sesos.tryitonline.net/#code=c2V0IG51bW91dAoKam1wCiAgICBwdXQsICAgZndkIDEKICAgIHN1YiAxLCBwdXQKICAgIHJ3ZCAxLCBhZGQgMQ&input=) Check *Debug* to see the generated SBIN code.
### Sesos assembly
The binary file above has been generated by assembling the following SASM code.
```
set numout
jmp ; implicitly promoted to nop
put, fwd 1
sub 1, put
rwd 1, add 1
; jnz (implicit)
```
[Answer]
## Python 2, 27 bytes
```
n=0
while 1:print~n,n,;n+=1
```
Prints `-1 0 -2 1 -3 2 -4 3 ...`
[Answer]
# [MATL](http://github.com/lmendo/MATL), 8 bytes
```
0`@_@XDT
```
This uses MATL's default data type, which is `double`, so it works up to `2^53` in absolute value. The output is
```
0
-1
1
-2
2
···
```
[**Try it online!**](http://matl.tryitonline.net/#code=MGBAX0BYRFQ&input=)
### Explanation
```
0 % Push 0
` T % Do...while true: infinite loop
@_ % Push iteration index and negate
@ % Push iteration index
XD % Display the whole stack
```
[Answer]
# [Shakespeare Programming Language](http://shakespearelang.sourceforge.net/report/shakespeare/), 227 bytes
```
.
Ajax,.
Puck,.
Act I:
Scene I:
[Enter Ajax,Puck]
Puck:You ox!
Ajax:Be me without myself.Open thy heart.
Scene II:
Ajax:Be thyself and ash.Open thy heart.Be me times you.Open thy heart.Be me times you.Let us return to scene II.
```
Obviously, this answer is nowhere near winning, but I liked that this is a use case that the SPL is comparatively well suited to.
Explained:
```
// Everything before the first dot is the play's title, the parser treats it as a comment.
.
// Dramatis personae. Must be characters from Shakespeare's plays, again with a comment.
Ajax,.
Puck,.
// Acts and scenes serve as labels. Like the whole play, they can have titles too,
// but for the sake of golfing I didn't give them any.
Act I:
// This scene would've been named "You are nothing"
Scene I:
// Characters can talk to each other when on stage
[Enter Ajax,Puck]
// Characters can assign each other values by talking. Nice nouns = 1, ugly nouns = -1.
Puck: You ox! // Assignment: $ajax = -1;
Ajax: Be me without myself. // Arithmetic: $puck = $ajax - $ajax;
Open thy heart. // Standard output in numerical form: echo $puck;
// Working title "The circle of life"
Scene II:
// Poor Ajax always doing all the work for us
Ajax: Be thyself and ash. // $puck = $puck + (-1);
Open thy heart. // echo $puck;
Be me times you. // $puck *= $ajax; (remember $ajax==-1 from scene I)
Open thy heart. // echo $puck;
Be me times you. // negate again
Let us return to scene II. // infinite goto loop
```
As you can see when comparing this code to [my answer to the related challenge to count up forever](https://codegolf.stackexchange.com/questions/63834/count-up-forever/74426#74426) (i.e. print all natural numbers), SPL code length grows rather badly when problem size increases...
[Answer]
## GNU sed, 189 + 2(rn flags) = 191 bytes
This is most likely the longest solution, since sed has no integer type or arithmetic operations. As such, I had to emulate an **arbitrary size** increment operator using regular expressions only.
```
s/^/0/p
:
:i;s/9(@*)$/@\1/;ti
s/8(@*)$/9\1/
s/7(@*)$/8\1/
s/6(@*)$/7\1/
s/5(@*)$/6\1/
s/4(@*)$/5\1/
s/3(@*)$/4\1/
s/2(@*)$/3\1/
s/1(@*)$/2\1/
s/0(@*)$/1\1/
s/^@+/1&/;y/@/0/
s/^/-/p;s/-//p
t
```
**Run:**
```
echo | sed -rnf all_integers.sed
```
**Output:**
```
0
-1
1
-2
2
-3
3
etc.
```
[Answer]
# [05AB1E](http://github.com/Adriandmen/05AB1E), ~~9~~ 6 bytes
Saved 3 bytes thanks to [Adnan](https://codegolf.stackexchange.com/users/34388/adnan)
```
[ND,±,
```
[Try it online!](http://05ab1e.tryitonline.net/#code=W05ELMKxLA&input=)
Prints `0, -1, 1, -2, 2 ...` separated by newlines.
[Answer]
# Brainfuck, 127 bytes
```
+[-->+>+[<]>-]>-->+[[.<<<]>>-.>>+<[[-]>[->+<]++++++++[-<++++++>>-<]>--[++++++++++>->-<<[-<+<+>>]]>+>+<]<<<[.<<<]>>.+.>[>>>]<<<]
```
[Try it online!](http://brainfuck.tryitonline.net/#code=K1stLT4rPitbPF0-LV0-LS0-K1tbLjw8PF0-Pi0uPj4rPFtbLV0-Wy0-KzxdKysrKysrKytbLTwrKysrKys-Pi08XT4tLVsrKysrKysrKysrPi0-LTw8Wy08KzwrPj5dXT4rPis8XTw8PFsuPDw8XT4-LisuPls-Pj5dPDw8XQ)
Given an infinite tape would theoretically run forever.
```
0,1,-1,2,-2,3,-3,4,-4,5,-5,6,-6,7,-7,8,-8,9,-9,10,-10,11,-11,12,-12,13,-13,14,-14,15,-15,16,-16,17,-17,18,-18,19,-19,20,-20,21,-21,22,-22,23,-23,24,-24,25,-25,26,-26,27,-27,28,-28,29,-29,30,-30,31,-31,32,-32,33,-33,34,-34,35,-35,36,-36,37,-37,38,-38,39,-39,40,-40,41,-41,42,-42,43,-43,44,-44,45,-45,46,-46,47,-47,48,-48,49,-49,50,-50,51,-51,52,-52,53,-53,54,-54,55,-55,56,-56,57,-57,58,-58,59,-59,60,-60,61,-61,62,-62,63,-63,64,-64,65,-65,66,-66,67,-67,68,-68,69,-69,70,-70,71,-71,72,-72,73,-73,74,-74,75,-75,76,-76,77,-77,78,-78,79,-79,80,-80,81,-81,82,-82,83,-83,84,-84,85,-85,86,-86,87,-87,88,-88,89,-89,90,-90,91,-91,92,-92,93,-93,94,-94,95,-95,96,-96,97,-97,98,-98,99,-99,...
```
**Uncompressed**
```
+[-->+>+[<]>-]>-->+
[
[.<<<]>>-.>>+<
[[-]>[->+<]
++++++++[-<++++++>>-<]>--
[++++++++++>->-<<[-<+<+>>]]>+>+<
]<<<
[.<<<]>>.+.>
[>>>]<<<
]
```
[Answer]
# R, ~~25~~ 24 bytes
Golfed one byte thanks to @JDL.
```
repeat cat(-F,F<-F+1,'')
```
[Try it online!](https://tio.run/##K/r/vyi1IDWxRCE5sURD103HzUbXTdtQR11d8/9/AA "R – Try It Online")
Example output:
```
0 1 -1 2 -2 3 -3 4 -4 5 -5 6 -6 7 -7 8 -8 9 -9 10
```
[Answer]
# [ShadyAsFuck](https://esolangs.org/wiki/ShadyAsFuck), 3 bytes
```
FVd
```
Explanation:
```
F prints the current cell value (0) and increases it by 1
V starts a loop and prints the current value
d increases the current value and ends the loop
```
This makes use of the cell wrapping and prints all possible values. In SAF, the native integer representation is by [byte value](http://meta.codegolf.stackexchange.com/questions/4708/can-numeric-input-output-be-in-the-form-of-byte-values/4719#4719).
[Answer]
# [Poetic](https://mcaweb.matc.edu/winslojr/vicom128/final/index.html), 565 bytes
```
even as a child, i had a dream i was a person in the movies
it makes a lot of sense,i did think
o,a million people was an image in mind
i inspire folks to see a comedy
o-m-g,how i am funny
o,i mean i laugh,i cry,i scream,i am the funniest
i made a comedy i was pretty proud of
like a galaxy,i am given a star on a big California byway
i make a movie,i make a sequel to a film i edited
i had a vision i was a celeb;as in,an actor
i had a dream i had a legacy
i am asleep now
i quietly awaken
was it truth,or nothing but a fantasy world?o,a whole lot of doubts for me
```
[Try it online!](https://mcaweb.matc.edu/winslojr/vicom128/final/tio/index.html?XVFLdoQwDNtzCh@AOUEXXfQkhhjww4lpPkNz@qnNTNv3ugErcWRZojslwAII88YSRmDYMBgMmTAaOq/Lg3LRBJygbgRR70xl4AoRd/J70Qq6QKFUaGQIHKyR0z7oiBBZhO31QXoIPRmNK@JKzhg5hYGtKgdngkVlL1DVyMhlaaTQB73F2zpuepok07W0lOzQRkVyLhBs62Zwzt2@ZXb149Xqgr3dFFcbEzH80b72OzLV2u2nLdgag/DuPSsKfvUny8qXUVAqZlCvJl7hA4UXzYkN9hP7xX@9vSwaf2Ghz0biWyEsLG4sBa7kiz/9vnNxj34Mn0loerOS02gL4lw1D/@zeSKhFWcfbWdYhOiApKfhz8ZUpQOeJiINTmyR1dzqNmq2Jo9ohalVV4WpYulwapbw7rGdm1par2SDtqkWCyeb44/HhOEb)
Outputs the following forever:
`0,1,-1,2,-2,3,-3,4,-4,5,-5,6,-6,7,-7,8,-8,9,-9,10,-10,11,-11,`...
[Answer]
## Batch, 56 bytes
```
@set n=0
:l
@echo %n%
@set/an+=1
@echo -%n%
@goto l
```
Output:
```
0
-1
1
-2
2
-3
```
etc. Works up to 2147483647; 58 bytes if you want (-)2147483648 in the output:
```
@set n=0
:l
@echo %n:-=%
@set/an-=1
@echo %n%
@goto l
```
44 bytes if printing all supported positive integers, then all supported negative integers, then repeating endlessly, is acceptable:
```
@set n=0
:l
@echo %n%
@set/an+=1
@goto l
```
[Answer]
# Bash + GNU utilities, 26
```
seq NaN|sed '1i0
p;s/^/-/'
```
[Answer]
## bc, ~~17~~ 16 bytes
**Edit:** 1 byte less thanks to [Digital Trauma](/users/11259/digital-trauma).
Adding to the diversity of languages used so far, I present a bc solution that works with integers of **arbitrary size**. A newline is required after the code and it is counted in the bytes total.
```
for(;;){i;-++i}
```
In the first iteration `i` is not defined, but printing it gives 0 to my surprise.
[Answer]
# Java 7, ~~151~~ ~~134~~ ~~122~~ 118 bytes
```
import java.math.*;void c(){for(BigInteger i=BigInteger.ONE,y=i;;i=i.add(y))System.out.println(y.subtract(i)+"\n"+i);}
```
12 bytes saved thanks to *@flawr* (and *@xnor* indirectly)
# After rule change.. (~~59~~ ~~56~~ 63 bytes)
```
void c(){for(int i=0;i>1<<31;)System.out.println(~--i+"\n"+i);}
```
Since in Java `2147483647 + 1 = -2147483648`, we can't simply do `i++` and continue infinitely, since the challenge was to print all numbers once. With the above code with added range, it will instead print all integers from `-2147483648` to `2147483647` once each, in the following sequence: `0, -1, 1, -2, 2, -3, 3, -4, ..., 2147483646, -2147483647, 2147483647, -2147483648`. Thanks to *@OlivierGrégoire* for pointing out Java's behavior regarding `MIN_VALUE-1`/`MAX_VALUE+1`. [Try it here.](https://ideone.com/iz5mKG)
**Ungolfed & test code:**
[Try it here - resulting in runtime error](https://ideone.com/hDicLq)
```
import java.math.*;
class M{
static void c() {
for(BigInteger i = BigInteger.ONE, y = i; ; i = i.add(y)){
System.out.println(y.subtract(i) + "\n" + i);
}
}
public static void main(String[] a){
c();
}
}
```
**Output:**
```
0
1
-1
2
-2
3
-3
4
-4
5
-5
...
```
[Answer]
# Powershell, ~~20~~ ~~19~~ 18 bytes
Improved by stealing shamelessly from TimmyD's answer
```
0;for(){-++$i;$i}
```
Output:
```
0
-1
1
-2
2
-3
3
-4
4
```
Old version:
```
for(){-$i;$i++;$i}
```
Not sure why tbh, but -*undeclared variable* (or -$null) is evaluted as 0, which saved us 2 bytes in this version...
[Answer]
# [DC (GNU or OpenBSD flavour)](https://rosettacode.org/wiki/Category:Dc) - 16 bytes
This version is not shorter than the version below but should be able to run without the stack exploding in your PC. Nevertheless infinite large numbers will take up infinite amounts of memory... somewhen...
Because of the `r` command it needs [GNU-DC or OpenBSD-DC](https://rosettacode.org/wiki/Category:Dc).
```
0[rp1+45Pprdx]dx
```
Test:
```
$ dc -e '0[rp1+45Pprdx]dx' | head
0
-1
1
-2
2
-3
3
-4
4
-5
```
---
# [DC](https://rosettacode.org/wiki/Category:Dc) - 16 bytes
A little bit mean now. ;-)
This version is abusing the stack length as counter while letting the stack grow.
```
z[pz45Ppllx]dslx
```
Test:
```
$ dc -e 'z[pz45Ppllx]dslx' | head
0
-1
1
-2
2
-3
3
-4
4
-5
```
---
# [DC](https://rosettacode.org/wiki/Category:Dc) - 17 bytes
Without dirty tricks.
```
0[p1+45Ppllx]dslx
```
Test:
```
$ dc -e '0[p1+45Ppllx]dslx' | head
0
-1
1
-2
2
-3
3
-4
4
-5
```
[Answer]
# C# 74 bytes
```
class P{void Main(){for(var x=0m;;System.Console.Write(x+++","+-x+","));}}
```
---
```
class P
{
void Main()
{
for(var x = 0m; ; System.Console.Write(x++ + "," + -x + ","));
}
}
```
Output:
```
0,-1,1,-2,2,-3,3,-4,4,-5,5,-6,6,-7,7,-8,8,-9,9,-10,10,...
```
Try it:
[`dotnetfiddle.net`](https://dotnetfiddle.net/wwbWhi) (limited to 1000)
[Answer]
## [Labyrinth](http://github.com/mbuettner/labyrinth), 9 bytes
```
!`
\:"
(
```
[Try it online!](http://labyrinth.tryitonline.net/#code=IWAKXDoiCiAo&input=)
This also works and is essentially the same:
```
"
`:(
\!
```
### Explanation
The control flow in this code is rather funny. Remember that the instruction pointer (IP) in a Labyrinth program follows the path of non-space characters and examines the top of the stack at any junction to decide which path to take:
* If the top of the stack is positive, turn right.
* If the top of the stack is zero, keep moving straight ahead.
* If the top of the stack is negative, turn left.
When the IP hits a dead end, it turns around (executing the command at the end only once). And the IP starts in the top left corner moving east. Also note that the stack is implicitly filled with an infinite amount of zeros to begin with.
The program starts with this short bit:
```
! Print top of stack (0).
` Multiply by -1 (still 0).
: Duplicate.
```
Now the IP is at the relevant junction and moves straight ahead onto the `(` which decrements the top of the stack to `-1`. The IP hits a dead end and turns around. `:` duplicates the top of the stack once more. Now the top of the stack is negative and the IP turns left (west). We now execute one more iteration of the main loop:
```
\ Print linefeed.
! Print top of stack (-1).
` Multiply by -1 (1).
: Duplicate.
```
This time, the top of the stack is positive, so IP turns right (west) and immediately executes another iteration of the main loop, which prints the `1`. Then after it is negated again, we hit the `:` with `-1` on the stack.
This time the IP turns left (east). The `"` is just a no-op and the IP turns around in the dead end. `:` makes another copy and this time the IP turns south. `(` decrements the value to `-2`, the IP turns around again. With the top of the stack *still* negative, the IP now turns west on the `:` and does the next iteration of the main loop.
In this way, the IP will now iterate between a tight loop iteration, printing a positive number, and an iteration that goes through both dead ends to decrement the value before printing a negative number.
You might ask yourself why there's the `"` on the second line if it doesn't actually do anything: without it, when the IP reaches `:` on a negative value, it *can't* turn left (east) so it would turn right (west) instead (as a rule of thumb, if the usual direction at a junction isn't available, the IP will take the opposite direction). That means the IP would also never reach the `(` at the bottom and we couldn't distinguish positive from negative iterations.
[Answer]
# JavaScript (ES5), 32 31 30 29 bytes
```
for(i=0;;)[i++,-i].map(alert)
```
Prints `0 -1 1 -2 2 -3 3 -4 4 -5 5 ...`
Saved 1 byte thanks to Patrick Roberts!
Saved 2 bytes thanks to Conor O'Brien!
[Answer]
## JavaScript, ~~29~~ 26 bytes
### Non-infinite version, 26 bytes
*Saved 3 bytes thanks to ETHproductions*
```
for(n=1;;)alert([1-n,n++])
```
will display all integers between -9007199254740991 and 9007199254740992.
### Infinite version (ES6), ~~114~~ 112 bytes
*Saved 2 bytes thanks to ETHproductions*
```
for(n=[-1];1;alert(n[a||n.unshift(1),0]?(x=n.join``)+' -'+x:0))for(i=n.length,a=0;i--;a=(n[i]+=1-a)>9?n[i]=0:1);
```
will display all integers, given infinite time and memory.
[Answer]
# [Ruby](https://www.ruby-lang.org/), ~~26~~ ~~22~~ ~~19~~ ~~16~~ 15 bytes
Prints numbers separated by newlines. -3 bytes from @manatwork. -3 bytes from @m-chrzan. -1 bytes from @CGOneHanded via upgrading to Ruby 2.7+.
```
0.step{p~_1,_1}
```
[Attempt This Online! (with a 5 ms timeout)](https://ato.pxeger.com/run?1=m72kqDSpcsFN3aLUwtLMolQF9ZLM3NT80hJ1rhAIw8oKKqJhoGdgYGCqqZCSv7S0JE3XYr2BXnFJakF1QV28oU68YS1EdHFqXgqEtWABhAYA)
[Answer]
# Java, ~~65~~ 54 bytes
```
i->{for(;;)System.out.print(i+++" "+(-i<i?-i+" ":""));
```
# Ungolfed test code
```
public static void main(String[] args) {
Consumer<Integer> r = i -> {
for (;;) {
System.out.print(i++ + " " + (-i < i ? -i + " " : ""));
}
};
r.accept(0);
}
```
[Answer]
**C#, 83 bytes**
```
void f(){for(decimal n=0;;n++){Console.Write(n+",");if(n>0)Console.Write(-n+",");}}
```
Ungolfed:
```
void f()
{
for (decimal n=0;;n++)
{
Console.Write(n + ",");
if (n > 0) Console.Write(-n + ",");
}
}
```
Outputs:
```
0,1,-1,2,-2,3,-3,4,-4,5,-5,6,-6.......
```
[Answer]
# C# ~~86~~ 66 bytes
New answer:
```
void b(){for(var i=0;;i++)Console.Write(i==0?","+i:","+i+",-"+i);}
```
Clear:
```
void b()
{
for(var i=0;;i++)
Console.Write(i == 0 ? "," + i : "," + i + ",-" + i);
}
```
Old answer (86 bytes):
```
void a(){Console.Write(String.Join(",",Enumerable.Range(int.MinValue,int.MaxValue)));}
```
Ungolfed:
```
void a()
{
Console.Write(String.Join(",", Enumerable.Range(int.MinValue, int.MaxValue)));
}
```
[Answer]
# J, 25 bytes
```
([:$:1:`-`(1+-)@.*[echo)0
```
Works on [the online site](http://tryj.tk/), but I can't verify it on computer yet. Prints numbers like:
```
0
1
_1
2
_2
3
_3
4
```
etc.
[Answer]
# Vim, 19 keystrokes
```
i0<cr>1<esc>qqYpi-<esc>p<C-a>@qq@q
```
Creates a recursive macro that duplicates a number, makes it negative, prints the original number again and increments it.
[Answer]
# [><>](https://esolangs.org/wiki/Fish), ~~19~~ 15 bytes
```
1::1$-naonao1+!
```
This prints the following:
```
0
1
-1
2
-2
3
-3
```
... and so on. The separator is a newline.
Re-written after reading @xnor's answer to use a version of that algorithm. Starting at `n=1`, the program prints `1-n` and `n`, each followed by a newline, before incrementing `n`. After overflowing the maximum value the program will end with an error of `something smells fishy...`. Exactly when this will happen depends on the interpreter implementation.
---
Previous version:
```
0:nao0$-:10{0(?$~+!
```
Starting at 0, the program loops indefinitely. On each loop, the current value is printed along with a newline. It is then negated, and incremented if positive.
] |
[Question]
[
**Requirements:**
* Take an input on stdin including new lines / carriage returns of unlimited length (only bounded by system memory; that is, there is no inherent limit in the program.)
* Output the reverse of the input on stdout.
**Example:**
Input:
```
Quick brown fox
He jumped over the lazy dog
```
Output:
```
god yzal eht revo depmuj eH
xof nworb kciuQ
```
Shortest wins.
Leaderboard:
```
var QUESTION_ID=242,OVERRIDE_USER=61563;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+ANSWER_FILTER}function commentUrl(e,s){return"https://api.stackexchange.com/2.2/answers/"+s.join(";")+"/comments?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+COMMENT_FILTER}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.share_link.match(/\d+/);answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return e.owner.display_name}function process(){var e=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r="<h1>"+e.body.replace(OVERRIDE_REG,"")+"</h1>")});var a=r.match(SCORE_REG);a&&e.push({user:getAuthorName(s),size:+a[2],language:a[1],link:s.share_link})}),e.sort(function(e,s){var r=e.size,a=s.size;return r-a});var s={},r=1,a=null,n=1;e.forEach(function(e){e.size!=a&&(n=r),a=e.size,++r;var t=jQuery("#answer-template").html();t=t.replace("{{PLACE}}",n+".").replace("{{NAME}}",e.user).replace("{{LANGUAGE}}",e.language).replace("{{SIZE}}",e.size).replace("{{LINK}}",e.link),t=jQuery(t),jQuery("#answers").append(t);var o=e.language;/<a/.test(o)&&(o=jQuery(o).text()),s[o]=s[o]||{lang:e.language,user:e.user,size:e.size,link:e.link}});var t=[];for(var o in s)s.hasOwnProperty(o)&&t.push(s[o]);t.sort(function(e,s){return e.lang>s.lang?1:e.lang<s.lang?-1:0});for(var c=0;c<t.length;++c){var i=jQuery("#language-template").html(),o=t[c];i=i.replace("{{LANGUAGE}}",o.lang).replace("{{NAME}}",o.user).replace("{{SIZE}}",o.size).replace("{{LINK}}",o.link),i=jQuery(i),jQuery("#languages").append(i)}}var ANSWER_FILTER="!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe",COMMENT_FILTER="!)Q2B_A2kjfAiU78X(md6BoYk",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page;getAnswers();var SCORE_REG=/<h\d>\s*([^\n,]*[^\s,]),.*?(\d+)(?=[^\n\d<>]*(?:<(?:s>[^\n<>]*<\/s>|[^\n<>]+>)[^\n\d<>]*)*<\/h\d>)/,OVERRIDE_REG=/^Override\s*header:\s*/i;
```
```
body{text-align:left!important}#answer-list,#language-list{padding:10px;width:290px;float:left}table thead{font-weight:700}table td{padding:5px}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b"> <div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table>
```
[Answer]
## Bash - 7
```
tac|rev
```
`tac` reverses line order, while `rev` reverses character order.
[Answer]
## BrainFuck, 10 characters
```
,[>,]<[.<]
```
Beats a good amount of answers for such a simple language.
[Answer]
## Golfscript - 3 chars
```
-1%
```
obfuscated version is also 3 chars
```
0(%
```
[here](http://www.golfscript.com/golfscript/builtin.html#%) is an explanation of how [%](http://www.golfscript.com/golfscript/builtin.html#%) works
[Answer]
## C, 37 bytes
```
main(_){write(read(0,&_,1)&&main());}
```
[Answer]
# Haskell - 21
```
main=interact reverse
```
[Answer]
# [Pancake Stack](http://esolangs.org/wiki/Pancake_Stack), ~~342~~ 316 bytes
```
Put this nice pancake on top!
[]
Put this pancake on top!
How about a hotcake?
If the pancake is tasty, go over to "".
Put this delightful pancake on top!
[#]
Eat the pancake on top!
Eat the pancake on top!
Show me a pancake!
Eat the pancake on top!
If the pancake is tasty, go over to "#".
Eat all of the pancakes!
```
It assumes that the input is terminated by a null character (`^@` on commandline). Example run, using the [interpreter](http://ideone.com/7sFFo0):
```
Put this nice pancake on top!
[]
Put this pancake on top!
How about a hotcake?
If the pancake is tasty, go over to "".
Put this delightful pancake on top!
[#]
Eat the pancake on top!
Eat the pancake on top!
Show me a pancake!
Eat the pancake on top!
If the pancake is tasty, go over to "#".
Eat all of the pancakes!
~~~~~~~~~~~~~~~~~~~~~~~~
Hello, World!^@
!dlroW ,olleH
```
[Answer]
# Python, 41 40 bytes
```
import sys;print sys.stdin.read()[::-1]
```
41 -> 40 - removed semicolon at end of program.
Probably could be optimised!
[Answer]
## APL, 2
```
⊖⍞
```
Or CircleBar QuoteQuad if the characters don't come through, simply meaning: reverse keyboard character input.
[Answer]
## Perl - 23
```
print scalar reverse <>
```
[Answer]
# C - 47 characters
```
main(c){if(c=getchar(),c>=0)main(),putchar(c);}
```
Note that this uses O(n) stack space. [Try it online!](https://tio.run/##S9ZNT07@/z83MTNPI1mzOjNNI9k2PbUkOSOxSENTJ9nO1kATLKepU1AKEU3WtK79/x8A)
[Answer]
## Ruby - 19 characters
```
puts$<.read.reverse
```
[Answer]
### Windows PowerShell, 53 ~~54~~
```
-join($x=[char[]]($($input)-join'
'))[($x.count)..0]
```
**2011-01-30** (54) – First attempt
**2011-01-30** (53) – Inline line breaks are fun.
**2011-01-3-** (52) – Inlined variable assignments too.
[Answer]
# Binary Lambda Calculus - 9 bytes
```
16 46 80 17 3E F0 B7 B0 40
```
Source: <http://ioccc.org/2012/tromp/hint.html>
[Answer]
## Perl 5.1, 14
```
say~~reverse<>
```
[Answer]
## Befunge-93 - 11x2 (22 characters)
```
>~:0`v >:v
^ _$^,_@
```
Tested using [this interpreter](http://www.quirkster.com/iano/js/befunge.html).
[Answer]
## ><>, ~~16~~ 14 bytes
### -2 bytes by @JoKing
two years (!) later, removes the extra -1 from reading input by shifting around the logic for halting.
```
i:0(7$.
0=?;ol
```
[Try it online!](https://tio.run/##S8sszvj/P9PKQMNcRY/LwNbeOj/n///yxKKknFQurqzivJTsxOKsFAA)
Similar to the other ><> answer, this doesn't need to reverse the stack because of the way input is read in the first line. I'm actually not too sure whether or not this should be a suggestion for the other ><> answer, as it is quite different in appearance but similar in concept.
The main difference is that my answer compares the input to 0, and if it is less (i.e. there is no input -- `i` returns -1 if there is no input) it jumps to (1,7), if not, (0,7). If it jumps to the former, it pops the top value (-1) and starts a print loop. If it jumps to the latter, it continues the input loop.
# 11 bytes, exits with an error
### Courtesy of @JoKing
```
i:0(7$.
~o!
```
[Try it online!](https://tio.run/##S8sszvj/P9PKQMNcRY@rLl/x///yxKKknFQurqzivJTsxOKsFAA)
I believe this is valid now via meta consensus.
# Previous answer (14 bytes)
```
i:0(7$.
~ol0=?;!
```
[Answer]
# [Fission](http://esolangs.org/wiki/Fission), ~~16~~ ~~14~~ 12 bytes
```
DY$\
?
[Z~K!
```
## Explanation
Control flow starts at `D` with a down-going `(1,0)` atom. The `?` reads from STDIN, one character at a time, setting the mass to the read character code and the energy to `0`. Once we hit EOF, `?` will instead set the energy to `1`. The `[` redirects the atom onto a `Z` switch. As long as we're reading characters, the energy will be `0`, so the atom is deflected to the upwards by the `Z`. We clone the atom, looping one copy back into the `?` to keep reading input. We increment the other copy's energy to `1` with `$` and push it onto the stack `K`. So the input loop is this:
```
DY$\
?
[Z K
```
When the energy is `1` due to EOF, the `Z` will instead let the atom pass straight through and decrement the energy to `0` again. `~` decrements the energy further to `-1`. Atoms with negative energy *pop* from the stack, so we can retrieve the characters in opposite order and print them with `!`. Now note that the grid is toroidal, so the atom reappears on the left edge of the same row. Remember that we incremented the energy of the pushed atoms earlier with `$`, so the atoms now have energy `1` just like the last output from `?` and will again pass straight through the `Z`. The path after EOF is therefore
```
?
[Z~K!
```
This loop on the bottom row continues until the stack is empty. When that happens, the atom is reflected back from the `K` and its energy becomes positive (`+1`). The `~` decrements it once more (moving to the left), so that we now hit the `Z` with non-positive energy. This deflects the atom downward, such that it ends up in the wedge of `Y` where it's stored, and because there are no more moving atoms, the program terminates.
[Answer]
## [Stack Cats](https://github.com/mbuettner/stackcats), 7 bytes
```
<!]T[!>
```
[Try it online!](http://stackcats.tryitonline.net/#code=PCFdVFshPg&input=YWJjCmRlZgowMTI)
There's a bunch of alternatives for the same byte count, most of which are essentially equivalent in how they work:
### Explanation
A short Stack Cats primer:
* Every program has to have mirror symmetry, and by mirroring any piece of code we obtain new code which computes the inverse function. Therefore the last three characters of the program above undo the first three, if it wasn't for the command in the centre.
* The memory model is an infinite tape of stacks, which hold an implicit, infinite amount of zeros at the bottom. The initial stack has a `-1` on top of those zeros and then the input bytes on top of that (with the first byte at the very top and the last byte above the `-1`).
* For output, we simply take the final stack, discard a `-1` at the bottom if there is one, and then print all the values as bytes to STDOUT.
Now for the actual program:
```
< Move the tape head one stack left (onto an empty stack).
! Bitwise NOT of the implicit zero on top, giving -1.
] Move back to the original stack, taking the -1 with the tape head.
We're now back to the original situation, except that we have a -1
on top.
T Reverse the stack down to the -1 at the bottom. One of the reasons
we needed to move a -1 on top is that T only works when the top of
the stack is nonzero. Since the first byte of the input could have
been a null-byte we need the -1 to make sure this does anything at
all.
[ Push the -1 to the stack on the left.
! Bitwise NOT, turning it back into 0 (this is irrelevant).
> Move the tape head back onto the original stack.
```
Sp3000 set his brute force search to find all other 7-byte solutions, so here are some alternatives:
```
<]!T![>
>![T]!<
>[!T!]<
```
These three variants are essentially the same, except that they differ in when the bitwise NOT is computed and whether we use the empty stack on the left or on the right.
```
<]T!T[>
>[T!T]<
```
Like I said in the explanation above, `T` doesn't do anything when the top of the stack is zero. That means we can actually put the `!` in the middle instead. That means the first `T` is a no-op, then we turn the zero on top into a `-1` and *then* then second `T` performs the reversal. Of course, this means that the final memory state has a `-1` on the stack next to the original one, but that doesn't matter since only the stack at the current tape head position affects the output.
```
<*ITI*>
```
This variant uses `*` (XOR 1) instead of `!`, so that it turns the zero into `+1`, and the `I` is a conditional push which pushes positive values and right, negative values left, and negates them in either case (such that we still end up with a `-1` on top of the original stack when we encounter `T`), so this ultimately works the same as the original `<!]T[!>` solution.
[Answer]
# PHP - ~~38~~ 17 characters
```
<?=strrev(`cat`);
```
[Answer]
# [Fuzzy Octo Guacamole](https://github.com/RikerW/Fuzzy-Octo-Guacamole), 2 bytes
(non-competing, FOG is newer than the challenge)
```
^z
```
`^` gets input, `z` reverses, and implicit output.
[Answer]
# [Hexagony](https://github.com/m-ender/hexagony), 16 bytes
```
\{\{:}($.,.=;)$\
```
[Try it online!](https://tio.run/##y0itSEzPz6v8/z@mOqbaqlZDRU9Hz9ZaUyXm/3/FlJyi/HCF/JycVA8A "Hexagony – Try It Online")
Expanded: (Made with [Hexagony Colorer](https://github.com/Timwi/HexagonyColorer))
[![Reverse Cat in Hexagony](https://i.stack.imgur.com/R9eRu.png)](https://i.stack.imgur.com/R9eRu.png)
Explanation:
* Blue path moves IP to the red path
* Red path moves "forward" in memory, reads a byte from STDIN, and increments it by 1, then checks if it's positive. The increment is so that the check will pass for all values including null bytes, and only fail for EOF (which Hexagony reads as negative 1)
* Orange path is reached when the check fails, it reverses memory and then puts the IP on the green path
* Green path goes back through the memory, attempting to divide 0 by each byte in memory. If the byte is empty, the end of the string has been reached, and the program crashes attempting to divide by zero. Otherwise it decrements the byte by 1 (to undo the increment from before) and prints it as a character.
Alternative 21 byte solutions that properly terminate instead of crashing:
`\{}\(//,;./')"<$|/$/@`
and
`},)<>'"<{\@..(_$.>.$;`
[Answer]
## PHP, ~~82~~ ~~29~~ ~~24~~ ~~29~~ 28 characters
```
<?=strrev(fread(STDIN,2e9));
```
82 -> 29: The new line character is preserved when reversed with `strrev`.
29 -> 24: Uses the shortcut syntax now
24 -> 29: Now reads all lines instead of a single line
[Answer]
## Befunge-98 - ~~11~~ 10
```
#v~
:<,_@#
```
(Tested with cfunge)
The variant below breaks the requirement slightly: it performs the task but outputs an infinite stream of null bytes afterwards (and doesn't terminate).
```
~#,
```
The way it works is that it repeatedly reads input to the stack (`~`) one character at a time, jumping over (`#`) the comma. When EOF is reached, `~` acts as a reflector and the PC flips over, repeatedly popping and outputting a character (`,`) while jumping over (`#`) the tilde.
[Answer]
# Pyth - 3 ~~5~~ 4 bytes
So, the original 3-char version didn't reverse the line order, just the lines. I then came up with this 5-char version:
```
_jb.z
```
I saved 1 byte thanks to @FryAmTheEggman to result it:
```
_j.z
```
[Live demo.](https://pyth.herokuapp.com/?code=_j.z&input=Quick+brown+fox%0AHe+jumped+over+the+lazy+dog&debug=1)
## Explanation:
```
.w read all the input into a list of strings
j join (j) by using a newline character
_ reverse the result
Pyth implicitly prints the result on an expression
```
# Original (incorrect) solution:
This technically doesn't count because Pyth was created in 2014, but it's still neat that it's tied with GolfScript.
```
#_w
```
## Explanation:
```
# loop while no errors
w read a line of input (throws an error on end-of-file or Control-C)
_ reverse the input line
Pyth implicitly prints the result on an expression
```
[Answer]
# [Cubix](https://github.com/ETHproductions/cubix/), ~~9~~ 8 bytes
Many thanks to Martin Ender for this golf:
```
w;o@i.?\
```
[**See it work online!**](http://ethproductions.github.io/cubix/?code=dztvQGkuP1w=&input=T09QIDop&speed=1)
This becomes the following cube (`>` indicates initial instruction pointer):
```
w ;
o @
> i . ? \ . . . .
. . . . . . . .
. .
. .
```
The first step of the program is to take all input. `i` puts 1 byte of input onto the stack. Unless the input is finished, `?` makes the IP turn right, wrapping around the cube until it reaches `w`, which sends it back to `i`.
When input finishes, the `?` makes the IP head north, entering the output loop:
* `o`: print the character at the top of the stack
* `w`: 'sidestep' the pointer to the right
* `;`: pop the character that was just printed
* `\`: reflect the IP, sending it East
* `?`: if there are chars left to print, turn right, back into the loop.
The final time `?` is hit, when nothing is left on the stack, the IP continues forward instead:
* `i`: take a byte of input. This will be `-1` as input has finished.
* `\`: reflect the IP, sending it North, into:
* `@`: terminate the program.
---
# 9 byte solution
```
..o;i?@!/
```
[**See it work online!**](http://ethproductions.github.io/cubix/?code=Li5vO2k/QCEv&input=T09QIDop&speed=20)
In cube form:
```
. .
o ;
> i ? @ ! / . . .
. . . . . . . .
. .
. .
```
The first character encoutered is `i`, which takes a charcode of input. If there is no input left, this is `-1`.
The next character is `?` - a decision. If the top of stack is positive, it turns right, wrapping around the cube until it hits `/` which sends it back to the `i`, creating an input loop. However, if the TOS is negative, input has finished, and so it turns left into the output loop.
The output loop is simple. `o;` outputs and pops the TOS. The first time this is run, `-1` is the top of stack, but does not map to a character and is therefore ignored. `/` reflects the IP to move left, where it encounters `!@` - which terminates the program if the stack is empty. Otherwise, the IP continues, hitting `?` again - because the stack is not empty, the TOS must be a charcode, all of which are positive1, so this makes the IP turn right and continue the output loop.
---
*1 Both solutions assume that the input will not contain null bytes.*
[Answer]
## [Wumpus](https://github.com/m-ender/wumpus), 12 bytes
```
i=)!4*0.l&o@
```
[Try it online!](https://tio.run/##Ky/NLSgt/v8/01ZT0UTLQC9HLd/h///A0szkbIWkovzyPIW0/Aouj1SFLKDC1BSF/LLUIoWSjFSFnMSqSoWU/HQA "Wumpus – Try It Online")
---
[Martin's answer](https://codegolf.stackexchange.com/a/155862/21487) showcases Wumpus' triangular grid control flow well, but I thought I'd give this challenge a try with a one-liner.
The easier to understand version (one byte longer) is:
```
i=)!8*0.;l&o@
```
which works like so:
```
[Input loop]
i Read a byte of input (gives -1 on EOF)
=)! Duplicate, increment then logical not (i.e. push 1 if EOF, else 0)
8* Multiply by 8 (= x)
0 Push 0 (= y)
. Jump to (x, y), i.e. (8, 0) if EOF else (0, 0) to continue input loop
[Output]
; Pop the extraneous -1 at the top from EOF
l&o Output <length of stack> times
@ Terminate the program
```
Now let's take a look at the golfed version, which differs in the middle:
```
i=)!4*0.l&o@
```
The golfed version saves a byte by not needing an explicit command `;` to pop the extraneous -1. On EOF, this program jumps to `(4, 0)` instead of `(8, 0)` where it executes `4*0.` again — except this time the extraneous -1 is on top! This causes us to jump to `(-4, 0)`, which due to wrapping is the same as `(8, 0)` for this grid, getting us where we want whilst consuming the extraneous value at the same time.
[Answer]
## [Wumpus](https://github.com/m-ender/wumpus), ~~13~~ 11 bytes
```
)?\;l&o@
=i
```
[Try it online!](https://tio.run/##Ky/NLSgt/v9f0z7GOkct34HLNvP//8DSzORshaSi/PI8hbT8Ci6PVIUsoLrUFIX8stQihZKMVIWcxKpKhZT8dAA "Wumpus – Try It Online")
### Explanation
Since Wumpus is a stack-based language, the basic idea is to read all STDIN to the stack and then just print the entire stack from top to bottom. The interesting part here is the control flow through the grid.
To understand the control flow, we need to look at the actual triangular grid layout:
[![enter image description here](https://i.stack.imgur.com/H9yh1.png)](https://i.stack.imgur.com/H9yh1.png)
The IP starts in the top left corner going east. We can see that there's a loop through the group of six cells on the left, and a branch off of the `\`. As you might expect, the loop reads all input, and the linear section at the end writes the result back to STDOUT.
Let's look at the loop first. It makes more sense to think of the first `)?\` as not being part of the loop, with the actual loop beginning at the `i`. So here's the initial bit:
```
) Increment an implicit zero to get a 1.
?\ Pop the 1 (which is truthy) and execute the \, which reflects the IP
to move southwest.
```
Then the loop starts:
```
i Read one byte from STDIN and push it to the stack (or -1 at EOF).
Note that Wumpus's grid doesn't wrap around, instead the IP reflects
off the bottom edge.
= Duplicate the byte we've read, so that we can use it for the condition
later without losing it.
) Increment. EOF becomes zero (falsy) and everything else positive (truthy).
?\ If the incremented value is non-zero, execute the \ again, which
continues the loop. Otherwise (at EOF), the \ is skipped and the
IP keeps moving east.
```
That leaves the linear section at the end:
```
; Get rid of the -1 we read at EOF.
l Push the stack depth, i.e. the number of bytes we've read.
&o Print that many bytes.
```
[Answer]
# [Wren](https://github.com/munificent/wren), ~~40~~ 33 bytes
After I discovered a really clever trick...
```
Fn.new{|a|System.write(a[-1..0])}
```
[Try it online!](https://tio.run/##Ky9KzftfllikkKhg@98tTy8vtby6JrEmuLK4JDVXr7wosyRVIzFa11BPzyBWs/Z/ol5yYk6OhpKhkbGJkuZ/AA)
## [Wren](https://github.com/munificent/wren), 53 bytes
Wren has no STDIN functions... I guess I will just be using a function instead of hard-coding the value and using a snippet (which is a bit risky).
```
Fn.new{|a|[-1..-a.count].each{|w|System.print(a[w])}}
```
[TIO](https://tio.run/##Ky9KzftfllikkFaal6xg@98tTy8vtby6JrEmWtdQT083US85vzSvJFYvNTE5o7qmvCa4srgkNVevoCgzr0QjMbo8VrO29j9Is15yYk6OhpJnXkFpiZLmfwA)
## Explanation
```
Fn.new{ Create a new anonymous function (because Wren has no input functions)
|a| With the parameter a
[-1..-a.count] Generate the range [-1,-2,...,len(a-1),len(a)]
.each Pass this range to the given function:
{|w| Take one parameter a
System.print(a[w])}} And output it to STDOUT
```
## Wren, 54 bytes
```
Fn.new{|a|
for(i in-1..-a.count)System.write(a[i])
}
```
[TIO](https://tio.run/##Ky9KzftfllikkFaal6xg@98tTy8vtby6JrGGKy2/SCNTITNP11BPTzdRLzm/NK9EM7iyuCQ1V6@8KLMkVSMxOjNWk6v2P0ivXnJiTo6GkmdeQWmJkuZ/AA)
[Answer]
# [Prolog (SWI)](http://www.swi-prolog.org), 31 bytes
```
a:-get0(C),C>0,a,put(C);!.
:-a.
```
[Try it online!](https://tio.run/##KyjKz8lP1y0uz/z/P9FKNz21xEDDWVPH2c5AJ1GnoLQEyLFW1OOy0k3U@/8/sDQzOVshqSi/PE8hLb@CyyNVIas0tyA1RSG/LLVIoSQjVSEnsapSISU/HQA "Prolog (SWI) – Try It Online")
[Answer]
## PHP - 44 characters
```
<?=strrev(file_get_contents('php://stdin'));
```
] |
[Question]
[
**Closed.** This question is [off-topic](/help/closed-questions). It is not currently accepting answers.
---
Questions without an **objective primary winning criterion** are off-topic, as they make it impossible to indisputably decide which entry should win.
Closed 7 years ago.
[Improve this question](/posts/51109/edit)
I have noticed that there are a disproportionate number of computer languages based on English. I propose to fix this by translating existing computer languages into foreign languages!
* Pick a computer language that uses English keywords/functions
* Pick any natural\* language other than English
* Write a program that translates its own source code or any other program written using the same subset of keywords/functions into the other language
* Post the source code and the output (the translated code)
Start your post with something like:
## BASIC, French
or
## BASIC, French - FONDAMENTAL
You don't have to translate the language name if you don't want to, it's just for fun!
You don't have to translate all the keywords/functions in your chosen language, just the ones you actually use in your source code. For instance, PHP has thousands so you definitely don't need to translate them all! Also, if you use any comments please do your best to translate them too! After your program has finished there should be no recognisable English words, unless they are appropriate for the foreign language. Words in strings should be translated too (meaning your translated program won't work on English source code anymore, even if it could be run!). Hopefully your program will make some sort of sense to a programmer who speaks the other language!
For example, `if () {} elseif () {} else {}` might become `si () {} sinonsi () {} sinon {}` in French! If you were translating Perl's `elsif` into French, maybe you'd drop the second `n` the way the second `e` is dropped in English: `sinosi`. In French *else* would more likely be *autre* but the alternative *sinon* (*or else*, *otherwise*) feels nicer to me!
Be creative! Try to capture the feel of both the computer and natural languages! Languages like Brainfuck, CJam, etc. that don't have English tokens can't be used. Languages like BASIC or COBOL are much more suitable. Use meaningful variable names and translate them too unless your language doesn't support variable names that can be English words.
You may post multiple answers, one for each combination of computer/natural language. You may not use a library or an external tool to do the translation! Your code should do the translation itself, not call something else that does translation! This is not Code Golf! If your program takes any input it must only be its own source code, if it reads from the disc it can only be the source file, etc.
\* For the purposes of this challenge I will consider Esperanto, Lojban, Volapük, Interlingua, etc. as natural languages. You may not invent your own language for this challenge!
I have added a rule to prevent explicit quines. You may pick any subset of keywords/functions - even all of them - to translate. Your program must be able to translate itself as a minimum, i.e. if your original source includes the word `print` then adding `print(42)` anywhere to the input code (not your program itself) should still produce the correct results.
For example:
```
function translate() {
...
}
print(translate());
```
might become
```
fonction traduire() {
...
}
imprimer(traduire());
```
If the *input* is changed to
```
print(42);
function translate() {
...
}
print(translate());
print(42);
```
the *output* should then become
```
imprimer(42);
fonction traduire() {
...
}
imprimer(traduire());
imprimer(42);
```
[Answer]
# Python, [Koine Greek](http://en.wikipedia.org/wiki/Koine_Greek) - Πύθων
My favorite programming language, in my favorite foreign language--perfect! And it doesn't hurt that [the name is already Greek](http://en.wikipedia.org/wiki/Python_(mythology)).
The translator program in Python 3 (thank goodness for native Unicode support):
```
with open(__file__, encoding="utf-8") as f:
code = f.read()
replacements = [
("print", "γραψάτω"),
("input", "λαβέτω"),
("read", "ἀναγνώτω"),
("open", "ἀνεῳξάτω"),
("file", "βιβλίον"),
("import", "εἰσενεγκάτω"),
("encoding", "τύπος"),
("code", "λόγοι"),
("replacements", "νεόλογοι"),
("location", "τόπος"),
("old", "παλαιόν"),
("new", "νέον"),
("find", "εὑρέτω"),
("replace", "ἀλλαξάτω"),
("for", "ἕκαστον"),
("while", "ἐν τῷ"),
("elif", "εἰ δὲ"),
("if", "εἰ"),
("else", "εἰ δὲ μή"),
("is not", "οὐκ ἔστιν"),
("is", "ἔστιν"),
("not in", "οὐκ ἐν"),
("in", "ἐν"),
("and", "καὶ"),
("or", "ἢ"),
("not", "οὐ"),
("with", "μετὰ"),
("as", "ὡς"),
("re", "ῥλ"),
("sys", "σύς"),
(":", "·"),
("ph", "φ"),
("th", "θ"),
("ch", "χ"),
("ps", "ψ"),
("a", "α"),
("b", "β"),
("c", "κ"),
("d", "δ"),
("e", "ε"),
("f", "φ"),
("g", "γ"),
("h", ""),
("i", "ι"),
("j", "ι"),
("k", "κ"),
("l", "λ"),
("m", "μ"),
("n", "ν"),
("o", "ο"),
("p", "π"),
("r", "ρ"),
("s ", "ς "),
("s.", "ς."),
("s,", "ς,"),
("s·", "ς·"),
("s", "σ"),
("t", "τ"),
("u", "ου"),
("v", "ου"),
("w", "ου"),
("x", "ξ"),
("y", "υ"),
("z", "ζ")
]
for old, new in replacements:
if old == "for":
location = 0
while old in code[location:]:
location = code.find(old, location)
if code[location+3] != '"':
location = code.find("in", location)
code = code[:location] + "ἐκ" + code[location+2:]
else:
location += 1
code = code.replace(old, new)
print(code)
```
Results of running the code on itself (with the big translation list redacted):
```
μετὰ ἀνεῳξάτω(__βιβλίον__, τύπος="ουτφ-8") ὡς φ·
λόγοι = φ.ἀναγνώτω()
νεόλογοι = [
("γραψάτω", "γραψάτω"),
("λαβέτω", "λαβέτω"),
("ἀναγνώτω", "ἀναγνώτω"),
...
]
ἕκαστον παλαιόν, νέον ἐκ νεόλογοι·
εἰ παλαιόν == "ἕκαστον"·
τόπος = 0
ἐν τῷ παλαιόν ἐν λόγοι[τόπος·]·
τόπος = λόγοι.εὑρέτω(παλαιόν, τόπος)
εἰ λόγοι[τόπος+3] != '"'·
τόπος = λόγοι.εὑρέτω("ἐν", τόπος)
λόγοι = λόγοι[·τόπος] + "ἐκ" + λόγοι[τόπος+2·]
εἰ δὲ μή·
τόπος += 1
λόγοι = λόγοι.ἀλλαξάτω(παλαιόν, νέον)
γραψάτω(λόγοι)
```
Koine Greek is 2000 years old, so it was fun translating programming terms. Here's a few of my favorites:
* *βιβλίον* = "scroll" (`file`)
* *γραψάτω* = "write" (`print`)
* *λαβέτω* = "take" (`input`)
* *εἰσενεγκάτω* = "bring in" (`import`)
* *τύπος* = "pattern, type" (`encoding`)
* *λόγοι*/*νεόλογοι* = "words"/"new words" (`code`/`replacements`)
* *ἕκαστον... ἐκ* = "each... from" (`for ... in`)
* *εἰ... εἰ δὲ... εἰ δὲ μή* = "if... but if... but if not" (`if ... elif ... else`)
* *ἐν τῷ* literally means "in the," but in certain contexts it can be an idiom for "when, while"
* "Regular expression" became *ῥήμα λογικόν*, "rational/reasonable saying"; thus, the abbreviation `re` is *ῥλ*
Most of the words can be also found by searching on [Wiktionary](http://wiktionary.org).
Some other salient features:
* English programming uses a bunch of imperative verbs (`print`, `read`, `replace`). I suspect the ancient Greeks would feel a bit foolish talking to the computer like this, so I made them all *third-person imperatives*: "it must print," "it must read," "it must replace."
* Greek punctuation is a bit different from English. I didn't go overboard with this, because I'm not sure what to replace the square brackets and underscores with, but I did swap out colons for *ano teleia* or "high period" (`·`).
* For words that aren't in the list, I made sure to transliterate all the lowercase letters too. There isn't always a straight one-to-one correspondence; so for example, `utf` turns into `ουτφ`--which sounds about like "ootf" if you try to pronounce it.
This still leaves a lot to be desired grammar-wise. Greek is a much more highly inflected language than English, and my code isn't nearly sophisticated enough to get all the cases and numbers right. For example, *ἕκαστον παλαιόν, νέον ἐκ νεόλογοι* ought to read *ἐκ νεολόγ**ων***, with the object of the preposition in the genitive case. However, I'm not about to put *that* much time into this! The look is sufficiently Greek (at least to the untrained eye) and the high periods add a nice touch. All in all, I'm pretty satisfied with the results.
[Answer]
# [Chicken](http://esolangs.org/wiki/chicken), Chinese - 鸡
Chicken is much harder to use than I thought.
There isn't a trailing newline. But the final `chicken` is just for marking the end of this program, which can be replaced with an empty line.
I'm using [this interpreter](https://github.com/igorw/chicken-php), which prints an extra newline and cannot be suppressed. So the output have one more line than the original, and that can make a Chicken program broken. I hope this won't make it invalid.
It used some tricks like getting an empty strings from index -1 of the input, and detecting EOF by comparing with empty strings. I also used the `compare` command to discard unused items in the stack, without caring about the type. They may not work in other interpreters. And it prints the string as UTF-8 bytes, where other interpreters may support printing Unicode characters directly.
```
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken chicken
chicken chicken chicken chicken chicken chicken
chicken
```
Use this command to run this code:
```
bin/chicken "`<file`" <file
```
where weirdly enough, the first `file` is for input, and the second is for the code.
The output (Chinese don't use spaces between words):
```
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡
鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡鸡
鸡鸡鸡鸡鸡鸡
鸡
```
This program replaces `h` with `鸡`, leaves newlines unaffected, and ignores everything else.
And as you see, it can translate every valid Chicken program.
[Answer]
# C++, Latin - C Plus Plus
Yes, that is an actual translation of the language name. They didn't have the plus sign, but they gave us the word plus.
```
#include <iostream>
#include <fstream>
using namespace std;
static const char *reposita[][2] = {
// Miscellanea
{"iostream", "flumineie"}, // flumine inducto/educto
{"ofstream", "fluminele"}, // flumine limae educto
{"ifstream", "flumineli"}, // flumine limae inducto
{"fstream", "fluminel"}, // flumine limae
{"std", "cmn"}, // commune
{"string", "chorda"},
{"empty", "vacuum"},
{"size_t", "t·amplitudinis"}, // typus amplitudinis
{"find", "inveni"},
{"npos", "posn"}, // positio nulla
{"replace", "repone"},
{"main", "primor"},
{"getline", "sumelinea"},
// Verba gravia
{"alignas", "ordinasicut"},
{"alignof", "ordinatio"},
{"asm", "cns"}, // construere
{"auto", "modic"}, // modicum
{"bool", "bic"}, // bicolore
{"break", "erumpe"},
{"case", "res"},
{"catch", "capta"},
{"char16_t", "t·littxvi"}, // typus litterae
{"char32_t", "t·littxxxii"},
{"wchar_t", "t·littv"}, // typus litterae vadae
{"char", "litt"}, // littera
{"class", "genus"},
{"constexpr", "dictconst"}, // dictum constante
{"const_cast", "funde·const"}, // funde constanter
{"continue", "procede"},
{"decltype", "typusdecl"}, // typus declaratus
{"default", "ultima"},
{"delete", "abole"},
{"for", "cum"},
{"if", "si"},
{"struct", "aedif"}, // aedificium
{"double", "biforme"},
{"do", "fac"},
{"dynamic_cast", "funde·impigre"},
{"else", "alter"},
{"explicit", "directum"},
{"export", "expone"},
{"false", "falsum"},
{"float", "nante"},
{"friend", "amicus"},
{"goto", "iad"},
{"inline", "inlinea"},
{"long", "longum"},
{"mutable", "mutabilis"},
{"namespace", "plaganominis"},
{"new", "novum"},
{"noexcept", "sineexim"}, // sine eximibus
{"nullptr", "sgnnullum"}, // signum nullum
{"private", "privata"},
{"protected", "protecta"},
{"public", "publica"},
{"register", "arca"},
{"reinterpret_cast", "funde·revertendo"},
{"return", "redde"},
{"short", "breve"},
{"unsigned", "sine·signo"},
{"signed", "signo"},
{"sizeof", "amplitudo"},
{"static_assert", "autuma·stant"}, // autuma stantiter
{"static_cast", "funde·stant"}, // funde stantiter
{"static", "stante"},
{"switch", "furca"},
{"template", "exemplar"},
{"this", "hoc"},
{"thread_local", "ligamen·loci"},
{"throw", "iaci"},
{"true", "verum"},
{"try", "tempta"},
{"typedef", "typumdes"}, // typum designa
{"typeid", "signumtypi"},
{"typename", "nomentypi"},
{"union", "iugum"},
{"using", "utente"},
{"virtual", "virtuale"},
{"void", "inane"},
{"volatile", "volatilis"},
{"while", "dum"},
// Numeri
{"0", "nihil"},
{"1", "i"},
{"2", "ii"},
// Miscellanea
{"length", "longitudo"}
};
static void omnesRepone(string& chorda, const string& de, const string& ad) {
if (de.empty()) {
return;
}
size_t index = 0;
while ((index = chorda.find(de, index)) != string::npos) {
chorda.replace(index, de.length(), ad);
index += ad.length();
}
}
int main(int narg, const char * varg[]) {
ifstream limaArchetypa(varg[1]);
ofstream limaTransferenda(varg[2]);
int elementa = sizeof(reposita) / sizeof(reposita[0]);
string linea;
while (getline(limaArchetypa, linea)) {
for (int index = 0; index < elementa; ++index) {
omnesRepone(linea, reposita[index][0], reposita[index][1]);
}
limaTransferenda << linea << "\n";
}
return 0;
}
```
Notes:
* Takes an input and output file on the command line
* Translates all keywords
* I did not write a full Roman numeral parser but I thought it would be nice to at least translate the numbers present in the source (*nihil*, *i*, and *ii*)
* I did not go down the road of translating symbols used in C++, which seemed like a huge can of worms
* The keywords `const`, `enum`, `int`, and `operator` do not change. They now stand for *constante*, *enumeratum*, *integrum*, and *operator*.
* I didn't think the Romans would be into `_` as a word divider, so I used [interpuncts](http://en.wikipedia.org/wiki/Interpunct).
* The translation is very dumb and inefficient, ignoring word boundaries etc.
Output:
```
#include <flumineie>
#include <fluminel>
utente plaganominis cmn;
stante const litt *reposita[][ii] = {
// (redacta)
};
stante inane omnesRepone(chorda& chorda, const chorda& de, const chorda& ad) {
si (de.vacuum()) {
redde;
}
t·amplitudinis index = nihil;
dum ((index = chorda.inveni(de, index)) != chorda::posn) {
chorda.repone(index, de.longitudo(), ad);
index += ad.longitudo();
}
}
int primor(int narg, const litt * varg[]) {
flumineli limaArchetypa(varg[i]);
fluminele limaTransferenda(varg[ii]);
int elementa = amplitudo(reposita) / amplitudo(reposita[nihil]);
chorda linea;
dum (sumelinea(limaArchetypa, linea)) {
cum (int index = nihil; index < elementa; ++index) {
omnesRepone(linea, reposita[index][nihil], reposita[index][i]);
}
limaTransferenda << linea << "\n";
}
redde nihil;
}
```
[Answer]
## JavaScript (NodeJS) - Hebrew
My method for encoding is pretty similar to [DLosc's Python program](https://codegolf.stackexchange.com/a/51112/32376): It reads the source code, has a list of tokens, and runs find-and-replace.
```
var file_system = require('fs');
file_system.readFile(__filename, function(error,code){
if (error) {throw error;}
code = code.toString();
var words = {
'var': 'מש׳',
'file_system': 'מערכת_קבצים',
'require': 'דרוש',
'fs': 'מ״ק',
'readFile': 'קראקובץ',
'filename': 'שםקובץ',
'function': 'תפקיד',
'error': 'שבוש',
'code': 'צופן',
'if': 'אם',
'throw': 'זרוק',
'toString': 'למחרוזת',
'words': 'מילים',
'word': 'מילה',
'for': 'לכל',
'in ': 'ב',
'replace': 'החלף',
'RegExp': 'ביטס״ד',
'console': 'מסוף',
'log': 'רשום',
'new (.+)\\(': '$1 חדש(',
'g': 'ע׳',
'\'': '',
';': '׃'
}, word;
for (word in words) {
code = code.replace(new RegExp(word,'g'), words[word]);
}
console.log(code);
});
```
This gives the following output:
```
מש׳ מערכת_קבצים = דרוש(מ״ק)׃
מערכת_קבצים.קראקובץ(__שםקובץ, תפקיד(שבוש,צופן){
אם (שבוש) {זרוק שבוש׃}
צופן = צופן.למחרוזת()׃
מש׳ מילים = {
מש׳: מש׳,
מערכת_קבצים: מערכת_קבצים,
דרוש: דרוש,
מ״ק: מ״ק,
קראקובץ: קראקובץ,
שםקובץ: שםקובץ,
תפקיד: תפקיד,
שבוש: שבוש,
צופן: צופן,
אם: אם,
זרוק: זרוק,
למחרוזת: למחרוזת,
מילים: מילים,
מילה: מילה,
לכל: לכל,
ב: ב,
החלף: החלף,
ביטס״ד: ביטס״ד,
מסוף: מסוף,
רשום: רשום,
(.+)\\(: $1 חדש חדש(,
ע׳: ע׳,
\: ,
׃: ׃
}, מילה׃
לכל (מילה במילים) {
צופן = צופן.החלף(ביטס״ד חדש(מילה,ע׳), מילים[מילה])׃
}
מסוף.רשום(צופן)׃
})׃
```
Unfortunately, SE doesn't seem to like RTL text. I tried to manually wrap the above code block in `<pre dir="rtl">`, but it just got stripped. :( The code is actually supposed to look like this: (screenshot of gedit)
![code properly displayed with RTL formatting](https://i.stack.imgur.com/vaPK1.png)
Some things to note about the Hebrew text:
* The Hebrew method for abbreviations (which is used multiple times in this code) is to use a single quote mark at the end for abbreviating a single word, and double quotes before the last letter if it is multiple words. For a single word, we have `var`, which i translated as `מש'`, short for "משתנה" (variable). `fs`, an acronym of "file system", got translated as `מ"ק`, the first letters of "מערכת קבצים", seen above.
* Hebrew doesn't have capital/lowercase letters. A few letters have normal/final forms (כמנפצ and ךםןףץ, respectively), but that's it. So in mashup words like "readFile" and "filename", i also mashed together the Hebrew "קרא קובץ" and "שם קובץ", despite the second one ending up with a final letter in the middle of the word.
* The above does not apply to `toString`. In Hebrew, prepositions are single letters which get prepended to the word. So, if "string" is "מחרוזת", "to string" is "למחרוזת". That's also why in the `for..in` block, the `in` token includes the space, so that it gets attached to the next word (`word in words` becomes `מילה במילים`).
* I am unable to reproduce this from my computer, but when i went to [translate.google.com](https://translate.google.com/) from my iPad and put in `regex`, it gave me back ביטוי סדיר, which literally means "ordered expression". Wow! I abbreviated it down to ביטס"ד, as JS's `RegExp` is.
* The `g` regex flag i translated as ע', which stands for עולמי, global.
* Note the complicated regex form for replacing `new`. That's because in Hebrew, adjectives (such as "new" - "חדש") come after the noun (such as regex). So, instead of `new RegExp()`, it would be "RegExp [that is] new()`.
* I removed the quote marks, as they don't exist in classic Hebrew. It certainly makes the grammar a lot harder! I'm still not sure whether or not it was a good decision.
* It looks like i'm replacing all the terminating semicolons with colons. It's actually a [U+05C3](https://codepoints.net/U+05C3) [SOF PASUQ](https://en.wikipedia.org/wiki/Sof_passuk), a punctuation mark which ends a verse in the Bible.
This code certainly does not translate every valid JS program. In fact, it probably only translates this one. But that's good enough for this challenge. ;)
By the way, if you're interested in Hebrew, come follow the Hebrew.SE proposal (and vote on questions with a score of <10)!
[![Stack Exchange Q&A site proposal: Hebrew Language](https://i.stack.imgur.com/oyTLL.png)](https://area51.stackexchange.com/proposals/75348/hebrew-language?referrer=wuY59ZBbDdHCzDHh3-zT9w2)
(source: [stackexchange.com](http://area51.stackexchange.com/ads/proposal/75348.png))
[Answer]
# Perl, PigLatin - erlPay
First, the actual program is very short, so to demonstrate how it behaves for longer sections of text I included some Perl Poetry as a further example of the input/output. Since the poetry is included after the **END** line it doesn't actually get executed.
The actual algorithm is pretty straight forward:
* Split input into tokens on word boundaries
* For any word with at least two alpha characters translate into Pig Latin
+ Find the leading consonants in the word
+ move them to the end and put the 'ay' suffix on them
* Print everything. Non alpha input (and single-characters) are not translated
---
```
#!/usr/bin/perl
while (<>) {
print map {
s/^([bcdfghjklmnpqrstvwxyz]*)([a-z]+)/$2$1ay/i if /[a-z][a-z]/i; $_
} split(/\b/);
}
__END__
# listen (a perl poem)
# Sharon Hopkins
# rev. June 19, 1995
# Found in the "Perl Poetry" section of the Camel book
APPEAL:
listen(please, please);
open yourself, wide;
join (you, me),
connect (us, together),
tell me.
do something if distressed;
@dawn, dance;
@evening, sing;
read (books, $poems, stories) until peaceful;
study if able;
write me if-you-please;
sort your feelings, reset goals, seek (friends, family, anyone);
do*not*die (like this)
if sin abounds;
keys (hidden), open (locks, doors), tell secrets;
do not, I-beg-you, close them, yet.
accept (yourself, changes),
bind (grief, despair);
require truth, goodness if-you-will, each moment;
select (always), length (of-days)
```
---
Output from running the program on itself:
```
#!/usray/inbay/erlpay
ilewhay (<>) {
intpray apmay {
s/^([zbcdfghjklmnpqrstvwxyay]*)([a-z]+)/$2$1ay/i ifay /[a-z][a-z]/i; $_
} itsplay(/\b/);
}
__END__
# istenlay (a erlpay oempay)
# aronShay opkinsHay
# evray. uneJay 19, 1995
# oundFay inay ethay "erlPay oetryPay" ectionsay ofay ethay amelCay ookbay
APPEALay:
istenlay(easeplay, easeplay);
openay ourselfyay, ideway;
oinjay (ouyay, emay),
onnectcay (usay, ogethertay),
elltay emay.
oday omethingsay ifay istressedday;
@awnday, anceday;
@eveningay, ingsay;
eadray (ooksbay, $oemspay, oriesstay) untilay eacefulpay;
udystay ifay ableay;
itewray emay ifay-ouyay-easeplay;
ortsay ouryay eelingsfay, esetray oalsgay, eeksay (iendsfray, amilyfay, anyoneay);
oday*otnay*ieday (ikelay isthay)
ifay insay aboundsay;
eyskay (iddenhay), openay (ockslay, oorsday), elltay ecretssay;
oday otnay, I-egbay-ouyay, oseclay emthay, etyay.
acceptay (ourselfyay, angeschay),
indbay (iefgray, espairday);
equireray uthtray, oodnessgay ifay-ouyay-illway, eachay omentmay;
electsay (alwaysay), engthlay (ofay-aysday)
```
[Answer]
# Visual Basic .Net, Persian
I chose a verbose language so it would be harder. Turns out, I didn't have to change the grammar. The Persian form of the code is just as verbose.
```
Imports System.Collections.Generic
Module Translator
Sub Main()
Dim translation As New Dictionary(Of String, String)
With translation
.Add("imports", "واردکردن")
.Add("system", "دستگاه")
.Add("collections", "مجموعه")
.Add("generic", "عمومی")
.Add("module", "واحد")
.Add("translator", "مترجم")
.Add("sub", "زیرروال")
.Add("main", "اصلی")
.Add("dim", "بعد")
.Add("translation", "ترجمه")
.Add("new", "نو")
.Add("dictionary", "دیکشنری")
.Add("string", "رشته")
.Add("with", "با")
.Add("add", "افزودن")
.Add("end", "پایان")
.Add("file", "فایل")
.Add("create", "درستکردن")
.Add("readalltext", "خواندنکلمتن")
.Add("writealltext", "نوشتنکلمتن")
.Add("io", "ورودیخروجی")
.Add("for", "برای")
.Add("each", "هر")
.Add("next", "بعدی")
.Add("tolower", "بهکوچک")
.Add("key", "کلید")
.Add("value", "مقدار")
.Add("replace", "جایگزینکردن")
.Add("code", "کد")
.Add("dispose", "رهاکردن")
.Add("and", "و")
.Add("andalso", "وهمچنین")
.Add("byte", "بیت")
.Add("call", "صداکردن")
.Add("case", "صورت")
.Add("catch", "گرفتن")
.Add("object", "شئ")
.Add("integer", "عدد")
.Add("if", "اگر")
.Add("then", "سپس")
.Add("goto", "بروبه")
.Add("true", "درست")
.Add("false", "نادرست")
.Add("exit", "خارجشدن")
.Add("loop", "حلقه")
.Add("function", "تابع")
.Add("nothing", "هیچی")
.Add("else", "درغیراینصورت")
.Add("try", "سعیکردن")
.Add("or", "یا")
.Add("orelse", "یا")
.Add("as", "بهعنوان")
.Add("of", "از")
.Add("in", "در")
End With
Dim code As String = System.IO.File.ReadAllText("Code.txt").ToLower()
For Each k In translation
code = code.Replace(k.Key, k.Value)
Next
System.IO.File.Create("Persian.txt").Dispose()
System.IO.File.WriteAllText("Persian.txt", code)
End Sub
End Module
```
The result requires a right-to-left text editor. I couldn't get it to display properly here. But if I **have** to display it, here it is. Here's a picture:
![code](https://i.stack.imgur.com/eVmIk.png)
Note: It reads from a file named Persian.txt and outputs to code.txt. I couldn't get the console window to write or read Persian without it turning into question marks. (e.g. a four letter word would turn into ????)
Note: If you connect words with each other in Persian, it will be almost unreadable, because letters connect to each other and get a different form. So I had to separate them with spaces which resulted in words having spaces. A word like Imports turned into وارد کردن which is two words.
[Answer]
# Java, German - Java
This program is really straight forward.
It just reads the file given as the first argument and replaces all occurrences of an English word with the respective German translation.
I am using a regular expression with two groups (`([^a-zA-Z\\d:])*`) to match individual items prepended/followed by a non-alphanumeric character. This solved the issue with overlapping translations (eng. `List` -> ger. `Liste` but then `Liste` would become `Listee`). Using `$1`/`$2` adds those characters back and leaves us with a translated source code.
## Update 1:
Use abbreviations like `ea`, `nbea` etc. to follow naming conventions of Java in German.
## Update 2:
Now uses a third component in the array to break after their first replacement.
This is necessary for my cheaty declination/conjugation approach. `class`/`Klasse` is female in German and `void`/`nichts` is neutral, so I just skipped replacing the latter and replaced later. Another edit is `new`'s translation turned to `neue` because I only use it on `String`, which is female.
## Update 3:
Properly deal with capitalization by adding case sensitive regular expressions.
```
import java.io.IOException;
import java.nio.file.FileSystems;
import java.nio.file.Files;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) throws IOException {
String[][] array = new String[][]{
{"import", "importiere", ""},
{"public", "öffentliche", "break"},
{"public", "öffentliches", ""},
{"class", "klasse", ""},
{"Main", "Haupt", ""},
{"main", "haupt", ""},
{"static", "statisches", ""},
{"void", "nichts", ""},
{"String", "Zeichenkette", ""},
{"args", "argumente", ""},
{"throws", "wirft", ""},
{"IOException", "EAAusnahme", ""},
{"FileSystems", "Dateisysteme", ""},
{"new", "neue", ""},
{"Files", "Dateien", ""},
{"readAllBytes", "leseAlleBytes", ""},
{"getDefault", "holeStandard", ""},
{"getPath", "holePfad", ""},
{"array", "ansammlung", ""},
{"replaceFirst", "ersetzeErstes", ""},
{"find", "finde", ""},
{"out", "ausgabe", ""},
{"println", "druckeZeile", ""},
{"pattern", "muster", ""},
{"Pattern", "Muster", ""},
{"compile", "zusammenstellen", ""},
{"matcher", "abgleicher", ""},
{"util", "werkzeug", ""},
{"regex", "regaus", ""},
{"while", "solange", ""},
{"nio", "nbea", ""},
{"io", "ea", ""},
{"for", "für", ""},
{"if", "wenn", ""},
{"equals", "gleicht", ""},
{"break", "unterbrechen", ""}
};
String str = new String(Files.readAllBytes(FileSystems.getDefault().getPath(args[0])));
for (String[] s : array) {
Pattern pattern = Pattern.compile("(^|[^a-zA-Z\\d]+)" + s[0] + "([^a-zA-Z\\d]+)");
while(pattern.matcher(str).find(0)) {
str = pattern.matcher(str).replaceFirst("$1" + s[1] + "$2");
if(s[2].equals("break")) {
break;
}
}
}
System.out.println(str);
}
}
```
This outputs the following to `System.out`:
```
importiere java.ea.EAAusnahme;
importiere java.nbea.file.Dateisysteme;
importiere java.nbea.file.Dateien;
importiere java.werkzeug.regaus.Muster;
öffentliche klasse Haupt {
öffentliches statisches nichts haupt(Zeichenkette[] argumente) wirft EAAusnahme {
Zeichenkette[][] ansammlung = neue Zeichenkette[][]{
{"importiere", "importiere", ""},
{"öffentliches", "öffentliche", "unterbrechen"},
{"öffentliches", "öffentliches", ""},
{"klasse", "klasse", ""},
{"Haupt", "Haupt", ""},
{"haupt", "haupt", ""},
{"statisches", "statisches", ""},
{"nichts", "nichts", ""},
{"Zeichenkette", "Zeichenkette", ""},
{"argumente", "argumente", ""},
{"wirft", "wirft", ""},
{"EAAusnahme", "EAAusnahme", ""},
{"Dateisysteme", "Dateisysteme", ""},
{"neue", "neue", ""},
{"Dateien", "Dateien", ""},
{"leseAlleBytes", "leseAlleBytes", ""},
{"holeStandard", "holeStandard", ""},
{"holePfad", "holePfad", ""},
{"ansammlung", "ansammlung", ""},
{"ersetzeErstes", "ersetzeErstes", ""},
{"finde", "finde", ""},
{"ausgabe", "ausgabe", ""},
{"druckeZeile", "druckeZeile", ""},
{"muster", "muster", ""},
{"Muster", "Muster", ""},
{"zusammenstellen", "zusammenstellen", ""},
{"abgleicher", "abgleicher", ""},
{"werkzeug", "werkzeug", ""},
{"regaus", "regaus", ""},
{"solange", "solange", ""},
{"nbea", "nbea", ""},
{"ea", "ea", ""},
{"für", "für", ""},
{"wenn", "wenn", ""},
{"gleicht", "gleicht", ""},
{"unterbrechen", "unterbrechen", ""}
};
Zeichenkette str = neue Zeichenkette(Dateien.leseAlleBytes(Dateisysteme.holeStandard().holePfad(argumente[0])));
für (Zeichenkette[] s : ansammlung) {
Muster muster = Muster.zusammenstellen("(^|[^a-zA-Z\\d]+)" + s[0] + "([^a-zA-Z\\d]+)");
solange(muster.abgleicher(str).finde(0)) {
str = muster.abgleicher(str).ersetzeErstes("$1" + s[1] + "$2");
wenn(s[2].gleicht("unterbrechen")) {
unterbrechen;
}
}
}
System.ausgabe.druckeZeile(str);
}
}
```
If you have any improvements on the code or the translation, let me know and I see if I can implement them.
[Answer]
# Julia, [Tatar](http://en.wikipedia.org/wiki/Tatar_language) - Julia
This uses the unofficial Latin-based Zamanälif alphabet for İdel-Ural Tatar, established in 2001. However, in 2002, the Russian Federation struck down [Tatarstan](http://en.wikipedia.org/wiki/Tatarstan)'s motion to make Zamanälif the official alphabet for the Tatar language, criminalizing the official use of any alphabet other than Cyrillic.
In the past century, there have been 5 alphabets for the Tatar language:
* İske imlâ, a variant of the Arabic alphabet, 1870s-1920s
* Yaña imlâ, another Arabic variant, 1920s and 30s
* Jaᶇalif, a variant of the Latin alphabet, 1930s
* Cyrillic, conversion mandated by Joseph Stalin, 1940s-present
* Zamanälif, unofficial, 2001-present
I've opted for Zamanälif because I think my grandpa would be disappointed if I used Cyrillic. His first language is Tatar and and having been born in the 1920s, he learned to read and write in the iske imlâ alphabet.
English:
```
function translate(source)
words = Dict([("function", "funktsiya"),
("if", "ägär"),
("else", "başkaça"),
("elif", "başägär"),
("end", "axır"),
("for", "saen"),
("print", "bastırırga"),
("english", "ingliz"),
("tatar", "tatarça"),
("translate", "tärcemä"),
("words", "süzlär"),
("replace", "alıştıru"),
("Dict", "Süzlek"),
("keys", "açkıçlär"),
("get", "alırga"),
("readall", "ukırgaböten"),
("source", "çıganak")])
tatar = readall(source)
for english = keys(words)
tatar = replace(tatar, english, get(words, english, ""))
end
tatar
end
print(translate("tatar.jl"))
```
Tatar:
```
funktsiya tärcemä(çıganak)
süzlär = Süzlek([("funktsiya", "funktsiya"),
("ägär", "ägär"),
("başkaça", "başkaça"),
("başägär", "başägär"),
("axır", "axır"),
("saen", "saen"),
("bastırırga", "bastırırga"),
("ingliz", "ingliz"),
("tatarça", "tatarça"),
("tärcemä", "tärcemä"),
("süzlär", "süzlär"),
("alıştıru", "alıştıru"),
("Süzlek", "Süzlek"),
("açkıçlär", "açkıçlär"),
("alırga", "alırga"),
("ukırgaböten", "ukırgaböten"),
("çıganak", "çıganak")])
tatarça = ukırgaböten(çıganak)
saen ingliz = açkıçlär(süzlär)
tatarça = alıştıru(tatarça, ingliz, alırga(süzlär, ingliz, ""))
axır
tatarça
axır
bastırırga(tärcemä("~/tatarça.jl"))
```
I took a couple liberties to make the translation a little cleaner. For example, `for` became `saen`, which translates more literally to "each." I also didn't abbreviate `Süzlek`, which means "dictionary." `ukırgaböten`, my translation for `readall`, is `ukırga` (read) + `böten` (all/every). `başägär`, my translation for `elseif`, is `baş` (an abbreviation of `başkaça`, meaning "else/otherwise") + `ägär` (if).
If anyone on PPCG knows Tatar, you likely know more than I do. Any suggestions would be welcome.
[Answer]
## [Rust](http://rust-lang.org/), [Belarusian](http://en.wikipedia.org/wiki/Belarusian_language) (Ржа)
Program:
```
#![feature(non_ascii_idents)]
use std::io::stdin;
use std::io::Read;
static ЗАМЕНЫ: &'static [(&'static str, &'static str)] = &[
("match", "супастаўленьне"),
(" if ", " калі "),
("else", "інакш"),
(" as ", " як "),
("panic!", "паніка!"),
("assert!", "праверыць!"),
("box ", "пак "),
("break", "перапыніць"),
("continue", "працягнуць"),
("fn ", "фн "),
("extern", "знешняе"),
(" for ", " кожная "),
(" in ", " ў "),
("impl ", " увасобіць "),
("let ", "хай "),
("loop ", "цыкл "),
("once", "аднойчы"),
("pub ", "адкр"),
("return", "выйсці"),
("super", "бацькоўскі_модуль"),
("unsafe ", "непяспечнае "),
(" where", " дзе"),
("while", "пакуль"),
("use ", "вык "),
("mod ", "модуль "),
("trait ", "рыса "),
("struct ", "структура "),
("enum ", "пералік"),
("type ", "тып "),
("move ", "перанесьці"),
("mut ", "зьмян "),
("ref ", "спасыл "),
("static ", "статычнае "),
("const ", "нязменнае "),
("crate ", "скрыня "),
("Copy", "МожнаКапіяваць"),
("Send", "МожнаПерадаваць"),
("Sized", "МаеПамер"),
("Sync", "БяспечнаНаПатокі"),
("Drop", "МаеЗавяршальнік"),
("FnMut", "ЯкЗьмяняемаяФункцыя"),
("FnOnce", "ЯкАднаразоваяФункцыя"),
("Fn", "ЯкФункцыя"),
("macro_rules!", "новы_макрас!"),
("alignof", "выраўненьеяку"),
("become", "стала"),
("do ", "рабі"),
("offsetof", "пазіцыяяку"),
("priv", "прыватнае"),
("pure", "чыстае"),
("sizeof", "памер_ад"),
("typeof", "тып_ад"),
("unsized", "безпамеравы"),
("yield", "вырабіць"),
("abstract", "абстрактны"),
("virtual", "віртуальны"),
("final", "канчатковае"),
("override", "перавызначыць"),
("macro", "макрас"),
("Box", "Каробка"),
("ToOwned", "МожнаНабыцьУладара"),
("Clone", "МожнаКланаваць"),
("PartialOrd", "МаеЧастковыПарадак"),
("PartialEq", "ЧастковаПараўнальны"),
("Eq", "Параўнальны"),
("Ord", "МаеПарадак"),
("AsRef", "МожнаЯкСпасылку"),
("AsMut", "МожнаЯкЗьмяняемые"),
("Into", "МожнаУ"),
("From", "МожнаЗ"),
("Default", "МаеЗначеньнеПаЗмаўчаньні"),
("Extend", "Пашырыць"),
("IntoIterator", "МожнаУПаўторнік"),
("DoubleEndedIterator", "ДвубаковыПаўторнік"),
("ExactSizeIterator", "ПаўторнікЗДакладнымПамерам"),
("Iterator", "Паўторнік"),
("Option", "Недакладна"),
("Some", "Ёсць"),
("None", "Нічога"),
("Result", "Вынік"),
("Ok", "Ок"),
("Err", "Збой"),
("SliceConcatExt", "АбянднальнікЛустаў"),
("ToString", "УРадок"),
("String", "Радок"),
("Vec", "Вэктар"),
("vec!", "вэкрар!"),
("self", "сам"),
("true", "так"),
("false", "не"),
("feature", "магчымасьць"),
("main", "галоўная"),
("replace", "замяніць"),
("iter","пераліч"),
("print!","друк!"),
("println!","друкрад!"),
("stdin","звыч_уваход"),
("stdout","звыч_выхад"),
("stderr","звыч_павед"),
("Read", "Чытальнік"),
("Write", "Пісальнік"),
("read_to_string", "чытаць_у_радок"),
("to_string", "у_радок"),
("std", "стд"),
("io", "ув"),
("non_ascii_idents", "ідентыфікатары_з_юнікоду"),
("str", "радок"),
];
fn main() {
let mut зьмест : String = "".to_string();
match stdin().read_to_string(&mut зьмест) {
Ok(_) => (),
Err(памылка) => panic!(памылка),
}
for замена in ЗАМЕНЫ.iter() {
зьмест = зьмест.replace(замена.0, замена.1);
}
println!("{}", зьмест);
}
```
Output:
```
#![магчымасьць(ідентыфікатары_з_юнікоду)]
вык стд::ув::звыч_уваход;
вык стд::ув::Чытальнік;
статычнае ЗАМЕНЫ: &'статычнае [(&'статычнае радок, &'статычнае радок)] = &[
("супастаўленьне", "супастаўленьне"),
(" калі ", " калі "),
("інакш", "інакш"),
(" як ", " як "),
("паніка!", "паніка!"),
("праверыць!", "праверыць!"),
("пак ", "пак "),
("перапыніць", "перапыніць"),
("працягнуць", "працягнуць"),
("фн ", "фн "),
("знешняе", "знешняе"),
(" кожная ", " кожная "),
(" ў ", " ў "),
(" увасобіць ", " увасобіць "),
("хай ", "хай "),
("цыкл ", "цыкл "),
("аднойчы", "аднойчы"),
("адкр", "адкр"),
("выйсці", "выйсці"),
("бацькоўскі_модуль", "бацькоўскі_модуль"),
("непяспечнае ", "непяспечнае "),
(" дзе", " дзе"),
("пакуль", "пакуль"),
("вык ", "вык "),
("модуль ", "модуль "),
("рыса ", "рыса "),
("структура ", "структура "),
("пералік", "пералік"),
("тып ", "тып "),
("перанесьці", "перанесьці"),
("зьмян ", "зьмян "),
("спасыл ", "спасыл "),
("статычнае ", "статычнае "),
("нязменнае ", "нязменнае "),
("скрыня ", "скрыня "),
("МожнаКапіяваць", "МожнаКапіяваць"),
("МожнаПерадаваць", "МожнаПерадаваць"),
("МаеПамер", "МаеПамер"),
("БяспечнаНаПатокі", "БяспечнаНаПатокі"),
("МаеЗавяршальнік", "МаеЗавяршальнік"),
("ЯкЗьмяняемаяФункцыя", "ЯкЗьмяняемаяФункцыя"),
("ЯкАднаразоваяФункцыя", "ЯкАднаразоваяФункцыя"),
("ЯкФункцыя", "ЯкФункцыя"),
("новы_макрас!", "новы_макрас!"),
("выраўненьеяку", "выраўненьеяку"),
("стала", "стала"),
("рабі", "рабі"),
("пазіцыяяку", "пазіцыяяку"),
("прыватнае", "прыватнае"),
("чыстае", "чыстае"),
("памер_ад", "памер_ад"),
("тып_ад", "тып_ад"),
("безпамеравы", "безпамеравы"),
("вырабіць", "вырабіць"),
("абстрактны", "абстрактны"),
("віртуальны", "віртуальны"),
("канчатковае", "канчатковае"),
("перавызначыць", "перавызначыць"),
("макрас", "макрас"),
("Каробка", "Каробка"),
("МожнаНабыцьУладара", "МожнаНабыцьУладара"),
("МожнаКланаваць", "МожнаКланаваць"),
("МаеЧастковыПарадак", "МаеЧастковыПарадак"),
("ЧастковаПараўнальны", "ЧастковаПараўнальны"),
("Параўнальны", "Параўнальны"),
("МаеПарадак", "МаеПарадак"),
("МожнаЯкСпасылку", "МожнаЯкСпасылку"),
("МожнаЯкЗьмяняемые", "МожнаЯкЗьмяняемые"),
("МожнаУ", "МожнаУ"),
("МожнаЗ", "МожнаЗ"),
("МаеЗначеньнеПаЗмаўчаньні", "МаеЗначеньнеПаЗмаўчаньні"),
("Пашырыць", "Пашырыць"),
("МожнаУПаўторнік", "МожнаУПаўторнік"),
("ДвубаковыПаўторнік", "ДвубаковыПаўторнік"),
("ПаўторнікЗДакладнымПамерам", "ПаўторнікЗДакладнымПамерам"),
("Паўторнік", "Паўторнік"),
("Недакладна", "Недакладна"),
("Ёсць", "Ёсць"),
("Нічога", "Нічога"),
("Вынік", "Вынік"),
("Ок", "Ок"),
("Збой", "Збой"),
("АбянднальнікЛустаў", "АбянднальнікЛустаў"),
("УРадок", "УРадок"),
("Радок", "Радок"),
("Вэктар", "Вэктар"),
("вэкрар!", "вэкрар!"),
("сам", "сам"),
("так", "так"),
("не", "не"),
("магчымасьць", "магчымасьць"),
("галоўная", "галоўная"),
("замяніць", "замяніць"),
("пераліч","пераліч"),
("друк!","друк!"),
("друкрад!","друкрад!"),
("звыч_уваход","звыч_уваход"),
("звыч_выхад","звыч_выхад"),
("звыч_павед","звыч_павед"),
("Чытальнік", "Чытальнік"),
("Пісальнік", "Пісальнік"),
("чытаць_у_радок", "чытаць_у_радок"),
("у_радок", "у_радок"),
("стд", "стд"),
("ув", "ув"),
("ідентыфікатары_з_юнікоду", "ідентыфікатары_з_юнікоду"),
("радок", "радок"),
];
фн галоўная() {
хай зьмян зьмест : Радок = "".у_радок();
супастаўленьне звыч_уваход().чытаць_у_радок(&зьмян зьмест) {
Ок(_) => (),
Збой(памылка) => паніка!(памылка),
}
кожная замена ў ЗАМЕНЫ.пераліч() {
зьмест = зьмест.замяніць(замена.0, замена.1);
}
друкрад!("{}", зьмест);
}
```
[Answer]
# [DogeScript](https://dogescript.com), Spanish - El Código del Perro
DogeScript is interpreted to JavaScript, so any valid JS is valid DogeScript. The translation I've given here actually encompasses the entire [keyword specification](https://github.com/dogescript/dogescript/blob/master/LANGUAGE.md) (plus some more to cover the words used in the program).
"English":
```
trained
very speak is prompt()
very doge is {
'console': 'consola',
'doge': 'perro',
'very': 'muy',
'concern': 'preocupación',
'word': 'palabra',
'much': 'mucho',
'trained': 'entrenado',
'with': 'con',
'doge': 'perro',
'very': 'muy',
'much': 'mucho',
'with': 'con',
'is': 'es',
'trained': 'entrenado',
'such': 'tan',
'wow': 'guau',
'plz': 'porFavor',
'but': 'pero',
'maybe': 'quizás',
'rly': 'enserio',
'many': 'muchos',
'so': 'tanto',
'not': 'no',
'and': 'y',
'or': 'o',
'next': 'siguiente',
'as': 'como',
'more': 'más',
'less': 'menos',
'lots': 'montones',
'few': 'pocos',
'bigger': 'másGrande',
'smaller': 'menor',
'biggerish': 'unPocoMásGrande',
'smallerish': 'unPocoMásPequeño',
'prompt': 'preguntar',
'in': 'en',
'replace': 'reemplazar',
'new': 'nuevo',
'RegExp': 'ExpReg',
'loge': 'registro',
'dose': 'punta',
'speak': 'habla'
}
much very word in doge
very concern is new RegExp with word 'g'
doge is speak dose replace with concern doge[word]
wow
console dose loge with speak
```
Spanish:
```
entrenado
muy habla es preguntar()
muy perro es {...}
mucho muy palabra en perro
muy preocupación es nuevo ExpReg con palabra 'g'
perro es habla punta reemplazar con preocupación perro[palabra]
guau
consola punta registro con habla
```
You may notice that I've taken a few liberties in the translation. This is partially because my Spanish is rather poor and partially because my knowledge of Spanish language memes is lacking.
![enter image description here](https://i.stack.imgur.com/RIAZ3.png)
[Answer]
# C#, Latin - C Acutus
```
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
namespace ToLatin
{
class Program
{
static void Main(string[] args)
{
Dictionary<string, string> dx = new Dictionary<string, string>();
dx.Add("using", "usura");
dx.Add("System", "Ratio");
dx.Add("Collections", "Comprensio");
dx.Add("Text", "Scriptum");
dx.Add("txt", "scrptm");
dx.Add("output", "scribo");
dx.Add("namespace", "nomenspatium");
dx.Add("class", "classis");
dx.Add("Program", "Libellus");
dx.Add("static", "immotus");
dx.Add("void", "inane");
dx.Add("Main", "Paelagus");
dx.Add("string", "chorda");
dx.Add("args", "argumenta");
dx.Add("Dictionary", "Lexicon");
dx.Add("new", "novus");
dx.Add("Add", "Adaugeo");
dx.Add("IO", "LecticoScribo");
dx.Add("abstract", "abstracto");
dx.Add("break", "confractus");
dx.Add("Math", "Mathematica");
dx.Add("File", "Ordo");
dx.Add("file", "ordo");
dx.Add("foreach", "prosingulus");
dx.Add("Read", "Lectico");
dx.Add("Write", "Scribo");
dx.Add("All", "Omnes");
dx.Add("translation", "interpretatio");
dx.Add("bool", "verumfalsus");
dx.Add("true", "verum");
dx.Add("false", "falsus");
dx.Add("0", "nil");
dx.Add("||", "aut");
dx.Add("&&", "et");
dx.Add("Key", "Clavis");
dx.Add("Value", "Pretium");
dx.Add("Replace", "Restituo");
dx.Add("Generic", "Ordinarius");
dx.Add("ToLatin", "AdLatinam");
string file = File.ReadAllText(args[0]);
foreach (var translation in dx )
{
file = file.Replace(translation.Key, translation.Value);
}
File.WriteAllText("output.txt", file);
}
}
}
```
Reads file from command-line args, writes to output.txt.
Example:
```
usura Ratio;
usura Ratio.Comprensio.Ordinarius;
usura Ratio.Scriptum;
usura Ratio.LecticoScribo;
nomenspatium AdLatinam
{
classis Libellus
{
immotus inane Paelagus(chorda[] argumenta)
{
Lexicon<chorda, chorda> dx = novus Lexicon<chorda, chorda>();
dx.Adaugeo("usura", "usura");
dx.Adaugeo("Ratio", "Ratio");
dx.Adaugeo("Comprensio", "Comprensio");
dx.Adaugeo("Scriptum", "Scriptum");
dx.Adaugeo("scrptm", "scrptm");
dx.Adaugeo("scribo", "scribo");
dx.Adaugeo("nomenspatium", "nomenspatium");
dx.Adaugeo("classis", "classisis");
dx.Adaugeo("Libellus", "Libellus");
dx.Adaugeo("immotus", "immotus");
dx.Adaugeo("inane", "inane");
dx.Adaugeo("Paelagus", "Paelagus");
dx.Adaugeo("chorda", "chorda");
dx.Adaugeo("argumenta", "argumenta");
dx.Adaugeo("Lexicon", "Lexicon");
dx.Adaugeo("novus", "novus");
dx.Adaugeo("Adaugeo", "Adaugeo");
dx.Adaugeo("LecticoScribo", "LecticoScribo");
dx.Adaugeo("abstracto", "abstractoo");
dx.Adaugeo("confractus", "confractus");
dx.Adaugeo("Mathematica", "Mathematicaematica");
dx.Adaugeo("Ordo", "Ordo");
dx.Adaugeo("ordo", "ordo");
dx.Adaugeo("prosingulus", "prosingulus");
dx.Adaugeo("Lectico", "Lectico");
dx.Adaugeo("Scribo", "Scribo");
dx.Adaugeo("Omnes", "Omnes");
dx.Adaugeo("interpretatio", "interpretatio");
dx.Adaugeo("verumfalsus", "verumfalsus");
dx.Adaugeo("verum", "verum");
dx.Adaugeo("falsus", "falsus");
dx.Adaugeo("nil", "nil");
dx.Adaugeo("aut", "aut");
dx.Adaugeo("et", "et");
dx.Adaugeo("Clavis", "Clavis");
dx.Adaugeo("Pretium", "Pretium");
dx.Adaugeo("Restituo", "Restituo");
dx.Adaugeo("Ordinarius", "Ordinarius");
dx.Adaugeo("ToLatin", "AdLatinam");
chorda ordo = Ordo.LecticoOmnesScriptum(argumenta[nil]);
prosingulus (var interpretatio in dx )
{
ordo = ordo.Restituo(interpretatio.Clavis, interpretatio.Pretium);
}
Ordo.ScriboOmnesScriptum("scribo.scrptm", ordo);
}
}
}
```
---
Darn, just saw the C++ Latin version..
[Answer]
# Ruby, Japanese - AkaDama
Ruby in Japanese is *rubii* (ルビー), which is boring, so I named it literally *red gem*.
In ruby, variables and methods are not restricted to ASCII, so something like
```
def フロートの文字化(フロート)
甲 = フロート.to_s.split(?.)
甲[0] = 整数の文字化(甲[0])
甲[1] = 甲[1].chars.map{|乙|R数字行列[乙]}.join
甲.join(?点)
end
```
is valid ruby. I'm using this as much as possible ~~for obfuscation~~ for all your bases.
I hope it's okay to use the gems for parsing ruby, it still required some ugly monkey-patching.
You can expand on the `TRANS_TABLE` to add translation for more methods. Everything that's not in the table is "translated" into Japanese loosely based upon its pronunciation (or more like spelling), so *eat* becomes えあと ("a-ah-toe").
Converts integers to a ["very" practical notation](http://ja.wikipedia.org/wiki/%E5%91%BD%E6%95%B0%E6%B3%95#.E4.BB.8F.E5.85.B8.E3.81.AE.E6.95.B0.E8.A9.9E).
```
# encoding:utf-8
require 'parser/current'
# super hack, don't try this at home!!
class Array
def freeze
self
end
end
class Hash
def freeze
self
end
end
class Parser::AST::Node
def freeze
self
end
end
require 'unparser'
class Parser::Source::Comment
def freeze
self
end
end
# translation memory
R翻訳メモリー = {}
# keyword translation
R鍵文字 = {
:BEGIN => [:K_PREEXE, :"コンパイル時に最初に登録"],
:END => [:K_POSTEXE, :"コンパイル時に最後に登録"],
:__ENCODING__ => [:K_ENCODING, :"__エンコーディング__"],
:__END__ => [:K_EEND, :"__終__"],
:__FILE__ => [:K_FILE, :"__ソースファイル名__"],
:alias => [:K_ALIAS, :"別名"],
:and => [:K_AND, :"且つ"],
:begin => [:K_BEGIN, :"開始"],
:break => [:K_BREAK, :"抜ける"],
:case => [:K_CASE, :"条件分岐"],
:class => [:K_CLASS, :"クラス"],
:def => [:K_DEF, :"定義"],
:define => [:K_DEFINE, :""],
:defined? => [:K_DEFINED, :"若し定義されたら"],
:do => [:K_DO, :"実行"],
:else => [:K_ELSE, :"違えば"],
:elsif => [:K_ELSIF, :"それとも"],
:end => [:K_END, :"此処迄"],
:ensure => [:K_ENSURE, :"必ず実行"],
:false => [:K_FALSE, :"偽"],
:for => [:K_FOR, :"変数"],
:if => [:K_IF, :"若し"],
:in => [:K_IN, :"の次の値ごとに"],
:module => [:K_MODULE, :"モジュール"],
:next => [:K_NEXT, :"次"],
:nil => [:K_NIL, :"無"],
:not => [:K_NOT, :"ノット"],
:or => [:K_OR, :"又は"],
:redo => [:K_REDO, :"遣り直す"],
:rescue => [:K_RESCUE, :"救出"],
:retry => [:K_RETRY, :"再び試みる"],
:return => [:K_RETURN, :"戻る"],
:self => [:K_SELF, :"自身"],
:super => [:K_SUPER, :"スーパー"],
:then => [:K_THEN, :"成らば"],
:true => [:K_TRUE, :"真"],
:undef => [:K_UNDEF, :"定義を取消す"],
:unless => [:K_UNLESS, :"若し違えば"],
:until => [:K_UNTIL, :"次の通りである限り"],
:when => [:K_WHEN, :"場合"],
:while => [:K_WHILE, :"次の通りで無い限り"],
:yield => [:K_YIELD, :"ブロックを呼び出す"],
}
R数字行列 = {
"0" => "零",
"1" => "壹",
"2" => "貮",
"3" => "參",
"4" => "肆",
"5" => "伍",
"6" => "陸",
"7" => "漆",
"8" => "捌",
"9" => "玖",
}
R翻訳行列 = {
# Symbols
:+ => :+,
:- => :-,
:/ => :/,
:* => :*,
:** => :**,
:! => :!,
:^ => :^,
:& => :&,
:| => :|,
:~ => :~,
:> => :>,
:< => :<,
:<< => :<<,
:% => :%,
:"!=" => :"!=",
:"=~" => :"=~",
:"~=" => :"~=",
:">=" => :">=",
:"<=" => :"<=",
:"=" => :"=",
:"==" => :"==",
:"===" => :"===",
:"<=>" => :"<=>",
:"[]" => :"[]",
:"[]=" => :"[]=",
:"!~" => :"!~",
# Errors
:ArgumentError => :引数エラー,
:EncodingError => :文字コードエラー,
:FiberError => :ファイバーエラー,
:IOError => :入出エラー,
:IndexError => :添字エラー,
:LoadError => :読込エラー,
:LocalJumpError => :エラー,
:NameError => :未定義エラー,
:NoMemoryError => :メモリー不足エラー,
:NotImplementedError => :未実装エラー,
:RangeError => :範囲エラー,
:RegexpError => :正規表現エラー,
:RuntimeError => :実行時エラー,
:ScriptError => :スクリプトエラー,
:SecurityError => :セキュリティエラー,
:StandardError => :通常エラー,
:SyntaxError => :シンタクスエラー,
:ThreadError => :スレッドエラー,
:TypeError => :タイプエラー,
:ZeroDivisionError => :零除算エラー,
# Constants
:Array => :配列,
:BasicObject => :基本オブジェクト,
:Bignum => :多倍長整数,
:Class => :クラス,
:Complex => :複素数,
:Exception => :例外,
:FalseClass => :偽クラス,
:File => :ファイル,
:Fiber => :ファイバー,
:Fixnum => :固定長整数,
:Float => :浮動小数点数,
:Hash => :ハッシュ表,
:Integer => :整数,
:IO => :入出,
:Kernel => :中核,
:Marshal => :元帥,
:Math => :数学,
:Module => :モジュール,
:NilClass => :無クラス,
:Numeric => :数値,
:Object => :オブジェクト,
:Prime => :素数,
:Proc => :プロック,
:Process => :プロセス,
:Random => :乱数,
:Range => :範囲,
:Rational => :有理数,
:Regexp => :正規表現,
:Set => :集合,
:Socket => :ソケット,
:String => :文字列,
:Symbol => :シンボル,
:Time => :時刻,
:Thread => :スレッド,
:TrueClass => :真クラス,
# Kernel
:inspect => :検査,
:p => :表示,
:print => :書く,
:puts => :言う,
:require => :取り込む,
# Object
:freeze => :凍結,
# String
:gsub => :全文字列置換,
:gsub! => :全文字列置換せよ,
}
INT_TABLE = [
[7, "倶胝"],
[14, "阿庾多"],
[28, "那由他"],
[56, "頻波羅"],
[112, "矜羯羅"],
[224, "阿伽羅"],
[448, "最勝"],
[896, "摩婆羅"],
[1792, "阿婆羅"],
[3584, "多婆羅"],
[7168, "界分"],
[14336, "普摩"],
[28672, "禰摩"],
[57344, "阿婆鈐"],
[114688, "弥伽婆"],
[229376, "毘攞伽"],
[458752, "毘伽婆"],
[917504, "僧羯邏摩"],
[1835008, "毘薩羅"],
[3670016, "毘贍婆"],
[7340032, "毘盛伽"],
[14680064, "毘素陀"],
[29360128, "毘婆訶"],
[58720256, "毘薄底"],
[117440512, "毘佉擔"],
[234881024, "称量"],
[469762048, "一持"],
[939524096, "異路"],
[1879048192, "顛倒"],
[3758096384, "三末耶"],
[7516192768, "毘睹羅"],
[15032385536, "奚婆羅"],
[30064771072, "伺察"],
[60129542144, "周広"],
[120259084288, "高出"],
[240518168576, "最妙"],
[481036337152, "泥羅婆"],
[962072674304, "訶理婆"],
[1924145348608, "一動"],
[3848290697216, "訶理蒲"],
[7696581394432, "訶理三"],
[15393162788864, "奚魯伽"],
[30786325577728, "達攞歩陀"],
[61572651155456, "訶魯那"],
[123145302310912, "摩魯陀"],
[246290604621824, "懺慕陀"],
[492581209243648, "瑿攞陀"],
[985162418487296, "摩魯摩"],
[1970324836974592, "調伏"],
[3940649673949184, "離憍慢"],
[7881299347898368, "不動"],
[15762598695796736, "極量"],
[31525197391593472, "阿麼怛羅"],
[63050394783186944, "勃麼怛羅"],
[126100789566373888, "伽麼怛羅"],
[252201579132747776, "那麼怛羅"],
[504403158265495552, "奚麼怛羅"],
[1008806316530991104, "鞞麼怛羅"],
[2017612633061982208, "鉢羅麼怛羅"],
[4035225266123964416, "尸婆麼怛羅"],
[8070450532247928832, "翳羅"],
[16140901064495857664, "薜羅"],
[32281802128991715328, "諦羅"],
[64563604257983430656, "偈羅"],
[129127208515966861312, "窣歩羅"],
[258254417031933722624, "泥羅"],
[516508834063867445248, "計羅"],
[1033017668127734890496, "細羅"],
[2066035336255469780992, "睥羅"],
[4132070672510939561984, "謎羅"],
[8264141345021879123968, "娑攞荼"],
[16528282690043758247936, "謎魯陀"],
[33056565380087516495872, "契魯陀"],
[66113130760175032991744, "摩睹羅"],
[132226261520350065983488, "娑母羅"],
[264452523040700131966976, "阿野娑"],
[528905046081400263933952, "迦麼羅"],
[1057810092162800527867904, "摩伽婆"],
[2115620184325601055735808, "阿怛羅"],
[4231240368651202111471616, "醯魯耶"],
[8462480737302404222943232, "薜魯婆"],
[16924961474604808445886464, "羯羅波"],
[33849922949209616891772928, "訶婆婆"],
[67699845898419233783545856, "毘婆羅"],
[135399691796838467567091712, "那婆羅"],
[270799383593676935134183424, "摩攞羅"],
[541598767187353870268366848, "娑婆羅"],
[1083197534374707740536733696, "迷攞普"],
[2166395068749415481073467392, "者麼羅"],
[4332790137498830962146934784, "駄麼羅"],
[8665580274997661924293869568, "鉢攞麼陀"],
[17331160549995323848587739136, "毘迦摩"],
[34662321099990647697175478272, "烏波跋多"],
[69324642199981295394350956544, "演説"],
[138649284399962590788701913088, "無尽"],
[277298568799925181577403826176, "出生"],
[554597137599850363154807652352, "無我"],
[1109194275199700726309615304704, "阿畔多"],
[2218388550399401452619230609408, "青蓮華"],
[4436777100798802905238461218816, "鉢頭摩"],
[8873554201597605810476922437632, "僧祇"],
[17747108403195211620953844875264, "趣"],
[35494216806390423241907689750528, "至"],
[70988433612780846483815379501056, "阿僧祇"],
[141976867225561692967630759002112, "阿僧祇転"],
[283953734451123385935261518004224, "無量"],
[567907468902246771870523036008448, "無量転"],
[1135814937804493543741046072016896, "無辺"],
[2271629875608987087482092144033792, "無辺転"],
[4543259751217974174964184288067584, "無等"],
[9086519502435948349928368576135168, "無等転"],
[18173039004871896699856737152270336, "不可数"],
[36346078009743793399713474304540672, "不可数転"],
[72692156019487586799426948609081344, "不可称"],
[145384312038975173598853897218162688, "不可称転"],
[290768624077950347197707794436325376, "不可思"],
[581537248155900694395415588872650752, "不可思転"],
[1163074496311801388790831177745301504, "不可量"],
[2326148992623602777581662355490603008, "不可量転"],
[4652297985247205555163324710981206016, "不可説"],
[9304595970494411110326649421962412032, "不可説転"],
[18609191940988822220653298843924824064, "不可説不可説"],
[37218383881977644441306597687849648128, "不可説不可説転"],
].reverse
Rしヴぁう = {
:b => :u,
:c => :u,
:d => :o,
:f => :u,
:g => :u,
:h => :u,
:j => :u,
:k => :u,
:l => :u,
:m => :u,
:n => :u,
:p => :u,
:q => :u,
:r => :u,
:s => :u,
:t => :o,
:v => :u,
:w => :u,
:x => :u,
:y => :u,
:z => :u,
}
R平 = {
:a => :あ, :i => :い, :u => :う, :e => :え, :o => :お,
:ba => :ば, :bi => :び, :bu => :ぶ, :be => :べ, :bo => :ぼ,
:ca => :か, :ci => :き, :cu => :く, :ce => :け, :co => :こ,
:da => :だ, :di => :どぃ, :du => :どぅ, :de => :で, :do => :ど,
:fa => :ふぁ, :fi => :ふぃ, :fu => :ふ, :fe => :ふぇ, :fo => :ふぉ,
:ga => :が, :gi => :ぎ, :gu => :ぐ, :ge => :げ, :go => :ご,
:ha => :は, :hi => :ひ, :hu => :ふ, :he => :へ, :ho => :ほ,
:ja => :じぁ, :ji => :じ, :ju => :じぅ, :je => :じぇ, :jo => :じぉ,
:ka => :か, :ki => :き, :ku => :く, :ke => :け, :ko => :こ,
:la => :ら, :li => :り, :lu => :る, :le => :れ, :lo => :ろ,
:ma => :ま, :mi => :み, :mu => :む, :me => :め, :mo => :も,
:na => :な, :ni => :に, :nu => :ぬ, :ne => :ね, :no => :の,
:pa => :ぱ, :pi => :ぴ, :pu => :ぷ, :pe => :ぺ, :po => :ぽ,
:qa => :か, :qi => :き, :qu => :く, :qe => :け, :qo => :こ,
:ra => :ら, :ri => :り, :ru => :る, :re => :れ, :ro => :ろ,
:sa => :さ, :si => :すぃ, :su => :す, :se => :せ, :so => :そ,
:ta => :た, :ti => :てぃ, :tu => :とぅ, :te => :て, :to => :と,
:va => :ヴぁ, :vi => :ヴぃ, :vu => :ヴぅ, :ve => :ヴぇ, :vo => :ヴぉ,
:wa => :わ, :wi => :ゐ, :wu => :ゐぅ, :we => :ゑ, :wo => :を,
:xa => :くさ, :xi => :くすぃ, :xu => :くす, :xe => :くせ, :xo => :くそ,
:ya => :いぁ, :yi => :いぃ, :yu => :いぅ, :ye => :いぇ, :yo => :いぉ,
:za => :ざ, :zi => :ずぃ, :zu => :ず, :ze => :ぜ, :zo => :ぞ,
}
R片 = {
:が => :ガ,:ぎ => :ギ,:ぐ => :グ,:げ => :ゲ,:ご => :ゴ,
:ざ => :ザ,:じ => :ジ,:ず => :ズ,:ぜ => :ゼ,:ぞ => :ゾ,
:だ => :ダ,:ぢ => :ヂ,:づ => :ヅ,:で => :デ,:ど => :ド,
:ば => :バ,:び => :ビ,:ぶ => :ブ,:べ => :ベ,:ぼ => :ボ,
:ぱ => :パ,:ぴ => :ピ,:ぷ => :プ,:ぺ => :ペ,:ぽ => :ポ,
:あ => :ア,:い => :イ,:う => :ウ,:え => :エ,:お => :オ,
:か => :カ,:き => :キ,:く => :ク,:け => :ケ,:こ => :コ,
:さ => :サ,:し => :シ,:す => :ス,:せ => :セ,:そ => :ソ,
:た => :タ,:ち => :チ,:つ => :ツ,:て => :テ,:と => :ト,
:な => :ナ,:に => :ニ,:ぬ => :ヌ,:ね => :ネ,:の => :ノ,
:は => :ハ,:ひ => :ヒ,:ふ => :フ,:へ => :ヘ,:ほ => :ホ,
:ま => :マ,:み => :ミ,:む => :ム,:め => :メ,:も => :モ,
:ら => :ラ,:り => :リ,:る => :ル,:れ => :レ,:ろ => :ロ,
:わ => :ワ,:を => :ヲ,:ゑ => :ヱ,:ゐ => :ヰ,:ヴ => :ヴ,
:ぁ => :ァ,:ぃ => :ィ,:ぅ => :ゥ,:ぇ => :ェ,:ぉ => :ォ,
:ゃ => :ャ,:ゅ => :ュ,:ょ => :ョ,
:や => :ヤ,:ゆ => :ユ,:よ => :ヨ,
:ん => :ン,:っ => :ッ,:ゎ => :ヮ,
}
def 鍵文字を登録
R鍵文字.each_pair do |甲,乙|
Unparser::Constants.const_set 乙[0], 乙[1].to_s
Unparser::Emitter::REGISTRY[乙[1].to_sym] = Unparser::Emitter::REGISTRY[甲.to_sym]
end
Unparser::Emitter::Repetition::MAP[:while] = R鍵文字[:while][1].to_s
Unparser::Emitter::Repetition::MAP[:until] = R鍵文字[:until][1].to_s
Unparser::Emitter::FlowModifier::MAP[:return] = R鍵文字[:return][1].to_s
Unparser::Emitter::FlowModifier::MAP[:next] = R鍵文字[:next][1].to_s
Unparser::Emitter::FlowModifier::MAP[:break] = R鍵文字[:break][1].to_s
Unparser::Emitter::FlowModifier::MAP[:or] = R鍵文字[:or][1].to_s
Unparser::Emitter::FlowModifier::MAP[:and] = R鍵文字[:and][1].to_s
Unparser::Emitter::FlowModifier::MAP[:BEGIN] = R鍵文字[:BEGIN][1].to_s
Unparser::Emitter::FlowModifier::MAP[:END] = R鍵文字[:END][1].to_s
end
class Float
def inspect
フロートの文字化(self)
end
end
class BigDecimal
def inspect
フロートの文字化(self.to_s('F'))
end
end
class Integer
def inspect
整数の文字化(self)
end
end
class Fixnum
def inspect
整数の文字化(self)
end
end
class Bignum
def inspect
整数の文字化(self)
end
end
def 整数の文字化(整数)
数字 = 整数.to_s
if 数字.size <= 7
return 数字.chars.map{|甲|R数字行列[甲]}.join
else
乙 = INT_TABLE.find{|甲|甲[0] < 数字.size}
整数の文字化(数字[0...-乙[0]]) + 乙[1] + 整数の文字化(数字[(-乙[0])..-1])
end
end
def フロートの文字化(フロート)
甲 = フロート.to_s.split(?.)
甲[0] = 整数の文字化(甲[0])
甲[1] = 甲[1].chars.map{|乙|R数字行列[乙]}.join
甲.join(?点)
end
def 文字を翻訳(文字)
平片 = :hira
文字.scan(/([^aeiou])?(\1)?([yj])?([aeiou])?/i).map do |子音甲,子音乙,子音丙,母音|
母音 = 母音.to_s
if 子音甲.nil? && 母音.empty?
nil
else
平片 = :kata if (子音甲||母音).downcase!=(子音甲||母音)
子音甲,子音乙,子音丙,母音 = [子音甲,子音乙,子音丙,母音].map{|x| x ? x.downcase : x }
if 母音.empty?
母音 = Rしヴぁう[子音甲.to_sym].to_s
end
# hu => ひゅ, qu => きゅ
if 母音=="u" && (子音甲=="h"||子音甲=="q")
子音丙 = "y"
end
# ja,ju,jo => じゃ、じゅ,じょ
if (母音=="a"||母音=="u"||母音=="o") && 子音甲 == "j"
子音丙 = "y"
end
# 拗音
if 子音丙
if [:a,:u,:o].include?(母音)
子音丙 = case 母音
when :a ; :ゃ
when :u ; :ゅ
when :o ; :ょ
end
母音 = :i
else
子音丙 = nil
end
end
# basic syllable
仮名 = R平[(子音甲.to_s+母音).to_sym].to_s
# 促音
if 子音乙
if %w[ま み む め も な に ぬ ね の].include?(子音乙)
仮名 = "ん" + 仮名
else
仮名 = "っ" + 仮名
end
end
# 拗音
if 子音丙
仮名 = 仮名 + 子音丙
end
# lowercase => hiragana, uppercase => katakana
if 平片==:kata
仮名 = 仮名.gsub(/./){|丁|R片[丁.to_sym]}.to_s
end
仮名
end
end.compact.join
end
def 文を翻訳(文)
文.scan(/(([a-z]+|[0-9]+|[^a-z0-9]+))/i).map do |文字,_|
if 文字.index(/[a-z]/i)
文字を翻訳(文字)
elsif 文字.index(/[0-9]/)
整数の文字化(文字)
else
文字
end
end.compact.join
end
def 翻訳(文章=nil)
if 文章.empty? || 文章.nil?
文章
else
if 甲 = R翻訳行列[文章.to_sym]
甲
elsif 甲 = R翻訳メモリー[文章]
甲
else
甲 = 文を翻訳(文章.to_s)
R翻訳メモリー[文章] = 甲
end
end
end
def ノード毎に(幹,&塊)
if 幹.is_a? Parser::AST::Node
子供 = 幹.children
yield 幹.type,子供
幹.children.each{|甲|ノード毎に(甲,&塊)}
if 甲 = R鍵文字[幹.type]
幹.instance_variable_set(:@type,甲[1]) if [:self,:true,:false,:nil].include?(幹.type)
end
end
end
def 幹を翻訳(幹)
ノード毎に(幹) do |類,子|
case 類
when :arg
子[0] = 翻訳(子[0]).to_sym
when :blockarg
子[0] = 翻訳(子[0]).to_sym
when :casgn
子[1] = ('C_'+翻訳(子[1]).to_s).to_sym
when :const
子[1] = 翻訳(子[1]).to_sym
when :def
子[0] = 翻訳(子[0]).to_sym
when :int
when :kwoptarg
子[0] = 翻訳(子[0]).to_sym
when :lvar
子[0] = 翻訳(子[0]).to_sym
when :lvasgn
子[0] = 翻訳(子[0]).to_sym
when :optarg
子[0] = 翻訳(子[0]).to_sym
when :restarg
子[0] = 翻訳(子[0]).to_sym
when :send
子[1] = 翻訳(子[1]).to_sym
when :str
子[0] = 翻訳(子[0]).to_s
when :sym
子[0] = 翻訳(子[0]).to_sym
end
end
end
def ノートを翻訳(ノート)
ノート.each do |子|
テキスト = 子.text
if テキスト[0] == '#'
子.instance_variable_set(:@text,"#" + 翻訳(テキスト[1..-1]))
else
子.instance_variable_set(:@text,"=開始\n" + 翻訳(テキスト[6..-6]) + "\n=此処迄\n")
end
end
end
########
# main #
########
# register keywords
鍵文字を登録
# read input, translate, and print result
コード = STDIN.read
コード.encode(Encoding::UTF_8)
コード = "#encoding:utf-8\n" + コード
幹, ノート = Parser::CurrentRuby.parse_with_comments(コード)
幹を翻訳(幹)
ノートを翻訳(ノート)
STDOUT.write Unparser.unparse(幹,ノート)
```
Run on itself, omitting some translation tables etc:
```
#えぬこどぃぬぐ:うとふ-捌
# えぬこどぃぬぐ:うとふ-捌
取り込む("ぱるせる/くっれぬと")
# すぺる はくく, どぬ'と とる とひす あと ほめ!!
クラス 配列
定義 凍結
自身
此処迄
此処迄
クラス ハッシュ表
定義 凍結
自身
此処迄
此処迄
クラス パルセル::アスト::ノデ
定義 凍結
自身
此処迄
此処迄
取り込む("うぬぱるせる")
クラス パルセル::ソウルケ::コッメヌト
定義 凍結
自身
此処迄
此処迄
定義 鍵文字を登録
ル鍵文字.えあくふ_ぱいる 実行 |甲, 乙|
ウヌパルセル::コヌスタヌトス.こぬすと_せと(乙[零], 乙[壹].と_す)
ウヌパルセル::エミッテル::レギストル[乙[壹].と_すむ] = ウヌパルセル::エミッテル::レギストル[甲.と_すむ]
此処迄
ウヌパルセル::エミッテル::レペティティオヌ::マプ[:ゐぅひれ] = ル鍵文字[:ゐぅひれ][壹].と_す
ウヌパルセル::エミッテル::レペティティオヌ::マプ[:うぬてぃる] = ル鍵文字[:うぬてぃる][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:れとぅるぬ] = ル鍵文字[:れとぅるぬ][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:ねくすと] = ル鍵文字[:ねくすと][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:ぶれあく] = ル鍵文字[:ぶれあく][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:おる] = ル鍵文字[:おる][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:あぬど] = ル鍵文字[:あぬど][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:ベギヌ] = ル鍵文字[:ベギヌ][壹].と_す
ウヌパルセル::エミッテル::フロヰゥモドィフィエル::マプ[:エヌド] = ル鍵文字[:エヌド][壹].と_す
此処迄
クラス 浮動小数点数
定義 検査
フロートの文字化(自身)
此処迄
此処迄
クラス ビグデキマル
定義 検査
フロートの文字化(自身.と_す("フ"))
此処迄
此処迄
クラス 整数
定義 検査
整数の文字化(自身)
此処迄
此処迄
クラス 固定長整数
定義 検査
整数の文字化(自身)
此処迄
此処迄
クラス 多倍長整数
定義 検査
整数の文字化(自身)
此処迄
此処迄
定義 整数の文字化(整数)
数字 = 整数.と_す
若し (数字.すぃぜ <= 漆)
戻る 数字.くはるす.まぷ 実行 |甲|
ル数字行列[甲]
此処迄.じぉいぬ
違えば
乙 = イヌト_タブレ.ふぃぬど 実行 |甲|
甲[零] < 数字.すぃぜ
此処迄
(整数の文字化(数字[零...(-乙[零])]) + 乙[壹]) + 整数の文字化(数字[(-乙[零])..壹])
此処迄
此処迄
定義 フロートの文字化(フロート)
甲 = フロート.と_す.すぷりと(".")
甲[零] = 整数の文字化(甲[零])
甲[壹] = 甲[壹].くはるす.まぷ 実行 |乙|
ル数字行列[乙]
此処迄.じぉいぬ
甲.じぉいぬ("点")
此処迄
定義 文字を翻訳(文字)
平片 = :ひら
文字.すかぬ(/([^あえいおう])?(\壹)?([いぅ])?([あえいおう])?/i).まぷ 実行 |子音甲, 子音乙, 子音丙, 母音|
母音 = 母音.と_す
若し (子音甲.にる? && 母音.えむぷと?)
無
違えば
若し ((子音甲 || 母音).どゐぅぬかせ != (子音甲 || 母音))
平片 = :かた
此処迄
子音甲, 子音乙, 子音丙, 母音 = [子音甲, 子音乙, 子音丙, 母音].まぷ 実行 |くす|
若し くす
くす.どゐぅぬかせ
違えば
くす
此処迄
此処迄
若し 母音.えむぷと?
母音 = ルしヴぁう[子音甲.と_すむ].と_す
此処迄
# ふ => ひゅ, く => きゅ
若し ((母音 == "う") && ((子音甲 == "ふ") || (子音甲 == "く")))
子音丙 = "いぅ"
此処迄
# じぁ,じぅ,じぉ => じゃ、じゅ,じょ
若し ((((母音 == "あ") || (母音 == "う")) || (母音 == "お")) && (子音甲 == "じぅ"))
子音丙 = "いぅ"
此処迄
# 拗音
若し 子音丙
若し [:あ, :う, :お].いぬくるで?(母音)
子音丙 = 条件分岐 母音
場合 :あ
:ゃ
場合 :う
:ゅ
場合 :お
:ょ
此処迄
母音 = :い
違えば
子音丙 = 無
此処迄
此処迄
# ばすぃく すっらぶれ
仮名 = ル平[(子音甲.と_す + 母音).と_すむ].と_す
# 促音
若し 子音乙
若し ["ま", "み", "む", "め", "も", "な", "に", "ぬ", "ね", "の"].いぬくるで?(子音乙)
仮名 = ("ん" + 仮名)
違えば
仮名 = ("っ" + 仮名)
此処迄
此処迄
# 拗音
若し 子音丙
仮名 = (仮名 + 子音丙)
此処迄
# ろゑるかせ => ひらがな, うっぺるかせ => かたかな
若し (平片 == :かた)
仮名 = 仮名.全文字列置換(/./) 実行 |丁|
ル片[丁.と_すむ]
此処迄.と_す
此処迄
仮名
此処迄
此処迄.こむぱくと.じぉいぬ
此処迄
定義 文を翻訳(文)
文.すかぬ(/(([あ-ず]+|[零-玖]+|[^あ-ず零-玖]+))/i).まぷ 実行 |文字, _|
若し 文字.いぬでくす(/[あ-ず]/i)
文字を翻訳(文字)
違えば
若し 文字.いぬでくす(/[零-玖]/)
整数の文字化(文字)
違えば
文字
此処迄
此処迄
此処迄.こむぱくと.じぉいぬ
此処迄
定義 翻訳(文章 = 無)
若し (文章.えむぷと? || 文章.にる?)
文章
違えば
若し (甲 = ル翻訳行列[文章.と_すむ])
甲
違えば
若し (甲 = ル翻訳メモリー[文章])
甲
違えば
甲 = 文を翻訳(文章.と_す)
ル翻訳メモリー[文章] = 甲
此処迄
此処迄
此処迄
此処迄
定義 ノード毎に(幹, &塊)
若し 幹.いす_あ?(パルセル::アスト::ノデ)
子供 = 幹.くひるどれぬ
ブロックを呼び出す(幹.とぺ, 子供)
幹.くひるどれぬ.えあくふ 実行 |甲|
ノード毎に(甲, &塊)
此処迄
若し (甲 = ル鍵文字[幹.とぺ])
若し [:せるふ, :とるえ, :ふぁるせ, :にる].いぬくるで?(幹.とぺ)
幹.いぬすたぬけ_ヴぁりあぶれ_せと(:@とぺ, 甲[壹])
此処迄
此処迄
此処迄
此処迄
定義 幹を翻訳(幹)
ノード毎に(幹) 実行 |類, 子|
条件分岐 類
場合 :あるぐ
子[零] = 翻訳(子[零]).と_すむ
場合 :ぶろくかるぐ
子[零] = 翻訳(子[零]).と_すむ
場合 :かすぐぬ
子[壹] = ("ク_" + 翻訳(子[壹]).と_す).と_すむ
場合 :こぬすと
子[壹] = 翻訳(子[壹]).と_すむ
場合 :でふ
子[零] = 翻訳(子[零]).と_すむ
場合 :いぬと
場合 :くをぷたるぐ
子[零] = 翻訳(子[零]).と_すむ
場合 :るヴぁる
子[零] = 翻訳(子[零]).と_すむ
場合 :るヴぁすぐぬ
子[零] = 翻訳(子[零]).と_すむ
場合 :おぷたるぐ
子[零] = 翻訳(子[零]).と_すむ
場合 :れすたるぐ
子[零] = 翻訳(子[零]).と_すむ
場合 :せぬど
子[壹] = 翻訳(子[壹]).と_すむ
場合 :すとる
子[零] = 翻訳(子[零]).と_す
場合 :すむ
子[零] = 翻訳(子[零]).と_すむ
此処迄
此処迄
此処迄
定義 ノートを翻訳(ノート)
ノート.えあくふ 実行 |子|
テキスト = 子.てくすと
若し (テキスト[零] == "#")
子.いぬすたぬけ_ヴぁりあぶれ_せと(:@てくすと, "#" + 翻訳(テキスト[壹..壹]))
違えば
子.いぬすたぬけ_ヴぁりあぶれ_せと(:@てくすと, ("=開始\n" + 翻訳(テキスト[陸..陸])) + "\n=此処迄\n")
此処迄
此処迄
此処迄
########
# まいぬ #
########
# れぎすてる けいぅをるどす
鍵文字を登録
# れあど いぬぷと, とらぬすらて, あぬど ぷりぬと れすると
コード = ストドィヌ.れあど
コード.えぬこで(エヌコドィヌグ::ウトフ_捌)
コード = ("#えぬこどぃぬぐ:うとふ-捌\n" + コード)
幹, ノート = パルセル::クッレヌトルブ.ぱるせ_ゐとふ_こっめぬとす(コード)
幹を翻訳(幹)
ノートを翻訳(ノート)
ストドウト.ゐぅりて(ウヌパルセル.うぬぱるせ(幹, ノート))
```
or
```
# Output "I love Ruby"
say = "I love Ruby"
puts say
# Output "I *LOVE* RUBY"
say['love'] = "*love*"
puts say.upcase
# Output "I *love* Ruby"
# five times
5.times { puts say }
```
becomes
```
#えぬこどぃぬぐ:うとふ-捌
# オウトプト "イ ろヴぇ ルブ"
さいぅ = "イ ろヴぇ ルブ"
言う(さいぅ)
# オウトプト "イ *ロヴェ* ルブ"
さいぅ["ろヴぇ"] = "*ろヴぇ*"
言う(さいぅ.うぷかせ)
# オウトプト "イ *ろヴぇ* ルブ"
# ふぃヴぇ てぃめす
伍.てぃめす 実行
言う(さいぅ)
此処迄
```
[Answer]
# HTML5/ Javascript to French (HTML5 avec le Script au Caoua)
```
<script>
var a=document.currentScript.outerHTML;
alert(a.replace(/var a/g,"la variable «a»")
.replace(/alert\(/g,"alerter(")
.replace(/=/g," est ")
.replace(/outerHTML/g,"HTMLExtérieur")
.replace(/\.replace\((.+)\,(.+)\)/g," avec $1 remplacé par $2")
.replace(/\/\*and\*\//g," et")
.replace(/"(.+?)"/g,"«$1»")
/*and*/.replace(/currentScript/g,"scriptCourant")
);
</script>
```
Output:
```
<script>
la variable «a» est document.scriptCourant.HTMLExtérieur;
alerter(a avec /la variable «a»/g remplacé par «la variable «a»»
avec /alert\(/g remplacé par «alerter(»
avec / est /g remplacé par « est »
avec /HTMLExtérieur/g remplacé par «HTMLExtérieur»
avec /\.replace\((.+)\,(.+)\)/g remplacé par « avec $1 remplacé par $2»
avec /\/\*and\*\//g remplacé par « et»
avec /«(.+?)»/g remplacé par ««$1»»
et avec /scriptCourant/g remplacé par «scriptCourant»
);
</script>
```
[Answer]
# JavaScript, French – CauoaScript
```
var input = prompt('Enter code');
var translations = {
'alert': 'informe',
'code': 'le code',
'else': 'sinon',
'Enter': 'Entrez',
'if': 'si',
'input': 'donnée',
'function': 'fonction',
'output': 'résultat',
'prompt': 'soulève',
'replace': 'remplace',
'replacement': 'pièceDeReplacement',
'return': 'remet',
'translate': 'traduit',
'translations': 'traductions',
'typeof': 'typede',
'undefined': 'indéterminé',
'var': 'var',
'w': 'm', // word
'word': 'mot'
};
var output = input.replace(/(["'])(.*?[^\\])?\1/g, '« $2 »')
.replace(/\w+/g, function(word) {
var replacement = translations[word];
if (typeof replacement != 'undefined') {
return replacement;
} else {
return word;
}
});
alert(output);
```
I know there is already a JavaScript + French answer, but mine uses different translations and coding methods.
The code is quite straightforward: it iterates through all words in the input code, and replaces them with their corresponding French word from the `translations` object. If the word is not listed, it is not changed.
French uses « [Guillemets](https://en.wikipedia.org/wiki/Guillemet) » instead of quotation marks, so it first makes strings uses those. (Yes, it uses regu͘͜l̴͝a͘͜͠r͏͏ ̶̸͢e̵͜x̸͝pr̵͞͞e͘͘s̵ś̸̷i͝o̴ns̴͜ to parse strings, so it doesn't always work perfectly.) Here is the output when run on itself:
```
var donnée = soulève(« Entrez le code »);
var traductions = {
« informe »: « informe »,
« le code »: « le le code »,
...
« mot »: « mot »
};
var résultat = donnée.remplace(/(["« ])(.*?[^\\])?\1/g, »« $2 »')
.remplace(/\m+/g, fonction(mot) {
var pièceDeReplacement = traductions[mot];
si (typede pièceDeReplacement != « indéterminé ») {
remet pièceDeReplacement;
} sinon {
remet mot;
}
});
informe(résultat);
```
You can use the Stack Snippet below to easily run the code.
```
// CaouaScript
var translate = function(input) {
var input = document.getElementById('input').value;
var translations = {
'alert': 'informe',
'code': 'le code',
'else': 'sinon',
'Enter': 'Entrez',
'if': 'si',
'input': 'donnée',
'function': 'fonction',
'output': 'résultat',
'prompt': 'soulève',
'replace': 'remplace',
'replacement': 'pièceDeReplacement',
'return': 'remet',
'translate': 'traduit',
'translations': 'traductions',
'typeof': 'typede',
'undefined': 'indéterminé',
'var': 'var',
'w': 'm', // word
'word': 'mot'
};
var output = input.replace(/(["'])(.*?[^\\])?\1/g, '« $2 »')
.replace(/\w+/g, function(word) {
var replacement = translations[word];
if (typeof replacement != 'undefined') {
return replacement;
} else {
return word;
}
});
return output;
}
document.getElementById('go').onclick = function(){
var input = document.getElementById('input').value;
var output = translate(input);
document.getElementById('output').innerHTML = output;
};
```
```
<textarea id="input" rows="20" cols="70">
var input = prompt('Enter code');
var translations = {
'alert': 'informe',
'code': 'le code',
'else': 'sinon',
'Enter': 'Entrez',
'if': 'si',
'input': 'donnée',
'function': 'fonction',
'output': 'résultat',
'prompt': 'soulève',
'replace': 'remplace',
'replacement': 'pièceDeReplacement',
'return': 'remet',
'translate': 'traduit',
'translations': 'traductions',
'typeof': 'typede',
'undefined': 'indéterminé',
'var': 'var',
'w': 'm', // word
'word': 'mot'
};
var output = input.replace(/(["'])(.*?[^\\])?\1/g, '« $2 »')
.replace(/\w+/g, function(word) {
var replacement = translations[word];
if (typeof replacement != 'undefined') {
return replacement;
} else {
return word;
}
});
alert(output);</textarea>
<button id="go">Go</button>
<pre><samp id="output"></samp></pre>
```
[Answer]
# Commodore 64 BASIC - Bosnian/Croatian/Serbian
```
10 FOR I=40960 TO 49151:POKE I,PEEK(I):NEXT
20 DATA "KRAJ","ZA","OPET","PODACI","UZM#","UZMI","DIM","CITAJ","DE"
30 DATA "HAJD","TRCI","AKO","VRATI","IDIU","NAZAD","KOM","STOJ","NA"
40 DATA "CEKAJ","UCITAJ","SPASI","VIDI","DEF","GURNI","PIS#","PISI"
50 DATA "NAST","POPIS","BRIS","KOM","SIS","OTVORI","ZATVORI","UZMI"
60 DATA "NOV","TAB(","DO","FU","RAZ(","ONDA","NE","KORAK","+","-"
70 DATA "*","/","↑","I","ILI",">","=","<","ZN","C","ABS","KOR"
80 DATA "SLO","POZ","KOR","SLU","LOG","EKS","KOS","SIN","TAN","ATN"
90 DATA "VIRI","DUZ","NIZ$","VRI","ASK","KAR$","LEVO$","DESNO$","SRE$"
100 DATA "ID",""
110 D=41118
120 READ A$
130 IF A$="" THEN 210
140 L=LEN(A$)
150 IF L=1 THEN 190
160 FOR I=1 TO L-1
170 POKE D,ASC(MID$(A$,I,1)):D=D+1
180 NEXT
190 POKE D,ASC(MID$(A$,L,1))+128:D=D+1
200 GOTO 120
210 POKE 1, PEEK(1) AND 254
```
This actually replaces BASIC keywords with the translated ones, so you ~~can~~ *must* use them when you write new code.
![Bosnian BASIC](https://i.stack.imgur.com/fzbku.png)
How it works?
`FOR I=40960 TO 49151:POKE I,PEEK(I):NEXT`
Though it appears that this line does not do much, it in fact copies bytes from BASIC ROM to RAM. Data written to a ROM location is stored in the RAM at the same address.
The last line in the program switches to the RAM copy of BASIC:
`POKE 1,PEEK(1) AND 254`
Memory adresses 41118-41373 contain a complete list of the reserved BASIC keywords. The ASCII characters of these words are stored in token number order. Bit #7 of the last letter of each word is set to indicate the end of the word (ASCII value + 128).
Lines 20-100 contain the translated keywords. Lines 110-200 read the keywords in the memory as described above.
[Answer]
# PHP - Portuguese (pt-PT/semi pt-BR)
This turned out quite complex, and giant!
```
<?
echo preg_replace_callback(
'@\b([\wâêçãáú]+)\b|(?:[\$\>]|[=\.]=|=\>?|&&)@i',
function($match){
$word = $match[0];
if($word == '_')
{
return '_';
}
$list = array(
'echo' => 'ecoar',
'match' => 'equivalência',
'array' => 'conjunto',
'file' => 'ficheiro',
'replace' => 'substitui',
'callback' => 'executável',
'function' => 'função',
'list' => 'lista',
'if' => 'se',
'else' => 'senão',
'word' => 'palavra',
'piece' => 'pedaço',
'pieces' => 'pedaços',
'explode' => 'explosão',
'implode' => 'implosão',
'count' => 'conta',
'tmp' => 'temporário',
'k' => 'chave',
'get' => 'busca',
'contents' => 'conteúdos',
'preg' => 'expressão_regular',
'as' => 'como',
'return' => 'retorna',
'use' => 'utiliza',
'strtoupper' => 'corda_para_maiúscula',
'strtolower' => 'corda_para_minúscula',
'unset' => 'remover_definição',
'isset' => 'está_definido',
'str' => 'corda',
'$' => '€',
'.=' => '.=',
'=>' => 'recebe',
'==' => 'igual',
'=' => 'atribuí',
'>' => 'maior_que',
'&&' => 'e'
);
if($word[0] == '_' && $word[1] == '_')
{
return preg_replace_callback(
'@([A-Z]+)@',
function($word) use (&$list){
return strtoupper($list[strtolower($word[1])]);
},
$word
);
}
else
{
$word = explode('_', $word);
$pieces = count($word);
if( $pieces > 1 )
{
$tmp = $word[0];
$word[0] = $word[1];
$word[1] = $tmp;
unset($tmp);
}
foreach($word as $k => $piece)
{
$word[$k] = isset($list[$piece])?$list[$piece]:$piece;
if( $k == 0 && $pieces > 1 )
{
$word[$k] .= 'r';
}
}
return implode('_', $word);
}
},
file_get_contents(__FILE__)
);
```
Remember that this code was made to match with itself! It may work partially with other codes.
---
## Output, translated:
```
<?
ecoar substituir_expressão_regular_executável(
'@\b([\wâêçãáú]+)\b|(?:[\€\maior_que]|[atribuí\.]atribuí|atribuí\maior_que?|e)@i',
função(€equivalência){
€palavra atribuí €equivalência[0];
se(€palavra igual '_')
{
retorna '_';
}
€lista atribuí conjunto(
'ecoar' recebe 'ecoar',
'equivalência' recebe 'equivalência',
'conjunto' recebe 'conjunto',
'ficheiro' recebe 'ficheiro',
'substitui' recebe 'substitui',
'executável' recebe 'executável',
'função' recebe 'função',
'lista' recebe 'lista',
'se' recebe 'se',
'senão' recebe 'senão',
'palavra' recebe 'palavra',
'pedaço' recebe 'pedaço',
'pedaços' recebe 'pedaços',
'explosão' recebe 'explosão',
'implosão' recebe 'implosão',
'conta' recebe 'conta',
'temporário' recebe 'temporário',
'chave' recebe 'chave',
'busca' recebe 'busca',
'conteúdos' recebe 'conteúdos',
'expressão_regular' recebe 'regularr_expressão',
'como' recebe 'como',
'retorna' recebe 'retorna',
'utiliza' recebe 'utiliza',
'corda_para_maiúscula' recebe 'parar_corda_maiúscula',
'corda_para_minúscula' recebe 'parar_corda_minúscula',
'remover_definição' recebe 'definiçãor_remover',
'está_definido' recebe 'definidor_está',
'corda' recebe 'corda',
'€' recebe '€',
'.=' recebe '.=',
'recebe' recebe 'recebe',
'igual' recebe 'igual',
'atribuí' recebe 'atribuí',
'maior_que' recebe 'quer_maior',
'e' recebe 'e'
);
se(€palavra[0] igual '_' e €palavra[1] igual '_')
{
retorna substituir_expressão_regular_executável(
'@([A-Z]+)@',
função(€palavra) utiliza (&€lista){
retorna corda_para_maiúscula(€lista[corda_para_minúscula(€palavra[1])]);
},
€palavra
);
}
senão
{
€palavra atribuí explosão('_', €palavra);
€pedaços atribuí conta(€palavra);
se( €pedaços maior_que 1 )
{
€temporário atribuí €palavra[0];
€palavra[0] atribuí €palavra[1];
€palavra[1] atribuí €temporário;
remover_definição(€temporário);
}
foreach(€palavra como €chave recebe €pedaço)
{
€palavra[€chave] atribuí está_definido(€lista[€pedaço])?€lista[€pedaço]:€pedaço;
se( €chave igual 0 e €pedaços maior_que 1 )
{
€palavra[€chave] .= 'r';
}
}
retorna implosão('_', €palavra);
}
},
buscar_ficheiro_conteúdos(__FICHEIRO__)
);
```
---
I've tried to respect the grammar as much as possible.
An example is right in the first line:
```
echo preg_replace_callback
```
Echo is an action, and actions are verbs. All verbs in portuguese end with `r`.
Translating `echo` without context would be `eco`, while in the context it has to be `ecoar` ('making an echo').
Also, the function `preg_replace_callback` has a unique thing.
The action must be the first word.
Translated literally, it would be `expressão_regular_substitui_executável`, which is terribly translated!(It means `replace the callback using a regular expression`)
Therefore, special care must be taken and swap the first and second words, so it is `substituir_expressão_regular_executável`, which is a little better.
Other functions, like `count`, are left without `r` to detonate an order (like if you were being bossy).
Some words turned out weird...
`string` means `corda`, but if I translated it correctly, it would be `cadeia contínua/ininterrupta de caracteres`.
To add on all that, I've also translated some symbols and operators (`$`, `=`, `=>`).
Thank you [@DLosc](https://codegolf.stackexchange.com/users/16766/dlosc) for the idea of translating `$` into `€`.
[Answer]
## Fondamentale Visuale .RETE - *Visual Basic .NET, translated to ITALIAN*
The program is much simple (aimed at translating itself).
Some points:
* I/O : this is a module with a obvious function to be called
* grammar is mostly correct (feels almost natural)
* english and italian word position is different so i could not (easily) write some function to fix that, and preferred static translation pairs
* i have conjugated imperative verbs to the 2nd person, as in a literal italian translation they would sound and feel wrong (as wrong as windows 8+ talking in 1d person)
* ~~the translation pairs are obfuscated so the english ones don't get also translated. thus, if there was an interpreter, the translated program would work~~ **i only left some `"+"` to avoid overtranslation** (many english words are contained in italian ones, so it would end up translating italian to italian with duplication of suffixes)
```
Module Italian
Dim Tokens As New List(Of Tuple(Of String, String))
Sub AddPair(a As String, b As String)
Tokens.Add(Tuple.Create(a, b))
End Sub
Sub init()
AddPair(" Italian", " Italia" + "no") : AddPair("Module", "Modulo")
AddPair("lacks", "non ha") : AddPair("AddPair", "AggiungiCoppia")
AddPair(" italian", " l'italiano")
AddPair("Next", "Appresso") : AddPair("Tokens", "Frammenti")
AddPair("init", "iniz") : AddPair(" As ", " Come ")
AddPair("Tuple", "Coppia") : AddPair("For Each", "Per Ogni")
AddPair("Of", "Di") : AddPair(" only", " e basta")
AddPair("Sub", "Proc") : AddPair("so i will add", "quindi aggiungerò")
AddPair("Function", "Funzione") : AddPair("Dim", "Def")
AddPair(" a ", " una ") : AddPair("support", "il s" + "upporto")
AddPair("used types", "i tipi utilizzati")
REM italian lacks a gender-indipendent form for adjectives
REM so i will add support for used types only
AddPair(" New List", " una Nuova Lista")
AddPair("Create", "Crea") : AddPair("End", "Fine")
AddPair("REM", "RIC") : AddPair(" for ", " per ")
AddPair("gender-indipendent form", "forma indipendente dal genere")
AddPair("String", "Sequenza") : AddPair("adjectives", "gli aggettivi")
AddPair(" TranslateToItalian", " TraduciInItaliano")
End Sub
Function TranslateToItalian(o As String) As String
Dim ret As String = o : init()
For Each t As Tuple(Of String, String) In Tokens
ret = ret.Replace(t.Item1, t.Item2)
Next
Return ret
End Function
End Module
```
**Italian, here we go!**
The result on itself:
```
Modulo Italiano
Def Frammenti Come una Nuova Lista(Di Coppia(Di Sequenza, Sequenza))
Proc AggiungiCoppia(a Come Sequenza, b Come Sequenza)
Frammenti.Add(Coppia.Crea(a, b))
Fine Proc
Proc iniz()
AggiungiCoppia(" Italiano", " Italia" + "no") : AggiungiCoppia("Modulo", "Modulo")
AggiungiCoppia("non ha", "non ha") : AggiungiCoppia("AggiungiCoppia", "AggiungiCoppia")
AggiungiCoppia(" l'italiano", " l'italiano")
AggiungiCoppia("Appresso", "Appresso") : AggiungiCoppia("Frammenti", "Frammenti")
AggiungiCoppia("iniz", "iniz") : AggiungiCoppia(" Come ", " Come ")
AggiungiCoppia("Coppia", "Coppia") : AggiungiCoppia("Per Ogni", "Per Ogni")
AggiungiCoppia("Di", "Di") : AggiungiCoppia(" e basta", " e basta")
AggiungiCoppia("Proc", "Proc") : AggiungiCoppia("quindi aggiungerò", "quindi aggiungerò")
AggiungiCoppia("Funzione", "Funzione") : AggiungiCoppia("Def", "Def")
AggiungiCoppia(" una ", " una ") : AggiungiCoppia("il supporto", "il s" + "upporto")
AggiungiCoppia("i tipi utilizzati", "i tipi utilizzati")
RIC l'italiano non ha una forma indipendente dal genere per gli aggettivi
RIC quindi aggiungerò il supporto per i tipi utilizzati e basta
AggiungiCoppia(" una Nuova Lista", " una Nuova Lista")
AggiungiCoppia("Crea", "Crea") : AggiungiCoppia("Fine", "Fine")
AggiungiCoppia("RIC", "RIC") : AggiungiCoppia(" per ", " per ")
AggiungiCoppia("forma indipendente dal genere", "forma indipendente dal genere")
AggiungiCoppia("Sequenza", "Sequenza") : AggiungiCoppia("gli aggettivi", "gli aggettivi")
AggiungiCoppia(" TraduciInItaliano", " TraduciInItaliano")
Fine Proc
Funzione TraduciInItaliano(o Come Sequenza) Come Sequenza
Def ret Come Sequenza = o : iniz()
Per Ogni t Come Coppia(Di Sequenza, Sequenza) In Frammenti
ret = ret.Replace(t.Item1, t.Item2)
Appresso
Return ret
Fine Funzione
Fine Modulo
```
[Answer]
# C, Spanish - C
Input/Output via STDIN/STDOUT (use `./c-spanish < c-spanish.c`).
If `extra = 0` is changed to `extra = 1`, then the output of this program is essentially a mutual quine. Otherwise, the output is a compilable C program that works like `cat`.
Extra spaces in the source are necessary (as they are replaced with characters in the Spanish version).
```
#define B(_, __) __ ## _
#define C(_, __) B(_,__)
#define char C(C(r, ha), c)
#define gets C(ets, g)
#define if C(f, i)
#define int C(C(ed, n), s##ig)
#define is ==
#define main C(C(n, ai), m)
#define puts C(C(s, t), C(u, p))
#define void C(id, C(o, v))
#define while(x) C(r, C(o, f))(;x;)
int x, y, extra = 0;
void count (char *sheep);
void try_replace (char *cake , char *bacon , char *sheep);
void translate(char *sheep){
char *array [] = {
"array ", "matriz", "bacon ", "tocino",
"cake ", "pastel", "char", "car ",
"count ", "cuenta", "gets ", "traec",
"if", "si", "int ", "ent ",
"is", "es", "main ", "principal",
"peace", "paz ", "puts", "ponc",
"sheep", "oveja", "translate", "traduce ",
"truth ", "verdad", "try_replace ", "trata_de_reemplazar",
"void", "nada", "war ", "guerra",
" while", "mientras",
};
int war = 19, peace = -1;
while(!(--war is peace)){
count (sheep);
int truth = x, cake = 0;
while(!(cake is truth )){
try_replace (&sheep[cake ], array [2 * war ], array [1 + 2 * war ]);
if(extra && !y)
try_replace (&sheep[cake ], array [1 + 2 * war ], array [2 * war ]);
++cake ;
}
}
}
int main (){
char bacon [9999];
while(gets (bacon )){
translate(bacon );
puts(bacon );
}
}
void count (char *sheep){
x = 0;
while(*sheep++ && ++x);
}
void try_replace (char *cake , char *bacon , char *sheep){
y = 0;
char *truth = bacon ;
while(*cake && *truth && *sheep && *cake is *truth )
++cake , ++truth , ++sheep;
if(!*truth ){
while(!(bacon is truth )) *--cake = *(--truth , --sheep);
y = 1;
}
}
```
Words translated:
```
array -> matriz
bacon -> tocino
cake -> pastel
char -> car (short for carácter)
count -> cuenta
gets -> traec (TRAE la Cadena)
if -> si
int -> ent (short for entero)
is -> es
main -> principal
peace -> paz
puts -> ponc (PON la Cadena)
sheep -> oveja
translate -> traduce
truth -> verdad
try_replace -> trata_de_reemplazar
void -> nada
war -> guerra
while -> mientras
```
## Output
**With `extra = 0`:**
```
#define B(_, __) __ ## _
#define C(_, __) B(_,__)
#define car C(C(r, ha), c)
#define traec C(ets, g)
#define si C(f, i)
#define ent C(C(ed, n), s##ig)
#define es ==
#define principal C(C(n, ai), m)
#define ponc C(C(s, t), C(u, p))
#define nada C(id, C(o, v))
#define mientras(x) C(r, C(o, f))(;x;)
ent x, y, extra = 0;
nada cuenta(car *oveja);
nada trata_de_reemplazar(car *pastel, car *tocino, car *oveja);
nada traduce (car *oveja){
car *matriz[] = {
"matriz", "matriz", "tocino", "tocino",
"pastel", "pastel", "car ", "car ",
"cuenta", "cuenta", "traec", "traec",
"si", "si", "ent ", "ent ",
"es", "es", "principal", "principal",
"paz ", "paz ", "ponc", "ponc",
"oveja", "oveja", "traduce ", "traduce ",
"verdad", "verdad", "trata_de_reemplazar", "trata_de_reemplazar",
"nada", "nada", "guerra", "guerra",
"mientras", "mientras",
};
ent guerra = 19, paz = -1;
mientras(!(--guerra es paz )){
cuenta(oveja);
ent verdad = x, pastel = 0;
mientras(!(pastel es verdad)){
trata_de_reemplazar(&oveja[pastel], matriz[2 * guerra], matriz[1 + 2 * guerra]);
si(extra && !y)
trata_de_reemplazar(&oveja[pastel], matriz[1 + 2 * guerra], matriz[2 * guerra]);
++pastel;
}
}
}
ent principal(){
car tocino[9999];
mientras(traec(tocino)){
traduce (tocino);
ponc(tocino);
}
}
nada cuenta(car *oveja){
x = 0;
mientras(*oveja++ && ++x);
}
nada trata_de_reemplazar(car *pastel, car *tocino, car *oveja){
y = 0;
car *verdad = tocino;
mientras(*pastel && *verdad && *oveja && *pastel es *verdad)
++pastel, ++verdad, ++oveja;
si(!*verdad){
mientras(!(tocino es verdad)) *--pastel = *(--verdad, --oveja);
y = 1;
}
}
```
**With `extra = 1`:**
```
#define B(_, __) __ ## _
#define C(_, __) B(_,__)
#define car C(C(r, ha), c)
#define traec C(ets, g)
#define si C(f, i)
#define ent C(C(ed, n), s##ig)
#define es ==
#define principal C(C(n, ai), m)
#define ponc C(C(s, t), C(u, p))
#define nada C(id, C(o, v))
#define mientras(x) C(r, C(o, f))(;x;)
ent x, y, extra = 1;
nada cuenta(car *oveja);
nada trata_de_reemplazar(car *pastel, car *tocino, car *oveja);
nada traduce (car *oveja){
car *matriz[] = {
"matriz", "array ", "tocino", "bacon ",
"pastel", "cake ", "car ", "char",
"cuenta", "count ", "traec", "gets ",
"si", "if", "ent ", "int ",
"es", "is", "principal", "main ",
"paz ", "peace", "ponc", "puts",
"oveja", "sheep", "traduce ", "translate",
"verdad", "truth ", "trata_de_reemplazar", "try_replace ",
"nada", "void", "guerra", "war ",
"mientras", " while",
};
ent guerra = 19, paz = -1;
mientras(!(--guerra es paz )){
cuenta(oveja);
ent verdad = x, pastel = 0;
mientras(!(pastel es verdad)){
trata_de_reemplazar(&oveja[pastel], matriz[2 * guerra], matriz[1 + 2 * guerra]);
si(extra && !y)
trata_de_reemplazar(&oveja[pastel], matriz[1 + 2 * guerra], matriz[2 * guerra]);
++pastel;
}
}
}
ent principal(){
car tocino[9999];
mientras(traec(tocino)){
traduce (tocino);
ponc(tocino);
}
}
nada cuenta(car *oveja){
x = 0;
mientras(*oveja++ && ++x);
}
nada trata_de_reemplazar(car *pastel, car *tocino, car *oveja){
y = 0;
car *verdad = tocino;
mientras(*pastel && *verdad && *oveja && *pastel es *verdad)
++pastel, ++verdad, ++oveja;
si(!*verdad){
mientras(!(tocino es verdad)) *--pastel = *(--verdad, --oveja);
y = 1;
}
}
```
[Answer]
# Ruby, Catalan - Rubí
It's quite a short code in ruby, so it's not that representative, but I've been a bit more verbose in the function names to show a bit more. This exercise remembered me too much of university classes where we used similar pseudocode to "program".
```
words = {
while: "mentre",
words: "paraules",
end: "fi",
nil: "res",
gets: "obtingues_cadena",
line: "línia",
each: "per_cada_una",
do: "fes",
original: "original",
replacement: "intercanvi",
gsub: "substitueix_globalment",
puts: "posa_cadena"
}
while (line = gets) != nil
words.each do |original,replacement|
line.gsub! original.to_s,replacement
end
puts line
end
```
Applied to itself becomes:
```
paraules = {
# Eliminat per simplificar codi
}
mentre (línia = obtingues_cadena) != res
paraules.per_cada_una fes |original,intercanvi|
línia.substitueix_globalment! original.to_s,intercanvi
fi
posa_cadena línia
fi
```
[Answer]
# Python 3, Lojban
Where I needed to reorder sumti places, I enclosed the words in brackets, e.g (te tcidu fe)
Code:
```
dictionary = [
('basti fa', 'with'),
('ro', 'for'),
("vidnyja'o", 'print'),
('nenri', 'in'),
('lujvo', 'word'),
('jbovlaste', 'dictionary'),
('basygau', 'replace'),
('(te tcidu fe)', 'read'),
('datnyvei','file'),
('vlamei', 'text'),
('kargau', 'open'),
('la .lojban.', 'lojban'),
('no', '0'),
('pa', '1'),
('as', ''),
('with', 'basti fa'),
('for', 'ro'),
('print', "vidnyja'o"),
('in', 'nenri'),
('word', 'lujvo'),
('dictionary', 'jbovlaste'),
('replace', 'basygau'),
('read', '(te tcidu fe)'),
('file', 'datnyvei'),
('text', 'vlamei'),
('open', 'kargau'),
('lojban', 'la .lojban.'),
('0', 'no'),
('1', 'pa')
]
with open('lojban.py', 'r') as file:
text = file.read()
for word in dictionary:
text = text.replace(word[0], word[1])
print(text)
```
And its output:
```
jbovlaste = [
('basti fa', 'basti fa'),
('ro', 'ro'),
("vidnyja'o", 'vidnyja'o'),
('nenri', 'nenri'),
('lujvo', 'lujvo'),
('jbovlaste', 'jbovlaste'),
('basygau', 'basygau'),
('(te tcidu fe)', '(te tcidu fe)'),
('datnyvei','datnyvei'),
('vlamei', 'vlamei'),
('kargau', 'kargau'),
('la .lojban.', 'la .lojban.'),
('no', 'no'),
('pa', 'pa'),
('', ''),
('basti fa', 'basti fa'),
('ro', 'ro'),
('vidnyja'o', "vidnyja'o"),
('nenri', 'nenri'),
('lujvo', 'lujvo'),
('jbovlaste', 'jbovlaste'),
('basygau', 'basygau'),
('(te tcidu fe)', '(te tcidu fe)'),
('datnyvei', 'datnyvei'),
('vlamei', 'vlamei'),
('kargau', 'kargau'),
('la .lojban.', 'la .lojban.'),
('no', 'no'),
('pa', 'pa')
]
basti fa kargau('la .lojban..py', 'r') datnyvei:
vlamei = datnyvei.(te tcidu fe)()
ro lujvo nenri jbovlaste:
vlamei = vlamei.basygau(lujvo[no], lujvo[pa])
vidnyja'o(vlamei)
```
[Answer]
# Javascript ES6, Esperanto, Ĝavoskripto
```
f=_=>f.toString().replace(/toString/g,'konvertiLaĉi').replace(/replace/g,'anstataŭigi');f()
```
I took some liberties with camelcasing and wording (I translated 'convert to string' instead of 'to string'). I'll complicate things later when I have more time.
] |
[Question]
[
Write a program that outputs
```
Do not repeat yourself!
```
Your program code must respect the following constraints :
* its length must be an even number
* each character that is in position `2n` (where `n` is an integer > 0) must be equal to the character in position `2n-1`. The second character of the program is equal to the first, the fourth is equal to the third, etc.
Newlines count as characters!
This is code-golf, so the shortest code wins!
## Examples
`HHeellllooWWoorrlldd` is a valid program
`123` or `AAABBB` or `HHeello` are incorrect
## Verification
You can use [this CJam script](http://cjam.aditsu.net/#code=q2%2F%7B)-%7D%2F%5Ds%22not%20%22*%22valid%22) to verify that your source code is valid. Simply paste your code into the "Input" box and run the script.
[Answer]
# [Hexagony](https://github.com/mbuettner/hexagony), ~~166~~ ~~126~~ 124 bytes
```
\\;;;;33rr''22DD..));;;;;;oo;;}}eeoo\\@@nn;;;;ee;;;;aass&&;;uuoo;;;;..\\\\;;ttee..pp;;tt;;;;..rr;;''ll..'';;;;..;;}}ff..}}yy
```
Inserting the implicit no-ops and whitespace, this corresponds to the following source code:
```
\ \ ; ; ; ; 3
3 r r ' ' 2 2 D
D . . ) ) ; ; ; ;
; ; o o ; ; } } e e
o o \ \ @ @ n n ; ; ;
; e e ; ; ; ; a a s s &
& ; ; u u o o ; ; ; ; . .
\ \ \ \ ; ; t t e e . .
p p ; ; t t ; ; ; ; .
. r r ; ; ' ' l l .
. ' ' ; ; ; ; . .
; ; } } f f . .
} } y y . . .
```
I'm sure it's possible to shorten this even more, and maybe even solve it in side-length 6, but it's getting tricky...
## How it works
[![enter image description here](https://i.stack.imgur.com/ZwOwF.png)](https://i.stack.imgur.com/ZwOwF.png)
Diagram generated with [Timwi's Hexagony Colorer](https://github.com/Timwi/HexagonyColorer).
The code is completely linear. The `\` right at the start redirects the IP into a diagonal, such that we don't need to worry about the doubled characters at all. The coloured paths are executed in the order orange/red, blue/grey, green, purple (when there are two paths of the same colour, the left-hand path is executed first, before wrapping around to the right-hand one).
If we ignore no-ops, mirrors and commands which are overridden by others, the linear code comes down to this:
```
D;o;&32;}n;o;t;';}r;e;p;e;a;t;';}y;o;u;r;s;e;l;f;');@
```
Letters in Hexagony just set the current memory edge's value to the letter's character code. `;` prints the current memory edge as a character. We use `&` to reset the memory edge to `0` and print a space with `32;`. `}` moves to a different edge, so that we can remember the `32` for further spaces. The rest of the code just prints letters on the new edge, and occasionally moves back and forth with `';}` to print a space. At the end we move to the space edge again with `'`, increment the value to 33 with `)` and print the exclamation mark. `@` terminates the program.
[Answer]
# GolfScript, ~~130~~ ~~84~~ 76 bytes
```
22..!!..00)){{DDoo nnoott rreeppeeaatt yyoouurrsseellff}}``%%>><<[[33]]++
```
Try it online in [Web GolfScript](http://golfscript.apphb.com/?c=MjIuLiEhLi4wMCkpe3tERG9vICBubm9vdHQgIHJyZWVwcGVlYWF0dCAgeXlvb3V1cnJzc2VlbGxmZn19YGAlJT4%2BPDxbWzMzXV0rKw%3D%3D).
### How it works
The GolfScript interpreter starts by placing an empty string on the stack.
```
22 # Push 22.
.. # Push two copies.
!! # Negate the last copy twice. Pushes 1.
.. # Push two copies.
00 # Push 0.
)) # Increment twice. Pushes 2.
# STACK: "" 22 22 1 1 1 2
{{DDoo nnoott rreeppeeaatt yyoouurrsseellff}}
`` # Push a string representation of the string representation of the block.
# This pushes "{{DDoo nnoott rreeppeeaatt yyoouurrsseellff}}" (with quotes).
%% # Take every second element of that string, then every element of the result.
>> # Discard the first element of the result. Repeat.
<< # Truncate the result to length 22. Repeat.
[[ # Begin a two-dimensional array.
33 # Push 33, the character code of '!'.
]] # End the two-dimensional array.
++ # Concatenate the empty string, the 22-character string and the array [[33]].
```
Concatenating an array with a string flattens, so the result is the desired output.
[Answer]
# [Unary](https://esolangs.org/wiki/Unary), ~1.86 × 10222
Simple brainfuck -> unary answer. Very sub-optimal ;).
The program consists of an even number of 0’s; specifically:
>
> 1859184544332157890058930014286871430407663071311497107104094967305277041316183368068453689248902193437218996388375178680482526116349347828767066983174362041491257725282304432256118059236484741485455046352611468332836658716
>
>
>
of them.
Original brainfuck code:
```
++++[++++>---<]>+.[--->+<]>+++.[--->+<]>-----.+[----->+<]>+.+.+++++.[---->+<]>+++.---[----->++<]>.-------------.+++++++++++.-----------.----.--[--->+<]>-.[---->+<]>+++.--[->++++<]>+.----------.++++++.---.+.++++[->+++<]>.+++++++.------.[--->+<]>-.
```
[Answer]
# Ruby - 2100 1428 1032 820 670 bytes
This assumes the output can be a return value from a function (it wasn't specified that the output needs to be to STDOUT)
Code:
```
((((((((((((((((((((((((((((((((((((((((((((((""<<66++11**00++11**00))<<99++11++11**00))<<((55>>11**00))++((11>>11**00))))<<99++11))<<99++11++11**00))<<99++((33>>11**00))++11**00))<<((55>>11**00))++((11>>11**00))))<<99++11++((11**00<<11**00<<11**00))))<<99++11**00++11**00))<<99++11++11**00++11**00))<<99++11**00++11**00))<<88++((11>>11**00))++((11**00<<11**00<<11**00))))<<99++((33>>11**00))++11**00))<<((55>>11**00))++((11>>11**00))))<<99++22))<<99++11++11**00))<<99++((33>>11**00))++11**00++11**00))<<99++11++((11**00<<11**00<<11**00))))<<99++((33>>11**00))))<<99++11**00++11**00))<<99++((11>>11**00))++((11**00<<11**00<<11**00))))<<99++11**00++11**00++11**00))<<33))
```
The trick is to build the string from an empty string `""` using the append operation `<<` and the ASCII codes of the characters.
To get the numbers for the ASCII codes I'm trying to decompose the number into values I can easily generate. For example ASCII `90` is just `88+1+1`, which is:
* `88` is okay on it's own
* `11**00` is `11^0`, which is simply `1`
Fortunately both `++` and `--` would mean `add` in ruby, so I can write `90` as `88++11**00++11**00`
There are some tricks to get to some numbers easier than just adding 1s, here is the code I'm using to generate the above (which includes all mappings I'm using):
```
d = "Do not repeat yourself!"
d.each_char do |c|
print "(("
end
print '""'
VALUES = [
[0,'00'],
[1,'11**00'],
[4,'((11**00<<11**00<<11**00))'],
[5,'((11>>11**00))'],
[11,'11'],
[16,'((33>>11**00))'],
[22,'22'],
[27,'((55>>11**00))'],
[33,'33'],
[38,'((77>>11**00))'],
[44,'44'],
[49,'((99>>11**00))'],
[55,'55'],
[66,'66'],
[77,'77'],
[88,'88'],
[99,'99']
].reverse
d.each_char do |c|
print "<<"
num = c.ord
while num != 0
convert = VALUES.find{|val|val.first<=num}
print convert.last
num -= convert.first
print "++" unless num == 0
end
print "))"
end
```
I'm still thinking about other tricks to decrease the characters required to get to a number.
Note that if you use the `-rpp` flag, and add `pp` to the start of the code like so:
```
pp((((((((((((((((((((((((((((((((((((((((((((((""<<66++11**00++11**00))<<99++11++11**00))<<((55>>11**00))++((11>>11**00))))<<99++11))<<99++11++11**00))<<99++((33>>11**00))++11**00))<<((55>>11**00))++((11>>11**00))))<<99++11++((11**00<<11**00<<11**00))))<<99++11**00++11**00))<<99++11++11**00++11**00))<<99++11**00++11**00))<<88++((11>>11**00))++((11**00<<11**00<<11**00))))<<99++((33>>11**00))++11**00))<<((55>>11**00))++((11>>11**00))))<<99++22))<<99++11++11**00))<<99++((33>>11**00))++11**00++11**00))<<99++11++((11**00<<11**00<<11**00))))<<99++((33>>11**00))))<<99++11**00++11**00))<<99++((11>>11**00))++((11**00<<11**00<<11**00))))<<99++11**00++11**00++11**00))<<33))
```
then for extra 2+4 bytes this can function as a fully complete program, but it will print an extra `"` before and after the required string:
Example:
```
$ ruby -rpp golf.rb
"Do not repeat yourself!"
```
[Answer]
# [><>](https://esolangs.org/wiki/Fish), 174 bytes
```
vv
77
99
**
00
77
bb
**
pp
""
!!
ff
ll
ee
ss
rr
uu
oo
yy
tt
aa
ee
pp
ee
rr
tt
oo
nn
oo
DD
""
~~
oo
ll
11
==
;;
00
66
bb
**
..
```
Thankfully, in a sense the restriction doesn't apply vertically. However, the biggest problem is that we need to double every newline.
The code that runs roughly goes like this:
```
v Redirect instruction pointer to move downwards
79*07b*p Place a ? on row 77 before the first ;
"..." Push "Do not repeat yourself!" backwards, riffled between spaces
[main loop]
~o Pop a space and output a char
l1=?; If there is only the final space left, halt
06b*. Jump back to the start of the loop
```
Note that the program has no double spaces — when in string mode, ><> pushes spaces for empty cells. Conversely, however, this means that a solution using `g` (read single cell from source code) would be trickier, since what spaces are in the program become NULs when read.
(Note: This can be 50 bytes shorter if it [terminates with an error](http://pastebin.com/UzLESVzm), but I like it this way.)
[Answer]
# [Sclipting](http://esolangs.org/wiki/Sclipting), ~~186~~ 146 bytes
>
> 끄끄닶닶긂긂닦닦닶닶덇덇긂긂댧댧뉖뉖댇댇뉖뉖눖눖덇덇긂긂뎗뎗닶닶덗덗댧댧댷댷뉖뉖닆닆뉦뉦긒긒
>
>
> 껢껢鎵鎵❶❶合合虛虛替替標標現現併併一一終終
>
>
>
To be clear, there are three lines of code, the middle of which is empty, because the newline needs to be duplicated. The byte count is based on UTF-16 encoding.
# Explanation
The block of Korean characters at the start pushes the string `"DDDof� \"\u0002nf�of�twG \"\u0002rw'efVpw\aefVaf\u0016twG \"\u0002yw�of�uwWrw'sw7efVlf�fff!\"\u0012"`. You will notice that every *third* character is a character we want; the rest is gibberish. Here’s why:
In Sclipting, two Korean characters encode three bytes. Thus, each Korean character effectively encodes 12 bits. To get a string starting with `D`, the first 8 bits have to be `0x44`; the rest don’t matter, but since we have to repeat every character, the 12th to 20th bits are also going to be `0x44`. Thus, we will have a value of the form `0x44n44n` for some *n*, which decomposes into the three bytes `0x44 0xn4 0x4n`.
For the `o`, which is `0x6F`, we get the bytes `0x6F 0xn6 0xFn`.
Since I’m lazy, I started by encoding `"DDDooo nnnooottt (etc.)"` and then replaced every other character with the previous, which is why I get `0x444444` = `"DDD"` for the `D` and `0x6F66F6` = `"of�"` for the `o`. The `�` is there because `0xF6` by itself is invalid UTF-8 encoding.
Now, back to the program. The rest of the program proceeds as follows:
>
> 껢껢 — pushes the string `".\"�"`
>
>
> 鎵鎵 — removes the last character twice, leaving us with `"."`
>
>
> ❶❶ — two duplicates. Stack now: `[".", ".", "."]`
>
>
> 合合 — concatenate twice. Stack now: `["..."]`
>
>
>
Now, what I *want* to do next is use `"..."` as a regular expression so that I can match three characters from the original string at a time, using the 替...終 loop construct. However, since every instruction is duplicated, I need to have *two* such regular-expression loops nested inside each other, and if the stack underruns I get a runtime error. Therefore,
>
> 虛虛 — push the empty string twice
>
>
>
and *then* start the loops. This way, the outer loop iterates only once because it matches the regular expression `""` against the string `""`, which yields a single match. The inner loop runs once for every match of `"..."` against the big string. The body of the loop is:
>
> 標標 — push two marks onto the stack. Stack now: `[mark mark]`
>
>
> 現現 — push two copies of the current regex match. Stack now: `[mark mark "DDD" "DDD"]`
>
>
> 併併 — concatenate up to the first mark. Stack now: `["DDDDDD"]`
>
>
> 一一 — take first character of that string, and then (redundantly) the first character of that. Stack now has the character we want.
>
>
>
The inner loop ends here, so every match of the regular expression is replaced with the first character of that match. This leaves the desired string on the stack.
Then the outer loop ends, at which point the desired string is taken off the stack and the only match of `""` in the string `""` is replaced with it, leaving the desired string once again on the stack.
[Answer]
# [Labyrinth](http://esolangs.org/wiki/Labyrinth), 528 bytes
```
66))__vv ..33::00&&__vv ..44__99||__vv ..33::00&&__vv ..99))__vv ..99))__vv ..44__88$$__vv ..22__99++__vv ..22__99$$__vv ..22__99))$$__vv ..33__77$$__vv ..33__vv
..44__99||__^^ ..11__99++__^^ ..44__88$$__^^ ..44((__88$$__^^ ..11))__99++__^^ ..99((__^^ ..33::00&&__^^ ..44__99||__^^ ..44((__88$$__^^ ..99))__^^ ..11__99$$((__^^ ..@@
xx
```
The double newlines hurt, but at least this proves that it's doable!
Each character is printed one-by-one, first by forming the code point then printing a single char. The code points are formed by:
```
D 68 66))
o 111 44__99||
32 33::00&&
n 110 11__99++
t 116 44__88$$
r 114 44((__88$$
e 101 99))
p 112 11))__99++
a 97 99((
y 121 22__99++
u 117 22__99$$
s 115 22__99))$$
l 108 33__77$$
f 102 11__99$$((
! 33 33
```
where
```
)( Increment/decrement by 1 respectively
&|$ Bitwise AND/OR/XOR respectively
+ Add
: Duplicate
_ Push zero
0-9 Pop n and push n*10+<digit>
```
The unusual behaviour of Labyrinth's digits is exploited in `33::00&&`, which is actually
```
[33] -> [33 33] -> [33 33 33] -> [33 33 330] -> [33 33 3300] -> [33 32] -> [32]
: : 0 0 & &
```
Each single char is printed with the mechanism
```
__vv
..
xx
```
The `xx` exist only to pad the grid so that it's 5 high. First the `__` push two zeroes, then we hit a grid rotation operator `v`. We pop a zero and rotate:
```
__ v
v
.
.
xx
```
and again:
```
__ v
v.
xx.
```
We then move rightwards to the `.` on the third row, thus executing the print command only once.
[Answer]
# CJam - 176 136 bytes
```
66))HH77++GG00++BB88++HH77++EE88++GG00++DD88++99))CC88++99))AA77++EE88++GG00++BB99++HH77++KK77++DD88++JJ77++99))AA88++II66++33]]{{cc}}//
```
*Thanks to Sp3000 for dividing my program size by two :-)*
**Explanation**
* The codes `HH77++`, `GG00++`, ... compute the integer ascii code of the characters by adding numbers (for example: `HH77++' pushes 17, 17 and 77 on the stack, then add these 3 numbers)
* the portion of code at the end `]]{{cc}}//` loops through the ascii codes and convert them to characters.
Try it [here](http://cjam.aditsu.net/#code=66))HH77%2B%2BGG00%2B%2BBB88%2B%2BHH77%2B%2BEE88%2B%2BGG00%2B%2BDD88%2B%2B99))CC88%2B%2B99))AA77%2B%2BEE88%2B%2BGG00%2B%2BBB99%2B%2BHH77%2B%2BKK77%2B%2BDD88%2B%2BJJ77%2B%2B99))AA88%2B%2BII66%2B%2B33%5D%5D%7B%7Bcc%7D%7D%2F%2F)
[Answer]
# [Self-modifying Brainf\*\*\*](http://esolangs.org/wiki/Self-modifying_Brainfuck), 72 bytes
Note that `\x00` represents a literal `NUL` hex byte (empty cell). The source code is placed on the tape, left of the starting cell.
```
!!fflleessrruuooyy ttaaeeppeerr ttoonn ooDD\0\0<<<<<<++[[<<]]<<[[..<<]]
```
### Explanation
```
!!fflleessrruuooyy ttaaeeppeerr ttoonn ooDD The string on the tape for easy printing
\x00\x00 A separator to make printing shorter
<<<<<<++ Change first '.' to '0' (comment)
[[<<]]<< Move to separator, then left to string
[[0.<<]] Print string
```
Also, before making this program, I was making one using only BF characters in the source. It's possible! It's also much longer, since for an odd ASCII value, I was going to create double the value, then divide by two. Somewhat shorter would be modifying the entire source to generate odd values to start with.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 66 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
““DDoo nn““oott rreepp““eeaatt yyoouurrss““eellff!!””ṛṛḷḷWWQQ€€
```
[Try it online!](http://jelly.tryitonline.net/#code=4oCc4oCcRERvbyAgbm7igJzigJxvb3R0ICBycmVlcHDigJzigJxlZWFhdHQgIHl5b291dXJyc3PigJzigJxlZWxsZmYhIeKAneKAneG5m-G5m-G4t-G4t1dXUVHigqzigqw&input=)
### Factoid
The program still works if you remove every second character.
[Try it online!](http://jelly.tryitonline.net/#code=4oCcRG8gbuKAnG90IHJlcOKAnGVhdCB5b3Vyc-KAnGVsZiHigJ3huZvhuLdXUeKCrA&input=)
### How it works
```
““DDoo nn““oott rreepp““eeaatt yyoouurrss““eellff!!”
```
returns an array of string. The literal begins with a `“`, ends with a `”`, and the strings are delimited internally by `“`. The result is
```
["", "DDoo nn", "", "oott rreepp", "", "eeaatt yyoouurrss", "", "eellff!!"]
```
The link's argument and the return value are set to this array of strings, then the remainder of the source code is executed.
```
<literal>”ṛṛḷḷWWQQ€€ Argument/return value: A (string array)
”ṛ Yield the character 'ṛ'.
ṛ Select the right argument of 'ṛ' and A: A.
ḷ Select the left argument of A and A: A.
W Wrap; yield [A].
ḷ Select the left argument of A and [A]: A.
W Wrap; yield [A].
Q Unique; deduplicate [A]. Yields [A].
Q€€ Unique each each; for each string s in A, deduplicate s.
```
[Answer]
# [Gammaplex](http://esolangs.org/wiki/Gammaplex), 66 bytes
```
\\
XX""!!fflleessrruuooyy ttaaeeppeerr ttoonn ooDD""XXXXrrRREE
```
Gammaplex is a 2D language that uses the position of the first newline as the line length, and ignore all other newlines.
[Answer]
# [MSM](http://esolangs.org/wiki/MSM), ~~270~~ 160 bytes
```
!!'',,ff'',,ll'',,ee'',,ss'',,rr'',,uu'',,oo'',,yy'',, '',,tt'',,aa'',,ee'',,pp'',,ee'',,rr'',, '',,tt'',,oo'',,nn'',, '',,oo'',,DD'',,......................
```
My first MSM program!
String output in MSM is done by pushing the individual characters onto the stack and joining them into a single string via `.`, e.g.
```
!olleH.....
```
The number of `.` is one less than the number of characters. For `Do not repeat yourself!` we need 22 `.`s. Luckily this is an even number, so we have 11 doubles
```
......................
```
Putting the letters in front of it requires some more effort. The pattern
```
cc'',,
```
does the trick for each character `c`. It evaluates as follows
```
cc'',, push c (remember: commands are taken from the left and operate on the right)
c'',,c push c
'',,cc quote ' and push
,,cc' pop
,cc pop
c voilà!
```
We need 23 such patterns starting with `!!'',,` and ending with `DD'',,` followed by the 22 join commands `.`.
[Answer]
# Befunge 98, 70 66 bytes
[Try it online!](https://tio.run/nexus/befunge-98#@29kZGCgpVVRoaSkqJiWlpOTmlpcXFRUWpqfX1mpoFBSkpiYmlpQkJpaVATi5efn5Sko5Oe7uIiLKyllZ@voODj8/w8A)
After my invalid answer, here's a better one that actually fits the challenge!
```
2200**xx""!!fflleessrruuooyy ttaaeeppeerr ttoonn ooDD��""kk,,@@
```
(Thanks to Martin Ender for suggesting the use of `��`, character 0x17, instead of `88ff++`)
Explanation:
```
2200 Push 2, 2, 0, and 0 onto the stack
* Multiply 0 and 0, yielding 0
* Multiply 2 and 0, yielding 0
The stack is now [2, 0]
x Pop a vector off the stack and set the instruction pointer delta to that
The instruction pointer is now skipping over every other character, since the delta is (2, 0)
"!f ... oD�" Push the string onto the stack, with the number 23 (number of characters in the string) at the top
k, Pop characters off the stack and print them, 23 times
@ End the program
```
[Answer]
# [Backhand](https://github.com/GuyJoKing/Backhand), 54 bytes
```
vv""!!fflleessrruuooyy ttaaeeppeerr ttoonn ooDD""HH
```
[Try it online!](https://tio.run/##FcdLCsAgDAXAq8ScxYXXSG2kUPFJ/ICnT@ns5pL8PtJu972ZQyilVtUxzNYCziGaU0S1d1Wzf0BrRECMzCm5fw "Backhand – Try It Online")
Since Backhand's pointer already moving at three cells a tick, all we need to do is decrease that to 2 using `v`
[Answer]
# [DC](https://rosettacode.org/wiki/Dc), ~~348~~ ~~346~~ ~~342~~ ~~306~~ ~~290~~ 278 bytes
File `dnr6.short.dc` (without trailing newline):
```
AAzz--22222222vvPPAAAAAAAAvvPP88vvFFFFFFFFvv00++AAzz--PP11vvFFFFFFFFvv00++AAAAAAvvPP11vvEEEEEEEEvv00++OOOO//44999999vv++PP77II++OOOO//44999999vv++PPAAAAAAvv88vvFFFFFFFFvv00++PPAAzz--BBPP11vvFFFFFFFFvv00++77OOOO++++PPOOOO//44999999vv++66vvFFFFFFFFvv00++PP99zz++OO88++PPAAAAvv33PP
```
Run:
```
$ dc < dnr6.short.dc
Do not repeat yourself!
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~100~~ ~~58~~ 52 bytes
*-6 bytes thanks to Kevin Cruijssen*
```
„„€€··™™……€€–– ……¹¹‚‚ ……––‚‚))εε##θθáá}}»»……!!θθJJ
```
[Try it online!](https://tio.run/##yy9OTMpM/f//UcM8EGpaA0SHth/a/qhlEQg1LAMhsOijhslApKAAETu089DORw2zgAgmApGHiGlqntt6bquy8rkd53YcXnh4YW3tod2HdkPUKSqCRL28/v8HAA "05AB1E – Try It Online")
```
„„€€· # dictionary string "g do"
· # double (no effect on strings)
™ # title case: "G Do"
™ # title case again (no effect)
……€€–– # dictionary string "tools not–"
# spaces necessary so "–…" isn't parsed as a dictionary word
……¹¹‚‚ # dictionary string "team repeat‚"
# spaces necessary again
……––‚‚ # dictionary string "j yourself‚"
) # wrap the entire stack in an array
) # and again: [["G Do", "tools not–", "team repeat‚", "j yourself‚"]]
ε } # for each:
ε } # for each:
# # split on spaces: ["tools", "not–"]
# # and again: [["tools", "not–"]]
θ # get the last element: ["tools", "not–"]
θ # and again: "not–"
á # keep only letters: "not"
á # and again (no effect)
» # join the list by newlines, joining sublists by spaces:
# "Do not repeat yourself"
» # join the stack by newlines, joining lists by spaces (no effect)
……!! # literal string "…!!"
θ # get the last character: "!"
θ # and again (no effect)
J # join the stack without separators: "Do not repeat yourself!"
J # and again (no effect)
# implicit output
```
Idempotency rules.
[Answer]
# [BotEngine](https://github.com/SuperJedi224/Bot-Engine), 6x49=294
```
vv PP
!!ee
ffee
llee
eeee
ssee
rree
uuee
ooee
yyee
ee
ttee
aaee
eeee
ppee
eeee
rree
ee
ttee
ooee
nnee
ee
ooee
DDee
>> ^^
```
[Answer]
# reticular, noncompeting, 62 bytes
```
2200**UU""DDoo nnoott rreeppeeaatt yyoouurrsseellff!!""oo;;
```
[Try it online!](http://reticular.tryitonline.net/#code=MjIwMCoqVVUiIkREb28gIG5ub290dCAgcnJlZXBwZWVhYXR0ICB5eW9vdXVycnNzZWVsbGZmISEiIm9vOzs&input=&args=)
Explanation in parts:
```
2200**
2200 the stack looks like [2 2 0 0]
* [2 2 0*0]
* [2 2*0*0]
[2 0]
```
`U` sets the pointer direction to `(2, 0)`, that is, moving `2` x-units and `0` y-units, so it skips every other character, starting with the next `U` being skipped. Then, every other character is recorded, and it is equivalent to:
```
"Do not repeat yourself!"o;
```
which is a simple output program.
## Other
This is competing for WallyWest's JavaScript bounty:
I can prove that, while numbers can be constructed under this restriction, strings cannot. Since no literals can be used, as the placement of any literal-building character would create an empty string:
```
""
''
``
```
Then, only some operator can be used; the only "paired" operators used are:
```
++ -- << >> ** ~~ || && !! ==
```
And none of these can cast numbers/others to strings. So no strings can be outputted.
[Answer]
## [Alice](https://github.com/m-ender/alice), 74 bytes
```
aa00tt,,JJ""DDoo nnoott rreeppeeaatt yyoouurrsseellff!!//@@""ooYY;;tt
```
[Try it online!](https://tio.run/nexus/alice#FccxDkARDADQ3Smqs4TdYjC5gdFQk6hUDU7v57/tvdZCUHWuFMScmQHmZFYFECFai6i1f/cynyOyN9EYvVvrfUqIzLXGqGrMex8 "Alice – TIO Nexus")
### Explanation
The first catch is that we need to be able to enter the string, so we want to skip only the first `"`. We do this by jumping onto the first `"` because then the IP will move one cell before looking at the current cell again, so that it's the second `"` which enters string mode. But to be able to jump there, we need `10, 0` on top of the stack, in that order (second, top). This is done with `aa00tt,,`:
```
Stack:
aa Push two 10s. [... 10 10]
00 Push two 0s. [... 10 10 0 0]
tt Decrement twice. [... 10 10 0 -2]
, Rotate(-2). [... 0 10 10]
, Rotate(10). [... 0 10 0]
```
This rotation function pops an argument. If that argument is negative, it pushes the value on top of the stack down by that many positions. If the argument is positive, it goes looking for the element that many positions below the top and pulls it up to the top. Note that in the case of `Rotate(10)`, there aren't enough elements on the stack, but there is an implicit infinite amount of zeros at the bottom, which is why a zero ends up on top.
Now we can `J`ump onto the first `"` using these two arguments. The second `"` enters string mode and records all of that `DDoo nnoott...`. When it hits the `/`, the IP is redirected southeast and we enter Ordinal mode. For now on the IP bounces up and down across the three lines (two of which are empty), so it first records three more spaces on lines two and three and then we leave string mode when it hits the `"`. Since we're in Ordinal mode at this time, all the recorded characters are pushed as a single string to the stack (even though we recorded most of them in Cardinal mode), so we end up with this string (note the trailing spaces):
```
DDoo nnoott rreeppeeaatt yyoouurrsseellff!!
```
Now the IP keeps bouncing up and down which means that it executes one command of every other pair, i.e. `Y` and `t`. Then the IP will hit the end of the grid on the second line and start bouncing backwards through the grid. This also switches in which pair of characters the IP hits the first line, so when going back it now executes `;`, `o` and `@`. So ignoring all the spaces and implicit IP redirections, the executed code is `Yt;o@` in Ordinal mode.
The `Y` is the "unzip" command which separates a string into the characters in alternating positions. Since each character is repeated, that really just gives us two copies of the string we're going for, although the first copy has two trailing spaces and the second has one trailing space. `t` splits off that trailing space and `;` discards it. Finally, `o` prints the string and `@` terminates the program.
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 70 bytes
```
GG11hh::zzaapp..}}..""DDoo nnoott rreeppeeaatt yyoouurrsseellff!!""
```
[Run and debug it at staxlang.xyz!](https://staxlang.xyz/#c=GG11hh%3A%3Azzaapp..%7D%7D..%22%22DDoo++nnoott++rreeppeeaatt++yyoouurrsseellff%21%21%22%22&i=&a=1)
Stax very fortunately has the builtin `::` for every-nth. All I need to is push the string doubled, push 2, and run `::`. Easy, right?
Wrong.
Pushing that string is tricky. The first quotation mark can be doubled by `..""`, which is a length-2 literal for `."` followed by a meaningful quotation mark. Problem is, I see no way to terminate the string (which is necessary, or else the doubled version will be printed) without starting a new one.
The end of the program terminates string literals. If I can put this doubled literal there, perhaps there'll be a nice workaround. To jump somewhere from the end of a program, however, requires `G}`, so at minimum, I'm looking at this:
```
GG [deduplicate] }}""DDoo nnoott rreeppeeaatt yyoouurrsseellff!!""
```
This does... nothing. `G` does not begin a block, so neither will jump to the second `}`. Again, I need to ignore one character: `..}}`. Execution jumps from the first `G` to the second `}`, continues to the end, jumps back to the second `G` and from there to the second `}`, and continues once more to the end before resuming at the start of the `[deduplicate]` section with the doubled string atop the stack.
Deduplication is simple. `11hh` pushed eleven and halves it twice, rounding down both times and yielding two, and `::` will then get us the output we need.
```
GG11hh::..}}..""DDoo nnoott rreeppeeaatt yyoouurrsseellff!!""
```
Uh-oh. This prints nothing. There are two problems here: first, that `..}` means the string `.}` will be atop the stack at the end of the program, and second, Stax's ordinary implicit output is now disabled!
The worse issue is the output. When a Stax program terminates gracefully without printing anything, the top of the stack will be implicitly printed. But we haven't printed anything...? Ah, but we have. Unterminated string literals are printed rather than pushed, and even those two empty strings (from the unmatched `"` at the end), despite being empty, are enough to trip this check. Any printing must be done by hand.
We'll need either `pp` or `PP`, and in this instance, ignoring the first through `..pp` is unacceptable, as it will print the string `.p`. That means we need our desired output either alone on the stack or in the top two along with an empty string. This latter is accomplished by pushing two empty strings (`zz`) and rotating the top three items twice (`aa`) before printing.
Once that's done, we have a stack four strings tall. A fifth, `.}`, is then pushed before the program exits gracefully; at this point, the lack of implicit output becomes a blessing as well as a curse, as nothing extra will now be printed!
] |
[Question]
[
# Inspired by, and in memory of, my dear friend and colleague,
[![Dan Baronet](https://i.stack.imgur.com/eSEJq.jpg)](http://www.dyalog.com/blog/2016/11/dan-baronet/)
# [Dan Baronet](http://www.dyalog.com/blog/2016/11/dan-baronet/), 1956 – 2016. [R.I.P.](http://danielbaronet.rip/)
He found [the shortest possible APL solution](https://codegolf.stackexchange.com/a/98764/43319) to this task:
### Task
Given a Boolean list, count the number of trailing truth values.
### Example cases
`{}` → `0`
`{0}` → `0`
`{1}` → `1`
`{0, 1, 1, 0, 0}` → `0`
`{1, 1, 1, 0, 1}` → `1`
`{1, 1, 0, 1, 1}` → `2`
`{0, 0, 1, 1, 1}` → `3`
`{1, 1, 1, 1, 1, 1}` → `6`
[Answer]
# Dyalog APL, ~~6~~ 2 bytes
```
⊥⍨
```
Test it on [TryAPL](http://tryapl.org/?a=%28%u22A5%u2368%29%A8%28%u236C%280%29%281%29%280%201%201%200%200%29%281%201%201%200%201%29%281%201%200%201%201%29%280%200%201%201%201%29%281%201%201%201%201%201%29%29&run).
### How it works
**⊥** (uptack, dyadic: decode) performs base conversion. If the left operand is a vector, it performs *mixed* base conversion, which is perfect for this task.
For a base vector **b = bn, ⋯, b0** and a digit vector **a = an, ⋯, a0**, **b ⊥ a** converts **a** to the mixed base **b**, i.e., it computes **b0⋯bn-1an + ⋯ + b0b1a2 + b0a1 + a0**.
Now, **⍨** (tilde dieresis, commute) modifies the operator to the left as follows. In a monadic context, it calls the operator with equal left and right arguments.
For example, **⊥⍨ a** is defined as **a ⊥ a**, which computes **a0⋯an + ⋯ + a0a1a2 + a0a1 + a0**, the sum of all cumulative products from the right to the left.
For **k** trailing ones, the **k** rightmost products are **1** and all others are **0**, so their sum is equal to **k**.
[Answer]
## JavaScript (ES6), 21 bytes
```
f=l=>l.pop()?f(l)+1:0
```
### Test cases
```
f=l=>l.pop()?f(l)+1:0
console.log(f([])); // → 0
console.log(f([0])); // → 0
console.log(f([1])); // → 1
console.log(f([0, 1, 1, 0, 0])); // → 0
console.log(f([1, 1, 1, 0, 1])); // → 1
console.log(f([1, 1, 0, 1, 1])); // → 2
console.log(f([0, 0, 1, 1, 1])); // → 3
console.log(f([1, 1, 1, 1, 1, 1])); // → 6
```
[Answer]
# [Brachylog](http://github.com/JCumin/Brachylog), ~~7~~ ~~6~~ 5 bytes
```
@]#=+
```
[Try it online!](http://brachylog.tryitonline.net/#code=QF0jPSs&input=WzE6MTowOjE6MV0&args=Wg)
### Explanation
```
@] A suffix of the Input...
#= ...whose elements are all equal
+ Sum its elements
```
Since `@] - Suffix` starts from the biggest suffix all the way up to the smallest one, it will find the longest run first.
[Answer]
# [Jelly](http://github.com/DennisMitchell/jelly), 4 bytes
```
ŒrṪP
```
[Try it online!](http://jelly.tryitonline.net/#code=xZJy4bmqUA&input=&args=WzEsIDEsIDAsIDEsIDFd) or [Verify all test cases.](http://jelly.tryitonline.net/#code=xZJy4bmqUArDh-KCrA&input=&args=W1tdLCBbMF0sIFsxXSwgWzAsIDEsIDEsIDAsIDBdLCBbMSwgMSwgMSwgMCwgMV0sIFsxLCAxLCAwLCAxLCAxXSwgWzAsIDAsIDEsIDEsIDFdLCBbMSwgMSwgMSwgMSwgMSwgMV1d)
For the case where the list is empty, there are some curious observations. First, run-length encoding the empty list `[]` returns another empty list `[]`. Then retreiving the last element from that using tail `Ṫ` returns `0` instead of a pair `[value, count]` which are the regular elements of a run-length encoded array. Then product `P` returns `0` when called on `0` which is the expected result.
## Explanation
```
ŒrṪP Main link. Input: list M
Œr Run-length encode
Ṫ Tail, get the last value
P Product, multiply the values together
```
[Answer]
# Haskell, ~~26~~ 25 bytes
```
a%b|b=1+a|0<3=0
foldl(%)0
```
Usage:
```
Prelude> foldl(%)0 [True,False,True,True]
2
```
Pointfree version (26 bytes):
```
length.fst.span id.reverse
```
---
Using an integer list instead of a bool list (21 bytes, thanks to Christian Sievers):
```
a%b=b*(a+1)
foldl(%)0
```
Usage:
```
Prelude> foldl(%)0 [1,0,1,1]
2
```
Pointfree version (25 bytes)
```
sum.fst.span(==1).reverse
```
[Answer]
## CJam (8 bytes)
```
{W%0+0#}
```
[Online test suite](http://cjam.aditsu.net/#code=qN%2F%7B'%E2%86%92%2F0%3D'%2C-~~%5D%0A%0A%7BW%250%2B0%23%7D%0A%0A~p%7D%2F&input=%7B%7D%20%E2%86%92%200%0A%7B0%7D%20%E2%86%92%200%0A%7B1%7D%20%E2%86%92%201%0A%7B0%2C%201%2C%201%2C%200%2C%200%7D%20%E2%86%92%200%0A%7B1%2C%201%2C%201%2C%200%2C%201%7D%20%E2%86%92%201%0A%7B1%2C%201%2C%200%2C%201%2C%201%7D%20%E2%86%92%202%0A%7B0%2C%200%2C%201%2C%201%2C%201%7D%20%E2%86%92%203%0A%7B1%2C%201%2C%201%2C%201%2C%201%2C%201%7D%20%E2%86%92%206)
### Dissection
```
{ e# begin a block
W% e# reverse the array
0+ e# append 0 so there's something to find
0# e# find index of first 0, which is number of nonzeros before it
}
```
[Answer]
# [05AB1E](http://github.com/Adriandmen/05AB1E), ~~12~~ ~~10~~ ~~6~~ 5 bytes
Saved 1 byte thanks to *carusocomputing*.
```
Î0¡¤g
```
[Try it online!](http://05ab1e.tryitonline.net/#code=w44wwqHCpGc&input=MTEwMTEx)
**Explanation**
```
Î # push 0 and input
0¡ # split on 0
¤ # take last item in list
g # get length
```
[Answer]
## Python, 31 bytes
```
lambda a:(a[::-1]+[0]).index(0)
```
[Answer]
## [Retina](http://github.com/mbuettner/retina), ~~7~~ 5 bytes
```
r`1\G
```
[Try it online!](http://retina.tryitonline.net/#code=JShHYApyYDFcRw&input=CjAKMQowMTEwMAoxMTEwMQoxMTAxMQowMDExMQoxMTExMTE) (The first line enables a linefeed-separated test suite.)
Defining the input format for Retina isn't entirely unambiguous. Since Retina has no concept of any type except strings (and also no value that can be used for our usual definition of truthy and falsy), I usually use `0` and `1` (or something positive in general) to correspond to truthy and falsy, as they represent zero or some matches, respectively.
With single-character representations, we also don't need a separator for the list (which in a way, is more the more natural list representation for a language that only has strings). [Adám confirmed](https://codegolf.stackexchange.com/questions/98730/count-trailing-truths?noredirect=1#comment239932_98773) that this is an acceptable input format.
As for the regex itself, it matches from `r`ight to left and `\G` anchors each match to the previous one. Hence, this counts how many `1`s we can match from the end of the string.
[Answer]
# [MATL](http://github.com/lmendo/MATL), 4 bytes
```
PYps
```
[Try it online!](http://matl.tryitonline.net/#code=UFlwcw&input=WzEsIDEsIDAsIDEsIDFd)
```
P % Flip
Yp % Cumulative product
s % Sum
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 4 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
ṣ0ṪL
```
**[TryItOnline!](http://jelly.tryitonline.net/#code=4bmjMOG5qkw&input=&args=WzEsMSwwLDEsMV0)**, or [all tests](http://jelly.tryitonline.net/#code=4bmjMOG5qkwKw4figqw&input=&args=W1tdLFswXSxbMV0sWzAsMSwxLDAsMF0sWzEsMSwxLDAsMV0sWzEsMSwwLDEsMV0sWzAsMCwxLDEsMV0sWzEsMSwxLDEsMSwxXV0)
### How?
```
ṣ0ṪL - Main link: booleanList
ṣ0 - split on occurrences of 0 ([] -> [[]]; [0] -> [[],[]]; [1] -> [[1]]; ...)
Ṫ - tail (rightmost entry)
L - length
```
[Answer]
# Mathematica, ~~25~~ 24 bytes
```
Fold[If[#2,#+1,0]&,0,#]&
```
[Answer]
# J, ~~9~~ 3 bytes
```
#.~
```
This is reflexive mixed base conversion. [Because this is the same as mixed base conversion.](https://codegolf.stackexchange.com/a/98764/31957) [Again.](https://codegolf.stackexchange.com/a/79653/31957)
## Test cases
```
v =: #.~
]t =: '';0;1;0 1 1 0 0;1 1 1 0 1;1 1 0 1 1;0 0 1 1 1;1 1 1 1 1 1
++-+-+---------+---------+---------+---------+-----------+
||0|1|0 1 1 0 0|1 1 1 0 1|1 1 0 1 1|0 0 1 1 1|1 1 1 1 1 1|
++-+-+---------+---------+---------+---------+-----------+
v&.> t
+-+-+-+-+-+-+-+-+
|0|0|1|0|1|2|3|6|
+-+-+-+-+-+-+-+-+
(,. v&.>) t
+-----------+-+
| |0|
+-----------+-+
|0 |0|
+-----------+-+
|1 |1|
+-----------+-+
|0 1 1 0 0 |0|
+-----------+-+
|1 1 1 0 1 |1|
+-----------+-+
|1 1 0 1 1 |2|
+-----------+-+
|0 0 1 1 1 |3|
+-----------+-+
|1 1 1 1 1 1|6|
+-----------+-+
```
[Answer]
## Pyth, 6 bytes
```
x_+0Q0
```
[Try it here!](http://pyth.herokuapp.com/?code=x_%2B0Q0&input=%5B0%2C1%2C1%2C0%2C1%2C1%5D&debug=0)
Appends a 0, reverses and finds the index of the first 0
[Answer]
# C90 (gcc), 46 bytes
```
r;main(c,v)int**v;{while(0<--c&*v[c])r++;c=r;}
```
Input is via command-line arguments (one integer per argument), output via [exit code](http://meta.codegolf.stackexchange.com/a/5330/12012).
[Try it online!](https://tio.run/nexus/bash#@5@anJGvoJunoF5knZuYmaeRrFOmmZlXoqVVZl1dnpGZk6phYKOrm6ymVRadHKtZpK1tnWxbZF2rrmCnkFxSopfMlZ6crKBbXJJim2xpoKCbDxKFyujpA2lrBbANKvYQroIBuoAhhgoFQyA0wKISKmGITQKsC9MoiGGG2I1Clfr/HwA "Bash – TIO Nexus")
### How it works
**r** is a global variable. Its type defaults to *int* and, being global, it value defaults to **0**.
The function argument **c** defaults to *int* as well. It will hold the integer **n + 1** for arrays of **n** Booleans; the first argument of **main** is always the path of the executable.
The function argument **v** is declared as `int**`. The actual type of **v** will be `char**`, but since we'll only examine the least significant bit of each argument to tell the characters **0** (code point **48**) and **1** (code point **49**) apart, this won't matter on little-endian machines.
The while loop decrements **c** and compares it to **0**. Once **c** reaches **0**, we'll break out of the loop. This is needed only if the array contains no **0**'s.
As long as `0<--c` returns **1**, we takes the **c**th command-line argument (`v[c]`) and extract its first character with by dereferencing the pointer (`*`). We take the bitwise AND of the Boolean `0<--c` and the code point of the character (and three garbage bytes that follow it), so the condition will return **0** once a **0** is encountered, breaking out of the loop.
In the remaining case, while the command-line arguments are **1**, `r++` increments **r** by **1**, thus counting the number of trailing **1**'s.
Finally, `c=r` stores the computed value of **r** in **c**. With default settings, the compiler optimize and remove the assignment; it actually generates the `movl %eax, -4(%rbp)` instruction. Since `ret` returns the value of the EAX register, this generates the desired output.
Note that this code does *not* work with C99, which returns **0** from *main* if the end of *main* is reached.
[Answer]
# k, 6 bytes
```
+/&\|:
```
This function composition translates to `sum mins reverse` in `q`, the language's more readable sibling, where mins is a rolling minimum.
[Answer]
# R, 40 39 25 bytes
Completely reworked solution thanks to @Dason
```
sum(cumprod(rev(scan())))
```
Read input from stdin, reverse the vector and if the first element of is `!=0` then output the the first length of the run-length encoding (`rle`), else `0`.
[Answer]
## Haskell, 24 bytes
```
foldl(\a b->sum[a+1|b])0
```
Iterates over the list, adding one for each element, resetting to `0` after it hits a `False`.
**16 bytes** with 0/1 input:
```
foldl((*).(+1))0
```
If the list were guaranteed non-empty, we could get 14 bytes:
```
sum.scanr1(*)1
```
This computes the cumulative product from the back, then sums them. The cumulative product remains 1 until a 0 is hit, and then becomes 0. So, the 1's correspond to trailing 1's.
[Answer]
## Pyke, ~~10~~ 6 bytes
```
_0+0R@
```
[Try it here!](http://pyke.catbus.co.uk/?code=_0%2B0R%40&input=%5B1%2C++1%2C+1%2C+1%2C+1%5D)
[Answer]
# C#6, ~~103~~ 72 bytes
```
using System.Linq;
int a(bool[] l)=>l.Reverse().TakeWhile(x=>x).Count();
```
Using non-generic list beats generic list by 1 byte lol
-31 bytes thanks to Scott
[Answer]
# [Japt](https://github.com/ETHproductions/japt) `-hx`, 3 bytes
```
i ô
```
[Try it online!](https://ethproductions.github.io/japt/?v=1.4.5&code=aSD0&input=LWh4ClswLCAwLCAxLCAwLCAwLCAxLCAxLCAxXQ==)
Japt's flag combinations rock.
### How it works
```
Ui ô
Ui Insert `undefined` at index 0
ô Split at falsy items
-h Take last element
-x Sum
```
If we didn't have to handle the special case `[]`, we could get away with 1 byte `ô`, winning over APL.
[Answer]
# Python, 37 bytes
```
f=lambda l:len(l)and-~f(l[:-1])*l[-1]
```
[Answer]
# [DASH](https://github.com/molarmanful/DASH), 16 bytes
```
@len mstr"1+$"#0
```
It's not the shortest possible DASH solution, but the shortest possible DASH solution is bugging out on me. I'm posting this novel approach in its place.
Usage:
```
(@len mstr"1+$"#0)"100111"
```
# Explanation
```
@( #. Lambda
len ( #. Get the length of the array after...
mstr "1+$" #0 #. ... matching the argument with regex /1+$/
) #. * mstr returns an empty array for no matches
)
```
[Answer]
# Scala, 25 bytes
```
l=>l.reverse:+0 indexOf 0
```
Ungolfed:
```
l=>(l.reverse :+ 0).indexOf(0)
```
Reverses the list, appends a 0 and find the first index of 0, which is the number of elements before the first 0
[Answer]
## Batch, 57 bytes
```
@set n=0
@for %%n in (%*)do @set/an=n*%%n+%%n
@echo %n%
```
Takes input as command-line parameters. Works by multiplying the accumulator by the current value before adding it on, so that any zeros in the command line reset the count. Note that `%%n` is not the same as the `n` or `%n%` variable.
[Answer]
## GolfSharp, 14 bytes
```
n=>n.V().O(F);
```
[Answer]
# Java 7, 62 bytes
```
int c(boolean[]a){int r=0;for(boolean b:a)r=b?r+1:0;return r;}
```
**Ungolfed & test code:**
[Try it here.](https://ideone.com/CX1cOb)
```
class M{
static int c(boolean[] a){
int r = 0;
for (boolean b : a){
r = b ? r+1 : 0;
}
return r;
}
public static void main(String[] a){
System.out.print(c(new boolean[]{}) + ", ");
System.out.print(c(new boolean[]{ false }) + ", ");
System.out.print(c(new boolean[]{ true }) + ", ");
System.out.print(c(new boolean[]{ false, true, true, false, false }) + ", ");
System.out.print(c(new boolean[]{ true, true, true, false, true }) + ", ");
System.out.print(c(new boolean[]{ true, true, false, true, true }) + ", ");
System.out.print(c(new boolean[]{ false, false, true, true, true }) + ", ");
System.out.print(c(new boolean[]{ true, true, true, true, true, true }));
}
}
```
**Output:**
```
0, 0, 1, 0, 1, 2, 3, 6
```
[Answer]
# Perl 5.10, 22 bytes
21 bytes + 1 byte for `-a` flag.
Since the regex-based expression was done... :p
The input values for the array must be separated by a space.
```
$n++while pop@F;say$n
```
[Try it online!](https://ideone.com/SaIsrK)
[Answer]
## Perl, 22 bytes
21 bytes of code + 1 byte for `-p` flag.
```
s/.(?=.*0)//g;$_=y;1;
```
To run it :
```
perl -pE 's/.(?=.*0)//g;$_=y;1;' <<< "0 1 1 0 1 1 1"
```
(Actually, the format of the input doesn't matter a lot : `0110111`, `0 1 1 0 1 1 1`, `[0,1,1,0,1,1,1]` etc. would all work)
---
**18 bytes version** from [@Dom Hastings](https://codegolf.stackexchange.com/users/9365/dom-hastings) but it requires to supply the input as a string of 0 and 1, which isn't allowed :
```
perl -pE '/1*$/;$_=length$&' <<< '0110111'
```
[Answer]
# PHP, 50 bytes
```
<?=strlen(preg_filter('/.*[^1]/','',join($argv)));
```
Weirdly my first try with a regex turned out shorter than my try with arrays...
Use like:
```
php tt.php 1 1 0 1 1
```
] |
[Question]
[
Write the shortest program that prints the sound my alarm clock makes, and stops after an inputted number of `beep`s.
For reference, here is the sound my alarm makes:
```
beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeep
```
Basically `beep`, `beepbeep`, `beepbeepbeep`, and `beepbeepbeepbeep` repeated 5 times each with spaces in between, followed by a `beepbeep...beep` which is 25 `beep`s long with no spaces in between (does `beep` still sound like a word to you?).
Your program should take a number as input (assume it's between 0 and 75), and stop printing after that many `beep`s.
**Note:** Your program should stop after that many beeps, not after that many groups of beeps. For example, `7` will return `beep beep beep beep beep beepbeep`.
Whitespace in between `beep`s must follow the exact pattern above, although any trailing whitespace or unsuppressable output from your compiler or interpreter is allowed.
Test cases:
```
3 beep beep beep
0
1 beep
7 beep beep beep beep beep beepbeep
8 beep beep beep beep beep beepbeep beep
55 beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeep
67 beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeep
```
This is code golf, so the shortest answer in bytes, per language, wins.
[Answer]
# JavaScript (ES7), ~~55~~ 54 bytes
```
f=n=>n?f(n-1)+'beep'+[" "[n>50|n%~~(n**=.4)^52%~n]]:''
```
[Try it online!](https://tio.run/##Dc27DoIwFADQna@4IZC2UAioFaMpTq7@ANaAWHyE3BIwLgi/XtnOdt7Vtxrq/tV9IjR3bW0jUeZ4bChGKQvJTeuOhIULboG5SH7ozzPFIJDxhl3Fyp9RqT0h9lCsOSQcUg4Zhx0HIThsMxU3pj9V9ZMiyBxGB6A2OJhWx6150PIMErwRpwt641KyBSVzJmb/ "JavaScript (Node.js) – Try It Online")
### How?
Given \$1\le n< 50\$, we want to know the number of consecutive beeps that are expected in this part of the sequence. The exact value is given by:
$$\left\lfloor\sqrt{\frac{2n}{5}}+\frac{1}{2}\right\rfloor$$
which is a slightly modified version of [A002024](https://oeis.org/A002024).
But in practice, we only need an exact value on the boundaries of the runs of beeps and we can deal with a few off-by-one errors. That's why we instead compute the following approximation:
$$k=\left\lfloor n^{2/5}\right\rfloor$$
We need to insert a space whenever one of the following conditions is satisfied:
* \$k=1\$ and \$n\bmod 1=0\$ (the 2nd part being always true)
* \$k=2\$ and \$n\bmod 2=1\$
* \$k=3\$ and \$n\bmod 3=0\$
* \$k=4\$ and \$n\bmod 4=2\$
All the above conditions can be merged into:
$$(n \bmod k) = (52 \bmod (k+1))$$
\$52\$ being the smallest integer \$x>0\$ such that \$x\bmod 3=1\$, \$x\bmod 4=0\$ and \$x\bmod 5=2\$.
We need an additional test for \$n\ge50\$, where all remaining beeps are concatenated together. Otherwise, unwanted spaces would be inserted, starting at \$n=54\$.
Hence the final JS expression:
```
n > 50 | n % ~~(n **= 0.4) ^ 52 % ~n
```
which evaluates to `0` when a space must be inserted.
---
# JavaScript (ES7), 55 bytes
A simpler approach using a lookup bit mask.
```
f=n=>n?f(--n)+'beep'+(0x222222492555F/2**n&1?' ':''):''
```
[Try it online!](https://tio.run/##HcbdCoIwGIDhc6/iO5C26TRdLfthelSH3UAFmm39IN9EIwLx2pf0wgPvq/pUfd0923eE9qadMwpVjoWhUYQsJFetWxLS5Cv@LTdCSnmYiyDAWVoQIFtC2MTtTgsOCYeUQ8ZhzUFKDqvsEhvb7av6QRFUDoMHUFvsbaPjxt5peQQF/oDjGf3BUGTTlMwbmfsB "JavaScript (Node.js) – Try It Online")
[Answer]
# x86-16 machine code, IBM PC DOS, ~~58~~ ~~54~~ 53 bytes
Binary:
```
00000000: a182 0086 e02d 3030 d50a 7423 95b8 2009 .....-00..t#.. .
00000010: b305 b101 8bf1 ba30 01cd 2183 fe05 740c .......0..!...t.
00000020: e20a 4b75 03b3 0546 8bce cd29 4d75 eac3 ..Ku...F...)Mu..
00000030: 6265 6570 24 beep$
```
Listing:
```
A1 0082 MOV AX, WORD PTR [82H] ; command line AL = first char, AH = second char
86 E0 XCHG AH, AL ; endian convert
2D 3030 SUB AX, '00' ; ASCII convert
D5 0A AAD ; BCD to binary convert
74 23 JZ EXIT ; handle 0 input case
95 XCHG AX, BP ; Beeps Counter (BP) = user input
B8 0920 MOV AX, 0920H ; AH = 9, AL = ' '
B3 05 MOV BL, 5 ; Space Counter (SC) = 5
B1 01 MOV CL, 1 ; Beeps per Space Counter (BpSC) = 1
8B F1 MOV SI, CX ; Beeps per Space (BpS) = 1
BA 0130 MOV DX, OFFSET BEEP ; DX pointer to 'beep' string
BEEP_LOOP:
CD 21 INT 21H ; display beep
83 FE 05 CMP SI, 5 ; exceeded 50 beeps?
74 0C JZ NO_SPACE ; if so, don't display space
E2 0A LOOP NO_SPACE ; if BpSC not zero, don't display space
4B DEC BX ; decrement Space Counter (SC)
75 03 JNZ DO_SPACE ; if SC is zero, restart it and increment BpS
B3 05 MOV BL, 5 ; reset SC to 5
46 INC SI ; increment BpS
DO_SPACE:
8B CE MOV CX, SI ; reset Beeps per Space Counter (BpSC)
CD 29 INT 29H ; display space
NO_SPACE:
4D DEC BP ; decrement Beeps Counter (BP)
75 EA JNZ BEEP_LOOP
EXIT:
C3 RET ; return to DOS
BEEP DB 'beep$'
```
Someone in the comments described this challenge as "evil". I wouldn't go that far... but definitely lacking empathy.
Arbitrary modulos can be pesky in x86 when registers are tight. This is the inelegant counter/countdown approach (seemed only appropriate for an alarm clock challenge), basically just jockeying these three counters:
* `SI` = *Beeps per Space (`BpS`)*: Start at `1`. Increment every `5` spaces displayed. Once
`5` is reached, no more spaces are displayed.
* `BX` = *Space counter (`SC`)*: Start at `5`. Decrement every space displayed.
At `0`, increment `BpS` and reset to `5`.
* `CX` = *Beeps per Space Counter (`BpSC`)*: Start at `1`. Decrement every `'beep'` displayed. At `0`, display a space and reset
to current `BpS`.
A standalone PC DOS executable, input is via command line.
[![enter image description here](https://i.stack.imgur.com/133lH.png)](https://i.stack.imgur.com/133lH.png)
**Props: -1 byte thx to [@gastropner](https://codegolf.stackexchange.com/users/75886/gastropner)!**
[Answer]
# [Python 3](https://docs.python.org/3/), ~~134~~ ~~124~~ 118 bytes
```
def f(n):
b=[*'beep']*n
for i in b'\4\t\16\23\30!*3<ER_ly\x86\x97\xa8\xb9\xca\xdb':b.insert(i,' ')
return''.join(b)
```
[Try it online!](https://tio.run/##PY5BDoIwFAX3PcXTTSmpRq0CGnHnBdz6jaFaYo35kIpJOT3ixjnAzLR992jYDMPd1agTVjsBW55TaZ1r5SVlgboJ8PAMK2lNHS0zWhkyi0lq9sfT9dVTLDKK25xiVVC0W4q3iuLdyp2de3670CVeS0glEFz3CSzl/Nl4TqwaGCXORmOhsdTINQqNzUYjyy9C/Ms8Xo20wfPPhensMNXjrldq@AI "Python 3 – Try It Online")
Explanation: Simply works by inserting a blank space at the required indices of the string.
*Thanks to pxeger for -6 bytes*
[Answer]
# [R](https://www.r-project.org/), 95 bytes
```
substr(s<-Reduce(paste,strrep("beep",c(rep(1:4,e=5),25))),1,c(el(gregexpr("b",s))[scan()]+3,0))
```
[Try it online!](https://tio.run/##FcqxCoNAEEXRf9lqHhlBk9iI/oStpFg3D5sgy4xC/n5dy3u4Voqfqx8mPjYzv2ei5OgHtZoxS1jJHDTJHd3wVk499NkD0K4yf7IZN/6z1TeoA4unuAs@j5e2QGnLBQ "R – Try It Online")
Thanks to @Dingus for pointing out a bug which made my code longer (and also wrong). Thanks to madlaina for suggesting a better regex.
Outgolfed handily by [Dominic van Essen](https://codegolf.stackexchange.com/a/209939/67312).
```
nreps <- c(rep(1:4,e=5), # repeat the beeps 1,2,3,4 each 5 times
25) # and 25 times
beep <- strrep("beep",nreps) # build a list of the repeated "beep"s
s <- Reduce(paste,beep) # combine into one string, separated by spaces
i <- el(gregexpr("b",s)) # find the start index of each occurrence of a "beep"
e <- i[scan()]+3 # find the end index: the starting point of the n'th beep + 3
substr(s,1,c(e,0)) # and substring into s from 1 to e (or 0 if e is empty)
```
[Answer]
# [R](https://www.r-project.org/), ~~89~~ ~~87~~ ~~73~~ 69 bytes
*Edit: -20 (yes, 20) bytes thanks to Giuseppe*
```
x=scan();cat(strrep("beep",c(b<-(a=5:24%/%5)[cumsum(a)<x],x-sum(b))))
```
[Try it online!](https://tio.run/##K/r/v8K2ODkxT0PTOjmxRKO4pKgotUBDKSk1tUBJJ1kjyUZXI9HW1MrIRFVf1VQzOrk0t7g0VyNR06YiVqdCF8RO0gSC/@am/wE "R – Try It Online")
The guts of this are stolen from [Giuseppe's R answer](https://codegolf.stackexchange.com/questions/209921/print-my-clocks-alarm-sound/209930#209930), so please upvote that one... Edit: especially after he's now massively golfed-down this one!
However, I wanted to see whether a simpler, non-regex approach of constructing the correct number of 'beep'-repetitions (instead of making a very long one and then cutting it down) could be shorter.
So far it is...
[Answer]
# [Python 2](https://docs.python.org/2/), 59 bytes
```
f=lambda n:n*"?"and f(n-1)+"beep "[:4|0x444444924aabe>>n&1]
```
[Try it online!](https://tio.run/##HcxLCsIwFEbhuau4XKi0GsHGNGLAupDSQUKTWtC/IXag4N7j48y/E1/LdYbMOZxv9u4GSzDY8IUtBgoldnW1Zed9JO6Meu@f6t9JKmudb1us6z6HORFoAiWL0ZeHr@maRmgt9LE3K4ppwkJcyAcXEL9tlT8 "Python 2 – Try It Online")
Uses a hardcoded lookup table to decide whether to put a space after each beep. I attempted to make formulas instead but didn't find something shorter.
[Answer]
# [dotcomma](https://github.com/RedwolfPrograms/dotcomma) (old), 96577 bytes
Dotcomma is a language I created. I don't think I have any documentation or interpreter to link to yet, so it's not really competing at the moment. Takes input based on the number of inputs. Because it's so long, and very repetitive, here's the two blocks it's made up of:
**For every `beep` without a space:**
```
[[,.],[[[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,]]]
```
**For every `beep` with a space:**
```
[[,.],[[[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,][[.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.][.].,]]]
```
There's probably a way to golf down those constants. Anyway, I'll post an explanation when I have time.
**Update:** Dotcomma now has documentation and an interpreter. Because I added so many important new features since I posted this, it's practically a different language. If anyone else wants to post a different dotcomma answer that uses the full extent of the language's features, go ahead!
[Answer]
# [Husk](https://github.com/barbuz/Husk), ~~16~~ 15 bytes
```
wmΣC:Ṙ5ḣ4¹R¨⁸ep
```
[Try it online!](https://tio.run/##ASMA3P9odXNr//93bc6jQzrhuZg14bijNMK5UsKo4oG4ZXD///81OA "Husk – Try It Online")
## Explanation
```
¨⁸ep Compressed string literal "beep"
R Repeat n times, n is input:
["beep","beep",..,"beep"]
C:Ṙ5ḣ4¹ Cut the above into pieces.
ḣ4 Range to 4: [1,2,3,4]
Ṙ5 Replicate 5 times:
[1,1,1,1,1,2,2,2,2,2,..,4]
: ¹ Append n:
[1,1,1,1,1,2,2,2,2,2,..,4,n]
C Cut the beep list to these lengths:
[["beep"],["beep"],..,[..,"beep","beep"]]
C stops when it runs out of elements, possibly cutting the last list short.
In this case it has to, since the beep list has length n.
mΣ Concatenate each:
["beep","beep",..,"beepbeep...beep"]
w Join by spaces, implicitly print.
```
[Answer]
# [Poetic](https://mcaweb.matc.edu/winslojr/vicom128/final/), 853 bytes
```
anything i did was futile
o,a clock i set definitely failed
i know i,at one A.M,crave a rest
i notice,o!the alarm!it beeps
it provides no break to get a dream
its six A.M
aaggh,i got up
should i get sleep at six A.M while in bed?nope,never
i need to snooze now,but couldnt
im tired
ill get cereal:a bowl,milk,flakes
o no,the milk spills
dammit,i shout,getting kleenex and old unclean napkins
next,the pouch of frosted flakes
finally,i make a toast
i look,o no!eight A.M
must i hustle,so i begin at ten?i needed to rush,i am tardy
so i change:i get a jacket,i get a shirt
aw hell,o no,found no pair o pants
ill clearly suffer in a pair o boxers
i see,o no!eleven A.M
its a shame,o,too late
really,ill wear a blouse
so now i hurry
o,here now
i sit
time flies
i see,o my!three P.M
now i earned a rest
i badly ne-ee-ee-ee-eeeded a nap
i topple,and then i do
```
[Try it online!](https://mcaweb.matc.edu/winslojr/vicom128/final/tio/index.html?RVPBrpwwDLzzFd572ltV6V2e@gGV@guGGEgJMUrMsvTnX8fstk9CgiST8XjGcDltTmWiRDFFOrjRuFvK0mlgGrIOC46aGEUZU0km@aSRAYhdoqXoQSmwkRahH19/hqHyXYipSjMAiloaJOjNZuxmrustGfUiW@vwsVW9pygNOOqr8EKmNKEYU8RyBaZRSw@n7pinaQ6JJjXat67NuucIcY5vGZQEHS8wHTMkUiqoFd@LbhKK3KW6JJHoZVpR/SOofIR@NxqcrUDzSpaqd5fzRT0IlOQ3pl6PHNaUlzBmXqR1isvBG/NNahtutC7yuiaDTNdnAQzm9i4QWORBXCIpZO9lyMKFCm9LKq3DmV1cm@7DTDrSWLUZpL6KwXzO@QTxijUMMuXL4qy6BJdykzTNdlm17s3gzIxXltAU371McAMOmZT3pwtPH@re3FVG31zj2V3oYeYyyVt6hfGbh0W8qeeyzalaxwfNkvNVO4y6ozPEuHGq5K9i7fLQ@6wYmraPo1SPhP@Ben1IBQrzJa8WMlIqVw8evZfiFWfBVCmzSedhuA1gPkAMSJ91b@K6r2lE17WeGN8ZwfmW8yfrLK0CM5N8FlxPzGUVoV@o97wMygJf/g9wzxHai3yRz@dyjj06AEy3DR57roiv@H@kH9@/feDiXw)
This was a tough program to write. I wrote the poem about an alarm that wakes me up way too early.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~17~~ 16 [bytes](https://github.com/DennisMitchell/jelly)
```
4Rx5Ä‘œṖȧ€“&?»$K
```
A monadic Link accepting an integer which yields a list of characters.
**[Try it online!](https://tio.run/##AScA2P9qZWxsef//NFJ4NcOE4oCYxZPhuZbIp@KCrOKAnCY/wrskS////zg "Jelly – Try It Online")**
### How?
```
4Rx5Ä‘œṖȧ€“&?»$K - Link: integer, n e.g. 8
4 - four 4
R - range [1,2,3,4]
5 - five 5
x - times [1,1,1,1,1,2,2,2,2,2,3,3,3,3,3,4,4,4,4,4]
Ä - accumulate [1,2,3,4,5,7,9,11,13,15,18,21,24,27,30,34,38,42,46,50]
‘ - increment [2,3,4,5,6,8,10,12,14,16,19,22,25,28,31,35,39,43,47,51]
$ - last two links as a monad - i.e. f(n):
“&?» - compressed string "beep"
ȧ€ - (n) AND each ("beep") ["beep","beep","beep","beep","beep","beep","beep","beep"]
œṖ - split before indices [["beep"],["beep"],["beep"],["beep"],["beep"],["beep","beep"],["beep"]]
K - join with spaces "beep beep beep beep beep beepbeep beep"
```
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), ~~22~~ ~~21~~ ~~20~~ 19 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
F’¼®b’4L5и{¦.¥NåúRJ
```
-1 byte by porting the approach used in multiple other answers.
[Try it online](https://tio.run/##yy9OTMpM/f/f7VHDzEN7Dq1LAtImPqYXdlQfWqZ3aKnf4aWHdwV5/f9vAQA) or [verify all test cases](https://tio.run/##yy9OTMpM/V9Waa@k8KhtkoKS/eGtlf/dHjXMPLTn0LokIG3iY3phR/WhZXqHlvodXnp4V5DX/1qd/9HGOgY6hjrmOhY6pqY6ZuY65qaxAA).
---
Original approach:
# [05AB1E (legacy)](https://github.com/Adriandmen/05AB1E/tree/fb4a2ce2bce6660e1a680a74dd61b72c945e6c3b), ~~22~~ 21 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
'¬ž4L₂¸«×5иé»Z¡I£'p«J
```
Output is joined by newlines. If this has to be spaces instead, 1 byte has to be added by replacing the `»` with `ðý`.
[Try it online](https://tio.run/##AS0A0v8wNWFiMWX//yfCrMW@NEzigoLCuMKrw5c10LjDqcK7WsKhScKjJ3DCq0r//zg) or [verify all test cases](https://tio.run/##MzBNTDJM/V@m5JlXUFpipaBkX6nDpeRfWgLh6fxXP7Tm6D4Tn0dNTYd2HFp9eLrphR2HVx7aHXVoYeWhxeoFh1Z7/dc5tM3@f7SxjoGOoY65joWOqamOmbmOuWksAA).
I wanted to use the legacy version of 05AB1E, since the maximum builtin `Z` works on strings (getting the character with the largest codepoint), which isn't the case in the new version of 05AB1E. This would have saved a byte over `'r`. Unfortunately, the legacy version lacks the append\_to\_list builtin `ª`, so we'll have to use `¸«` instead.
**So here is a regular [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands) version as well with the same ~~22~~ 21 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage):**
```
'¬ž4L₂ª×5иé»'r¡I£'p«J
```
[Try it online](https://tio.run/##ASwA0/9vc2FiaWX//yfCrMW@NEzigoLCqsOXNdC4w6nCuydywqFJwqMncMKrSv//OA) or [verify all test cases](https://tio.run/##yy9OTMpM/V@m5JlXUFpipaBkX6nDpeRfWgLh6fxXP7Tm6D4Tn0dNTYdWHZ5uemHH4ZWHdqsXHVpYeWixesGh1V7/dQ5ts/8fbaxjoGOoY65joWNqqmNmrmNuGgsA).
**Explanation:**
```
F # Loop `N` in the range [0, (implicit) input-integer):
’¼®b’ # Push dictionary string "peeb"
4L # Push list [1,2,3,4]
5и # Repeat it 5 times: [1,2,3,4,1,2,3,4,...]
{ # Sort it: [1,1,1,1,1,2,2,2,2,2,...]
¦ # Remove the first value
.¥ # Undelta this list (with implicit leading 0):
# [0,1,2,3,4,6,8,10,12,14,17,20,23,26,29,33,37,41,45,49]
Nå # Check if `N` is in this list (1 if truthy; 0 if falsey)
ú # Pad "peeb" with that many leading spaces
R # Reverse it to "beep" or "beep "
J # Join all strings on the stack together
# (after the loop, the result is output implicitly)
'¬ž '# Push dictionary string "beer"
4L # Push a list [1,2,3,4]
₂ # Push 26
ª # New version: Append it as trailing item to the list
¸« # Legacy version: Wrap into a list; merge the lists together
# [1,2,3,4,26]
× # Repeat each string that many times:
# ["beer","beerbeer","beerbeerbeer","beerbeerbeerbeer",...]
5и # Repeat this list five times
é # Sort it based on length
» # Join all strings in the list by newlines
'r '# New version: Push "r"
Z # Legacy version: Push the maximum character (without popping),
# which is "r"
¡ # Split the string on "r"
I£ # Leave the first input amount of substrings
'p« '# Append a "p" to each string in the list
J # And join it all together again
# (after which the result is output implicitly)
```
[See this 05AB1E tip of mine (section *How to use the dictionary?*)](https://codegolf.stackexchange.com/a/166851/52210) to understand why `’¼®b’` is `"peeb"` and `'¬ž` is `"beer"`.
[Answer]
# [Io](http://iolanguage.org/), ~~81~~ ~~78~~ 75 bytes
Shamelessly ported from Arnauld's answer.
```
f :=method(i,if(i>0,f(i-1).."beep".." "repeated(1200959982447294>>i&1),""))
```
[Try it online!](https://tio.run/##DYxBCsMgEADveYV4KC5sg9qkxkL9S9qsZCGJYv2/dQ4zt@HUWhSv90l1T5ti5Kg4aOy@GxhH@SHKslfIQpnWSpsyVms/e7/YaXLWTyHwzQBKCdAO/lWl0eADHS44z/h0IGIqtH73vh9Ep89B5MJXPa4B2h8 "Io – Try It Online")
# [Io](http://iolanguage.org/), ~~152~~ 113 bytes
Port of Manish Kundu's answer.
```
method(x,O :=("beep"repeated(x)asList);" !*3<ER_ly†—¨¹ÊÛ"foreach(i,if(i<x*4,O atInsert(i," ")));O join)
```
[Try it online!](https://tio.run/##y8z/n6ZgZasQ8z83tSQjP0WjQscfyNdQSkpNLVAqSi1ITSxJBYpqJhb7ZBaXaForsXDyCUsoahnbuAbF51Qeajs0/dCKQzsPdx2erZSWX5SamJyhkamTmaaRaVOhZQI0LLHEM684tagEKKqkoKSpqWntr5CVn5mn@T8HaKCGgY6hjrGOuY6Fjqmpjpm5pgLCEC4FIAAapKlQUJSZV5KTx6X5HwA "Io – Try It Online")
## Explanation
```
method(x, // Input x
O :=("beep"repeated(x)asList) // "beep" repeated x times
" !*3<ER_ly†—"foreach(i, // For every codepoint in this string:
if(i<x*4, // If doing this doesn't cause an error:
O atInsert(i," "))); // Insert at this position
O join) // Join O without a separator
```
[Answer]
# [J](http://jsoftware.com/), 50 46 bytes
```
;@({.<@,&' '@;/.[$<@'beep')&((##\)25,~1+5#i.4)
```
[Try it online!](https://tio.run/##y/pvqWhlbK4QrWCgYGhgYACkjIyMuJT01NMUbK0U1BV0gCJWQKyrp@Ac5OP239pBo1rPxkFHTV1B3cFaXy9axcZBPSk1tUBdU01DQ1k5RtPIVKfOUNtUOVPPRPO/JhdXanJGvkKagiGMYQpjmMEY5jCGBYxhZABhqavD1Zj@BwA "J – Try It Online")
## how
`25,~1+5#i.4` produces:
```
1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 25
```
`(##\)` pairs that with an integer list of the same length:
```
1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 25
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
```
and duplicates the bottom list according to the corresponding element of the top list:
```
1 2 3 4 5 6 6 7 7 8 8 9 9 10 10 11 11 11 12 12 12 13 13 13 14 14 14 15 15 15 16 16 16 16 17 17 17 17 18 18 18 18 19 19 19 19 20 20 20 20 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21 21
```
Call this our "key". We're going to use it to group our "beep"s together.
Our key becomes the right argument to `;@({.<@,&' '@;/.[$<@'beep')`.
`[$<@'beep'` first duplicates "beep" according to the input. Say, for an input of 8 we get:
```
┌────┬────┬────┬────┬────┬────┬────┬────┐
│beep│beep│beep│beep│beep│beep│beep│beep│
└────┴────┴────┴────┴────┴────┴────┴────┘
```
`{.` takes the first 8 elements of our key, creating a new key:
```
1 2 3 4 5 6 6 7
```
The key adverb `/.` applies the verb `<@,&' '@;` to each group defined by the new key. It unboxes, appends a space, and reboxes:
```
┌─────┬─────┬─────┬─────┬─────┬─────────┬─────┐
│beep │beep │beep │beep │beep │beepbeep │beep │
└─────┴─────┴─────┴─────┴─────┴─────────┴─────┘
```
`;@` unboxes again, giving the result:
```
beep beep beep beep beep beepbeep beep
```
[Answer]
# [Python 3](https://docs.python.org/3/), ~~108 120 118~~ 110 bytes
*+12 because I forgot to include the import statement which I had to put in the TIO header, not body*
*-2 by replacing \x00 with \0 - thanks to @ovs*
*-8 by filtering instead of replacing, and switching from `.` to `!`*
```
import zlib;lambda x:filter(33 .__ne__,zlib.decompress(b'x\x9cKJM-PH\xc2A(\x92\xc7\xa26\x97nb4!\0hm{7')[:x*5])
```
[Try it online!](https://tio.run/##HY3RCsIgGIVfZV3tN2qEa0nrqrsogu4zZG6OCdOJGrh6eHOdq@@Dwzlm9sOkyyiVmazPPqPkJ2Ol9sBnLxxAHBvFuyYLdS9HLyyUZVYwpgVjm6VddKKdlLHCOeB5oOHY3q737eNCQ4vPkBwnIjQ0@JCEaL5f0d2gviRHzzqsqxeKCJZDqc3bA0r5b3YicazIDw "Python 3 – Try It Online")
### How It Works
Sorry. I couldn't be bothered to come up with a clever algorithm.
`zlib` compressed string: `beep beep beep beep beep beep!beep beep!beep beep!beep beep!beep beep!beep beep!beep!beep beep!beep!beep beep!beep!beep beep!beep!beep beep!beep!beep beep!beep!beep!beep beep!beep!beep!beep beep!beep!beep!beep beep!beep!beep!beep beep!beep!beep!beep beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep!beep`
which is indexed into upto `n*5`th character, and then we filter for the bytes which don't equal 33 (exclamation mark). I chose `!` using a brute-force to find the the shortest compressed output from `zlib`.
[Answer]
# [Wolfram Language (Mathematica)](https://www.wolfram.com/wolframscript/), 188 bytes
```
If[#==0,"",c=#;T@v_:=v~Table~5;w=Accumulate[z=Flatten@{T/@Range@4,25}];StringRiffle[""<>#&/@Join[1~Table~#&/@z[[;;Max@Position[w,m=Max@Select[w,#<=c&]]]],{Table[1,c~Mod~m]}]/. 1->"beep"]]&
```
[Try it online!](https://tio.run/##LY3Ra8IwGMT/FUmhT98W69Ypi5H4MthAcNq3EEbMvnaBJh1bqsPS/utZFe/luB/cndPhC50O1uhY8fhayoTzKRAChiesEMePZ34cCn2occjZia@NaV1b64DyzF9GD@hFV1Cx075C8QizvFdsH36sr3a2LGuUhCxXSUrFW2O9zG5bF3CWkrGN/hPb5tcG23h5AscvYI81mjDGZMlNqkZBd@3JDMywaT4Hp3pF7yfZ3YocEL@JUml8by0GuR2vAxUVFZPuAaaQwRwWkOfwNO9VjP8 "Wolfram Language (Mathematica) – Try It Online")
[Answer]
# [Python 3](https://docs.python.org/3) , 164 Bytes
[Try it online](https://tio.run/##VY2xCoMwFAB3vyI8EF7MoxCrHULtj4QMiokNmFQaEfv1qQ4dut1yd8tnfb7iNceubvPUzX0Yxp4l2imoxLxj4RGZnZNlEyYBg7ULVLsABoS6bkkaoXeBoWzukptKNlxjEJKX8mbohGLrJgQgSQe73yCQV5tW3vwt3KnSdnE@jggDkD8CvFjePq7o8EzwnL8)
This is my recursive approach. Somehow it's worse than I imagined it in my head.
Explanation:
*n* is the input number
The *g* function generates the beep sequence, where *x* controls the numbers of "beep"s . Every 4th call *x* is incremented by 1, and with the 16th call it's set to 25. In the next call it's reset to 1 . *g* generates *n* groups of "beep"s
the string is stored in *v*
*f* cuts *v* to the corrext number by searching for the next "b" in *v* until *n* is reached.
```
g=lambda s,x,m:s if m>n else g(s+"beep"*x+" ",([25,1]+[x+(m%4<1)]*14)[(m+1)%16],m+1)
v=g("",1,1)
f=lambda m,i:v[:i] if m>n else f(m+1,v.find("b",i+1))
print(f(1,1))
```
[Answer]
# [APL (Dyalog Unicode)](https://www.dyalog.com/), 32 bytes
```
∊' ',⍨¨(⎕↑×∊↑⍨¨25,⍨5/⍳4)⊂⊂'beep'
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT///qKNdITEnsSgXyOpSV1DXedS74tAKjUd9Ux@1TTw8HSgIpMFiRqYgOVP9R72bTTQfdTUBkXpSamqBOsiM/wpgADaJy5hLXVdXV50LWcwAi5ghFjFzLGIWWMRMTbEImpn/BwA "APL (Dyalog Unicode) – Try It Online")
With significant golfing input from ngn.
### Explanation
The code inside the parens builds a boolean array describing the grouping pattern, which we'll come back to below; quad (`⎕`) prompts for the quantity of beeps and the pattern is cut to that number. To the right of the parens the word `'beep'` is enclosed (monadic `⊂`) to make it a single thing (instead of an array of 4 characters), and that is partition-enclosed (dyadic `⊂`) by the pattern which groups the beep and implicitly repeats it to match the cut pattern length. To the left of the parens, the `beep`s get one space (`' '`) appended (`,⍨`) to each (`¨`) group of them, then get flattened (`∊`) into the result string.
Building the group pattern follows this progression:
```
5/⍳4 ⍝ five-replicate the first four numbers
1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4
25,⍨5/⍳4 ⍝ append 25 for the long run
1 1 1 1 1 2 2 2 2 2 3 3 3 3 3 4 4 4 4 4 25
↑⍨¨25,⍨5/⍳4 ⍝ turn each (¨) of the numbers into
⍝ a group that long, padded with zeros.
⍝ using take selfie (↑⍨).
⍝ e.g. Take first 3 items out of "3", get 3 0 0.
┌→┐ ┌→┐ ┌→┐ ┌→┐ ┌→┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→──┐ ┌→────┐ ┌→────┐ ┌→────┐ ┌→────┐ ┌→────┐ ┌→──────┐ ┌→──────┐ ┌→──────┐ ┌→──────┐ ┌→──────┐ ┌→─────────────────────────────────────────────────┐
│1│ │1│ │1│ │1│ │1│ │2 0│ │2 0│ │2 0│ │2 0│ │2 0│ │3 0 0│ │3 0 0│ │3 0 0│ │3 0 0│ │3 0 0│ │4 0 0 0│ │4 0 0 0│ │4 0 0 0│ │4 0 0 0│ │4 0 0 0│ │25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0│
└~┘ └~┘ └~┘ └~┘ └~┘ └~──┘ └~──┘ └~──┘ └~──┘ └~──┘ └~────┘ └~────┘ └~────┘ └~────┘ └~────┘ └~──────┘ └~──────┘ └~──────┘ └~──────┘ └~──────┘ └~─────────────────────────────────────────────────┘
∊↑⍨¨25,⍨5/⍳4 ⍝ flatten (∊) the nesting
1 1 1 1 1 2 0 2 0 2 0 2 0 2 0 3 0 0 3 0 0 3 0 0 3 0 0 3 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 4 0 0 0 25 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
×∊↑⍨¨25,⍨5/⍳4 ⍝ use direction (×) to turn all non-zero into 1
⍝ 1 marks the start of each group, 0 pads their length.
⍝ A boolean group-array for the full beep pattern
1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
20↑×∊↑⍨¨25,⍨5/⍳4 ⍝ take (↑) 20 beeps. (⎕ number beeps)
⍝ This is how it cuts in the middle of a
⍝ run of beepbeepbeep, by cutting the pattern.
1 1 1 1 1 1 0 1 0 1 0 1 0 1 0 1 0 0 1 0
(20↑×∊↑⍨¨25,⍨5/⍳4)⊂⊂'beep' ⍝ p-enclose of 'beep' shows the grouping,
⍝ and the cutoff group at the end.
┌→───────┐ ┌→───────┐ ┌→───────┐ ┌→───────┐ ┌→───────┐ ┌→──────────────┐ ┌→──────────────┐ ┌→──────────────┐ ┌→──────────────┐ ┌→──────────────┐ ┌→─────────────────────┐ ┌→──────────────┐
│ ┌→───┐ │ │ ┌→───┐ │ │ ┌→───┐ │ │ ┌→───┐ │ │ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ ┌→───┐ │ │ ┌→───┐ ┌→───┐ │
│ │beep│ │ │ │beep│ │ │ │beep│ │ │ │beep│ │ │ │beep│ │ │ │beep│ │beep│ │ │ │beep│ │beep│ │ │ │beep│ │beep│ │ │ │beep│ │beep│ │ │ │beep│ │beep│ │ │ │beep│ │beep│ │beep│ │ │ │beep│ │beep│ │
│ └────┘ │ │ └────┘ │ │ └────┘ │ │ └────┘ │ │ └────┘ │ │ └────┘ └────┘ │ │ └────┘ └────┘ │ │ └────┘ └────┘ │ │ └────┘ └────┘ │ │ └────┘ └────┘ │ │ └────┘ └────┘ └────┘ │ │ └────┘ └────┘ │
└∊───────┘ └∊───────┘ └∊───────┘ └∊───────┘ └∊───────┘ └∊──────────────┘ └∊──────────────┘ └∊──────────────┘ └∊──────────────┘ └∊──────────────┘ └∊─────────────────────┘ └∊──────────────┘
∊' ',⍨¨(20↑×∊↑⍨¨25,⍨5/⍳4)⊂⊂'beep' ⍝ append one space in each group
⍝ and flatten.
beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeep
```
[Answer]
# [Rust](https://www.rust-lang.org/), 76 ~~127~~ bytes
```
|n|(0..n).fold("".into(),|a,i|a+"beep"+&" "[..0x222222492555F>>i.min(63)&1])
```
[Try it online!](https://tio.run/##Tc49C4MwEAbgWX9FmkEuaIPWxn7i6NapY@mgaCRQY9EESht/e2qFQm57uLv3btCjslyirhQSCPr4nmpGBdZIAzGlklDeP2rAmAqpeiCRKSNhyhBXTfPEYYARvlEavzZLbQ8bxliR54J2c16WkiC5E@uRkz/5/nzmF34ujqiQF61Aj@LdELTO0VUNQrY5dFohPreXT@qqXQGHlMzrf8QuEhc7F3sXjLnKlsHJfgE "Rust – Try It Online")
Shamelessly ported from [Arnauld's JS solution](https://codegolf.stackexchange.com/a/209934/97519)
The binary constant has a bit set wherever the "beep" should be followed by a space.
## Old solution
```
|n|[1,2,3,4,25].iter().fold(format!(""),|a,&i|a+&("beep".repeat(i)+" ").repeat(5)).rsplitn(176-n,'b').last().map(str::to_owned)
```
[Try it online!](https://tio.run/##bY@xasMwEIbn@CkUDckdUUSd1Elxg8dspUPHUoqM5SCwJSGdCbTOs7tqIUPB293Hz3f/hSHS1FrWK2MB2Xe2IB0JptGO77nYib14FLviQxrSAVC2rmugdaFXtATOUYxKrMyoNivgtdaey6C9VgQGN5xxvK8FpjH6zpCF/HjYWrGu1yg7lW6h7JWHSKEsyX26q9UNTgt8zm5Zlpr99jmdS3a2LwPBEM2XRrat2Ksn4@zpjYKxl6qCfiDWptjfE019WUILe5SDvYakx@S704dZms/S4yx9mqVFMYsP/x23bPoB "Rust – Try It Online")
### Explanation:
We first construct the string `beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep...` with the last 25 successive `beep`s also being repeated 5 times. This string contains 175 `beep`s, so we trim from the right to and including the `176-n`th `b` and take the sub string left of there.
[Answer]
# APL+WIN, 50 bytes
Prompts for input of n:
```
(4×(p/m),¯1↑-(p←n≤0)/n←(+\m←(5/⍳4),25)-⎕)⍴¨⊂'beep'
```
[Try it online! Courtesy of Dyalog Classic](https://tio.run/##SyzI0U2pTMzJT9dNzkksLs5M/v@ob6qvz6O2CcZcjzra0/5rmByerlGgn6upc2i94aO2iboaBUDJvEedSww09fOATA3tmFwQZar/qHeziaaOkammLtAMzUe9Ww6teNTVpJ6Umlqg/h9o2P80LmOuNC4DIDYEYnMgtgBiU1MgYWbOxQUA "APL (Dyalog Classic) – Try It Online")
[Answer]
# [Charcoal](https://github.com/somebody1234/Charcoal), 23 bytes
```
FN«beep¿&⍘(XsB!,zOγX²ι→
```
[Try it online!](https://tio.run/##DcyxDoIwEADQGb7i7HRN6uKgiU52c1CJLq4FD7gEWtIWSDR@e@3@8pre@MaZIaXWecCLneZ4m8eaPEoJ37KoPNuIoiaahDyVBbeAmuPKgc72jdoEesZsOhT4CnqjPnehoJMKKrfmZaeAZa6ubiE8PrjrY25@Ke0PabsMfw "Charcoal – Try It Online") Link is to verbose version of code. Uses the popular bitmask approach. Explanation:
```
FN«
```
Loop the given number of times.
```
beep
```
Print a beep.
```
¿&⍘(XsB!,zOγX²ι→
```
If the appropriate bit in the constant is set, then move right one character. The constant is probably the same as everyone else's but here I'm effectively encoding it using base 95.
[Answer]
# [PowerShell](https://github.com/TryItOnline/TioSetup/wiki/Powershell), 68 bytes
```
(0.."$args"|%{' '*((0x444444924AABE-shr$_)%2)*($_-lt52)})-join'beep'
```
[Try it online!](https://tio.run/##7VRtS8MwEP7eX3HU1CSjGbWuTgXFCf6O0m3nWoldTTI26frba8xeiuCHCvOTBnLc2/NwdyRXLdeodI5StuQZ7qBuWTQc@iRTC@1vg5oCHTAWbUbu3MSjyeTxSehckZQHMR8wkgppkpg3XLwsi5JOESvaNp73wLyQXQJA6HzQCcqt9wyy8h2MygpZlAtY54VBXWUzhEJDJqWta24JIkdAuVUvOi5nj7/j/iq65Oueya78T0CS9Af0VU5i/Jrj2PrV@C@2/tO7e4PJ/6hOMkoOWwig9uw3BVKuXqeoQiC4qXBmcG4XE0l3MYV6JY11nNt9tc90EZ@wfVDg2xHJbw9JIO4PaN9r2g8 "PowerShell – Try It Online")
The script:
1. generates an array of whitspace and empty strings
2. joins array elements with 'beep'
The script can add a trailing whitespace that is allowed by the author. See the test cases in the TIO link.
The Powershell works with 64 bitmasks only, so I had to add a condition `($_-lt52)`
[Answer]
# [C (gcc)](https://gcc.gnu.org/), ~~72~~ \$\cdots\$ ~~66~~ 60 bytes
Saved 10 bytes thanks to the man himself [Arnauld](https://codegolf.stackexchange.com/users/58563/arnauld)!!!
```
f(n){n&&printf(" beep"-~-(0x888889249557c>>n&n<55),f(n-1));}
```
[Try it online!](https://tio.run/##5ZPBCsIwDEDvfkUpOFqwsDq7Tie7@Re7aLeJB8MQD4LMX5@d2ApTysT1ZKAhTZvmkaSK7ZVq24oAvUIQ1KcDnCuC0a4sa8xujISXpJPlfLEUQqosgwDWQtCZDmGc0rRpdQg6bg9A6OQ6QVrMK1O2KPAMRTR9uCtiLHMhh82lLtW5LFY5RPqgS/tSObBfJQfcy/mECi1U6IIKfTJwy8BdDPxZGJ8o0qJIF4p861FP@eZMLGfi4kyGcHovqv4mhtaaH3GFGIo71Bhl483hu/Dxa5xj5zzH8v8K/@0arVFNewc "C (gcc) – Try It Online")
Recursively calls itself \$n\$ times evaluating a bitwise expression (where the \$1\$ bits of a hard coded integer indicate if a space is needed) to determine whether or not to prefix the current `beep` with a space. This is done by adding \$0\$ or \$1\$ to a string literal (`char*` pointer) to offset it by one or not.
[Answer]
# [Vyxal](https://github.com/Lyxal/Vyxal), 20 bytes
```
4ɾƛS5*fvI;?Jf«⟇½⁰«*Ṅ
```
[Try it Online!](http://lyxal.pythonanywhere.com?flags=&code=4%C9%BE%C6%9BS5*fvI%3B%3FJf%C2%AB%E2%9F%87%C2%BD%E2%81%B0%C2%AB*%E1%B9%84&inputs=58&header=&footer=)
[Answer]
# [PowerShell 5.1](https://docs.microsoft.com/en-us/powershell/), 227 bytes
```
$n=10;function f($x){$r.Length-in$x};$c=0;$r="";$t=0;while($c-lt$n){$s=-1;switch($true){{f(0..24)}{$s=1}{f(25..69)}{$s=2}{f(70..134)}{$s=3}{f(135..219)}{$s=4}};$r+="beep";$t++;if($t-ne$s){$c++;continue};$r+=" ";$t=0;$c++};$r
```
Explanation: $n is the input number. I tried to write this without doing it via arrays because I felt like it would be cheating, as I had already read [this answer](https://codegolf.stackexchange.com/questions/209921/print-my-clocks-alarm-sound/209927#209927). I used the length of the string to determine how many "beeps" were needed before I placed a space. If the length of the string is between 0 and 24, 1 space. If the length of the string is between 25 and 69, 2 spaces. etc.
Here's the "cleaner" version
```
$n = 9
function bl ($x) {$beepString.Length -in $x}
$count = 0
$beepString = ""
$beepsThisTime = 0
while($count -lt $n)
{
$neededBeepsBeforeSpace = -1
switch($true)
{
{bl(0..24)}{$neededBeepsBeforeSpace = 1}
{bl(25..69)}{$neededBeepsBeforeSpace = 2}
{bl(70..134)}{$neededBeepsBeforeSpace = 3}
{bl(135..219)}{$neededBeepsBeforeSpace = 4}
}
$beepString += "beep"
$beepsThisTime++
if($beepsThisTime -ne $neededBeepsBeforeSpace){$count++;continue}
$beepString+=" "
$beepsThisTime = 0
$count++
}
$beepString
```
[Answer]
# [Lua](https://www.lua.org/), 105 bytes
```
function b(n)t={}for i=5,24 do t[(i-1)*(i-2)//10]=' 'end for i=1,n do io.write('beep'..(t[i]or''))end end
```
Ungolfed code and test program:
```
function b(n)
t={}
for i=5, 24 do
t[(i-1)*(i-2)//10] = ' '
end
for i=1, n do
io.write('beep' .. (t[i] or ''))
end
end
for k, v in ipairs({ 3, 0, 1, 7, 8, 55, 67, 75 }) do
io.write(v .. '\t') b(v) print()
end
```
Output:
```
3 beep beep beep
0
1 beep
7 beep beep beep beep beep beepbeep
8 beep beep beep beep beep beepbeep beep
55 beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeep
67 beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeep
75 beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeep beepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeepbeep
```
[Try it online](https://tio.run/##PY4xDsIwEARreMV29qHDJECAJi8BigQc6QSyI@OEIuLtwRYSxa22mB3dc2jmuRvcLYp3aLWjWE@fzgdIXfF2j7tHPGtZl7RKuaXNpiyutYKy7o4fV7LLmHjzDhKtVq21vTJGx7NcfVCKKMPp5jx4MEaIg/SNhJeesGMUjJJxZJwYVcU4pHqs8KEkXi7@5hHGQF2iovTqSOiDuKhpmdVf)
Edit 1: Thank you for your suggestions :) It greatly helped to compress the sequence that was used.
Edit 2: 99 Bytes solution provided by Arnault, getting rid of the (-1) and using a partial and clever one's complement to decrease a number:
```
function b(n)t={}for i=4,23 do t[i*~-i//10]=' 'end for i=1,n do io.write('beep'..(t[i]or''))end end
```
[Try it online](https://tio.run/##PY5BDoIwFETXcorZtTXfAiLihpMoCxBIfjQtqQUXBK@OJSYuJpnFm5d5jvW69qO5e7YGjTTKl/PSWwcuT3TM0Fr4K@8/B47jNKlKAdGZFj8iJbMBbPXbse@kaLpuEFrLMKmsE0KpDQ5Zt8GDMIENeKjZveSMjJAQUkJBuBDynHAOtcixqCCOdn/zBK0hbl6ocHJSGBwbL1W0qb8)
[Answer]
## [Setanta](https://try-setanta.ie/), ~~146~~ ~~144~~ ~~140~~ ~~124~~ 123 bytes
*-16 bytes by using a cheaper check for the first beep.*
*-1 byte by discovering that braces could be left out in one place.*
```
gniomh(n){s:=""le i idir(0,n){a:=(i&freamh@mata((i-1)//5*8+1)+1)//2d:=(i-5*(a*a-a)/2)%a ma!d&i<51 s+=" "s+="beep"}toradh s}
```
[Try it here!](https://try-setanta.ie/editor/EhEKBlNjcmlwdBCAgICglsiZCg)
[Answer]
# [Zsh](https://www.zsh.org/), 64 bytes
```
repeat $1 z+=beep.
repeat 4 repeat x+=5,5 z[t+=x]=\
<<<${z//./}
```
[Try it online!](https://tio.run/##qyrO@F@cWqKg66Zgbvq/KLUgNbFEQcVQoUrbNik1tUCPCypkogBlqFdo25rqmKorVEWXaNtWxNrGKHDZ2NioVFfp6@vp1/7/DwA "Zsh – Try It Online")
Because of a bug that's not fixed in the Zsh version available on TIO, the `x+=5,5` needs to be single-quoted for +2 bytes.
Works by constructing a string of `beep.`, replacing some `.`s with spaces, and then removing the `.`s. The differences in the indeces at which to remove the `.`s are `5, 5, 5, 5, 5, 10, 10, ... 15, 15, 20, 20, 20, 20, 20`, so we cumulatively sum these as we go.
* `repeat $1`: do this {input} times:
+ `z+=beep.`: append `beep.` to the variable `$z` (which implicitly starts empty)
* `repeat 4`:
+ `repeat x+=5,5`: do this 5 times, but also increment `$x` by `5` (it starts at `0` implicitly) before the loop starts:
- `t+=x`: increment `$t` (the cumulative sum) by `$x` (again, `$t` starts at `0` implicitly)
- `z[]=\` : set the `$t`th character (1-indexed) of `$z` to a space
* `${z//./}`: take `$z`, with dots `.` replaced by {empty string}
* `<<<`: print
[Answer]
# [dotcomma](https://github.com/Radvylf/dotcomma), ~~617~~ 569 bytes
```
[,].[[[,.][[[[[.][.][.][.].,][,.].,][,.].,][[,][[[,][,.].,][,][,].,].,][,][[[,.][.][.].,][.][.][.].,][,][[[,.][[[,.][[,]].,][],].,],].[,][.,][[.][.][.][.][.].,].[.[.[[[,.][[].[],].,][[,][[,][[[[,][[[,],]].,],]].,][],][.[.[,].][,][,]].][,][[,][[,][,][,]].,][.[.[,].]][[,.][[].[],].,],.[[[,][[,.]].,][.[.[,].][,]]],.[.[.[,].][,[.][.][.][.][.].,][,]][,],.][.[.[,].][,]][[[,.][[].[],].,][,.].,].[.[,].][,][,],.][,][.[.[,].]][,[,[,[,[,[,[,[,.]]]]]]]]].,].[[.[.[,].]][[,.][[].[],].,][.[[,],]][.[.[,].][,][,]][.[,]][,.][.[.[,].][,][,.]][.[[,][,.],.]].][.[.[,.].]][,.]],.[[,.]]
```
-48 bytes by rearranging the last counter loop and thereby avoiding duplicate code.
Phew, I need to rearrange my brain again... Bracket chaos ^^
This is first try with this language. It's quite fun. The changes made to the old version seem to be very effective when I can shrink the program size to less than 1% of the old version. Are there plans to put this language on tio.run? What about plumber? I think that's interesing, too.
Use the following snippet on your own risk (especially when changing the dotcomma code. I had several freezes because I unintetionally created endless loops)
```
<script src="https://combinatronics.com/Radvylf/dotcomma/master/interpreter.js"></script><script src="https://code.jquery.com/jquery-3.5.1.min.js"></script><script>$(document).ready(function () {$("#btnInterpret").click(function () {$("#txtResult").text(interpret($("#txtCode").val(), parseInt($("#txtInput").val()), $("#lstOutputAs").children("option:selected").val()));});});</script><style>.textBox {background-color: white;border: 1px solid black;font-family: Courier New, Courier, monospace;width: 100%;}</style>Code: <textarea id="txtCode" type="text" class="textBox" style="height: 200px">[,].[[[,.][[[[[.][.][.][.].,][,.].,][,.].,][[,][[[,][,.].,][,][,].,].,][,][[[,.][.][.].,][.][.][.].,][,][[[,.][[[,.][[,]].,][],].,],].[,][.,][[.][.][.][.][.].,].[.[.[[[,.][[].[],].,][[,][[,][[[[,][[[,],]].,],]].,][],][.[.[,].][,][,]].][,][[,][[,][,][,]].,][.[.[,].]][[,.][[].[],].,],.[[[,][[,.]].,][.[.[,].][,]]],.[.[.[,].][,[.][.][.][.][.].,][,]][,],.][.[.[,].][,]][[[,.][[].[],].,][,.].,].[.[,].][,][,],.][,][.[.[,].]][,[,[,[,[,[,[,[,.]]]]]]]]].,].[[.[.[,].]][[,.][[].[],].,][.[[,],]][.[.[,].][,][,]][.[,]][,.][.[.[,].][,][,.]][.[[,][,.],.]].][.[.[,.].]][,.]],.[[,.]]</textarea><br />Input: <textarea id="txtInput" type="text" class="textBox">25</textarea><br /><input id="btnInterpret" type="button" value="Run" />Output as: <select id="lstOutputAs"><option value="true">String</option><option value="">Number array</option></select><br />Result:<br /><div id="txtResult" class="textBox" style="overflow-wrap: break-word"></div>
```
**Code:**
(sorry for the missing interpunctuation. This way I was able to run the commented code directly in the interpreter)
```
[,].[ if input > 0
[[,.][ save input on recursion stack
[
[ ### Build ASCII values for "b" "e" "p" and space " "
[[.][.][.][.].,] 4
[,.].,] 8
[,.].,] 16
[[,] put 16 on recursion stack and save copy in queue
[
[[,][,.].,] 32
[,][,].,] 96
.,] 112 ("p")
in queue: 32 96 112
[,] roll left (queue: "@p ")
[[[,.][.][.].,][.][.][.].,] "b" "e"
[,] roll left (queue: " bep")
[[[,.][ save " " on recursion stack
[[,.][[,]].,] reverse letters ("peb")
[], insert 0 (start of queue)
].,],] save two copies of 32 (one for space character and one for counting beeps)
### Build list of "beep"s in reverse - each separated by a null char
Since the maximum input is 75 the 25 consecutive beeps at the end
will be limited by the input - so I can safely put a few more
beeps into the list because I just have a 32 handy
sc: spaces counter
pc: pattern counter
bc: beep counter
target queue: 0 0 sc pc bc " peb"
current queue: "peb" 0 bc(32) " "
I will refer to the two consecutive 0s at the start of the variable
section as "start of queue" or just "start"
pc: | 1 | 2 |
sc: | 1 | 2 | 3 | 4 | 5 | 1 | 2 | 3 | 4 | 5 |
bc: | 1 | 1 | 1 | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 | 1 | 2 |
beep beep beep beep beep beepbeep beepbeep beepbeep beepbeep beepbeep
.[,] roll to start
[.,] insert 1 for spaces counter (since I append new beeps to the start of the
queue we are only one space away from the next pattern)
[[.][.][.][.][.].,] insert 5 for pattern counter
queue: pc(5) bc(32) " bep" 0 sc(1)
.[ while pattern counter > 0 ### Attention: current position is beep counter!
.[ while spaces counter > 0 ### Attention: current position is beep counter!
.[ while beep counter > 0
[[,.][[].[],].,] save beep counter -1 on queue (also hold it in recursion stack)
[ # put a copy of "beep" on the queue
[,] roll over " "
[[,][[ put "p" on recursion stack
[[,][[ put "e" on recursion stack
[,] put "b" on recursion stack
,]] put "b" on queue
.,],]] put "ee" on queue
.,] put "p" on queue
[], put 0 on queue
]
[
.[.[,].] roll to start (roll until two consecutive 0s are found)
[,][,] go to beep counter
]
.] return value for loop (end of beep counter loop)
# insert space
[,] roll over beep counter
[[,][[,][,][,]].,] copy and insert space
# if spaces counter - 1 > 0: copy pattern counter to beep count
(the pattern counter contains the number of consecutive beeps
that should be separated by a space)
[.[.[,].]] roll to spaces counter
[[,.][[].[],].,] decrement spaces counter
,.[ if spaces counter > 0
[[,][[,.]].,] replace beep counter with copy of pattern counter
[.[.[,].][,]] roll to pattern counter (if the spaces loop repeats we need to be at
the beep counter; I will read the next value to determine if the loop
should repeat; Thats's why I stop one value before beep counter)
],.[ else
.[.[,].] roll to spaces count
[,[.][.][.][.][.].,] set it 5 for next round
[,] roll to beep count
]
[,],. get return value for loop (pattern counter for repeating
or beep counter(0) for stopping)
] end of spaces loop
[.[.[,].][,]] roll to pattern counter
[
[[,.][[].[],].,] decrement pattern counter
[,.]., set new beep counter = pattern counter
]
.[.[,].][,] roll to pattern counter
[,],. repeat if > 0
] end of pattern loop
[,][.[.[,].]] roll to start
[,[,[,[,[,[,[,[,.]]]]]]]] delete variables constants and excess space in front of first beep
].,] put input back into queue
### Count beeps
The idea is to delete all 0s between the beeps until we match the input
then deleting everything behind it
I thought it would be easy to delete single 0s - What I didn't consider was
that I can end a loop only after a 0 has been processed so I needed a trick
What I do is: duplicate every character until I reach a 0 (which will also
be duplicated)
Then find the first 0 (reassigning it to the end of the queue) and delete
the second 0
After that I can delete the duplicated characters including the 0
.[ while input counter > 0
[.[.[,].]] roll to start
[[,.][[].[],].,] decrement input counter
[.[[,],]] duplicate until first 0
[.[.[,].][,][,]] roll to start + 2
[.[,]] roll to first 0
[,.] delete second 0
[.[.[,].][,][,.]] roll to start + 2 (deleting the second character)
[.[[,][,.],.]] delete every 2nd character until 0 found
.] end of loop end of loop
[.[.[,.].]] delete everything up to start
[,.] delete input counter
],.[ else (if input is 0)
[,.] delete input and output nothing
]
```
[Answer]
# [Haskell](https://www.haskell.org/), 58 bytes
```
f n=do i<-[1..n];[' '|odd$div 0x888889249557c$2^i]++"beep"
```
[Try it online!](https://tio.run/##y0gszk7Nyfn/P00hzzYlXyHTRjfaUE8vL9Y6Wl1BvSY/JUUlJbNMwaDCAgQsjUwsTU3Nk1WM4jJjtbWVklJTC5T@5yZm5inYKqTkcykoFJSWBJcU@eQpqCikKRijCxigCxiiC5ijC1igC5iaoouYmf8HAA "Haskell – Try It Online")
[Answer]
# [Perl 5](https://www.perl.org/), 54 bytes
```
$_=" beep"x$_;s/ /0x444444924aabe>>$x&$x++<51?$&:""/ge
```
[Try it online!](https://tio.run/##K0gtyjH9/18l3lZJISk1tUCpQiXeulhfQd@gwgQMLI1MEhOTUu3sVCrUVCq0tW1MDe1V1KyUlPTTU///NzP/l19QkpmfV/xftyAHAA "Perl 5 – Try It Online")
Ungolfed a bit:
```
$_=" beep"x$_; # create string of space+beep the input number of times
s/ / # remove spaces unless it's space number
0x444444924aabe # 1 2 3 4 5 7 9 11 13 15 18 21 24 27 30
# 34 38 42 46 or 50 (counting from zero)
# 0x444444924aabe in binary have 1's on
# those positions
>>$x # keep space if 1-bit and space number <= 50
&$x++<51?$&:""/ge # remove space if not
```
] |
[Question]
[
[Titin](https://en.wikipedia.org/wiki/Titin) is a protein found in muscle tissue. It is a pretty big protein, and its full chemical name is giant as well. Comprising 189819 characters, the full name of titin would take about 3.5 hours to pronounce. Your task is to output this entire name!
# Details
The full name can be found here: [Gist](https://gist.github.com/hyper-neutrino/7d857f89d6d9bb0ab773291116270566) (this file does not include the trailing newline)
The MD5 hash of the output is `ec73f8229f7f8f2e542c316a41cbfff4` (without a trailing newline) or `628c6eb157eb1de675cfc5b91a8149ce` (with a trailing newline).
* You may not access an external resource, be it a file or an internet location.
* You must output only the exact text from the pastebin to STDOUT or STDERR. Nothing else should be output to your chosen output stream; leading and trailing whitespace are acceptable.
* You may not assume there will be any input, but you may assume that there will be no input if needed.
* You may output anything to the other output stream (STDOUT if you chose to output to STDERR and vice versa)
* Standard loopholes apply
This is a [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'") challenge, so the shortest program in bytes wins!
# EDIT
This is NOT a duplicate of the Rick Astley "Never Gonna Give You Up" challenge. Besides the tags, they're not even similar. In that one, output is a multi-line song with a few sections that repeats the first two words of every line. In this one, output is a fairly compressible string with 189819 letters. [Please don't close-vote this as a dupe of that](https://codegolf.meta.stackexchange.com/questions/6956/trigger-happy-on-the-duplicate-button-do-we-really-consider-all-song-lyric-ques).
[Answer]
# JavaScript (ES6), ~~16840~~ ~~16825~~ 16814 bytes
*Saved a couple of bytes by:*
* *inserting the last acid prefix in the packed string as suggested by ETHproductions*
* *choosing the next character group in a slightly more efficient way when there's a tie*
---
Assumes Windows-1252 character encoding. Outputs without a trailing newline.
Below is a simplified version without any actual data.
```
[...Array(256)].map((_,i)=>i<52|i>126&i<161|i==92|i==96?0:s=s.split(String.fromCharCode(i)).join(`...dictionary...`.slice(j,j+=2)),j=0,s=`...packed_data...`)&&[...s].map(c=>'methion|threon|glutamin|alan|prol|phen|leuc|ser|val|glutam|glyc|histid|isoleuc|tryptoph|argin|aspart|lys|asparagin|tyros|cystein'.split`|`[c.charCodeAt()-32]).join`yl`+'ine'
```
And here is the full version:
[Try it online!](https://tio.run/##Xb35d1TV1gX6@/srTvfqnFOn6jRVgsoFvSj6qaAoIIoM4dJJY@hDHxwISBsgxEQghPR9KqHSVapL1Rh7/WHfm3NX8Pq94RAkVJ2z99prrTnn2mtvTx26fOjikQsnz7Vnz5w9eux/f9nyvwe3fLQ/DMOtFy4cuublNmz0fw5PHzrneQczJ/0tH53cvCHXcfKjJLcxdXJzsjHpOLlly4c5/evGj@NNF7dcDC@eazvZ7u1uv3DyzPHwlwtnT3964tCFT/F076Tvh6fOnjzj/UdGXZly86403UySt6QZyZ9xJsiH8qdjxPK71POmHfwmb/1Yan4kDfkrE0W2jMuaH8Whm5hSScLYk2aSztipIImlkfYCz/bTqYzpmHFantnS9HK2LCROyousfJyNZcRJJfJQ3mbx2DemL6vp2A7Dt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jHGV4ZNq/PkHzPy4j62b7oMok12Us9c0WemWpEN3GcwQB5Dd0kXG@77tBrSnkz1uAJvsEToVuR4PRuUlVfBsBNigI8indMV1seA7C14jMwXZcv89YZxMiILwXeyNLnStcNm7fXyWCsr6W6g6fBLiDYZWQt0I07Utlg2fzGmBmweHMAadRwMyDV4@ERdityd2Ym4lH4Ji@4LGF9/HYWvmTxKG8mQg4YDEJehlzKs7gnS9ek9iFiucRb8Xht1NMDGJezw0r0UxPV5H1vMn8FKydFXk@UYLXmYTB2EM/vCBPvkj5dxwvN1zcmCiwwvVXjG3lVQgoY0ZmSeoeLIBxgjTTNgs19HgeS1xbcCcE7yNw3yB/ofxGp7lX/Y/z3oOGqeUDma8hB3v1YN/RfN0Ek5pOrAA7WPcH5ZjHvnmt0oaLNU64A3lWfnUalH9h2fYWtR42L@bQaize7vJJ8jOW94tdfSMnkTaIR062s6lO906m0vrZ4EdOZkcnNyA@Z//ipFP@fCBdb/yuEI1s@ck8faz9x8uyZjvYTF47ht@Ntl9oPnT55puNQ26EzHecunG3rOHfi2JmOtmOXjnRcPHah4/KhtvUP4bdrRzpOnLzYfvJox8mLZ/VH2i9cO9d@9tyJjkMXjvMpF88dutDe0XbtYus/D/GH7dcunL3YceTaxfZjJ8@4rf/Nwn86/rP/SHhk/X@wsLXd87P53M@t/8vCf661/SdwT5455v7v2Uvt5y61G1uMXzz//zly9gzfGradPe5dOHb@0skLxzz3iB6A64dHLhw71H7si0MXT3ju6aMb8JNL547iJ17rGX549OTxYxfbPffEsauu7//v/wc "JavaScript (Node.js) – Try It Online")
The TIO link includes some additional code to print the MD5 of the output rather than printing the output itself:
`ec73f8229f7f8f2e542c316a41cbfff4`
### How?
This was compressed by:
1. Mapping the 20 distinct amino acids to ASCII characters 32 to 51.
2. Repeatedly replacing the most frequent 2-character group by a new ASCII character in the following ranges:
* 52-91
* 93-95
* 97-126
* 161-255
Which leaves us with a dictionary of 336 bytes (168 entries of 2 characters) and a final compressed string of 16161 bytes.
The above code is doing the exact opposite.
[Answer]
# Mathematica, 319 + 14971 = 15290 bytes
```
For[p={};a={t={{{{{tyros,asparagin},prol},{ser,threon}},{{lys,alan},{glutam,val}}},{{{{phen,{methion,cystein}},argin},{aspart,{glutamin,{histid,tryptoph}}}},{leuc,{,glyc}}}},r=Join@@IntegerDigits[BinaryReadList@"b",2,8]},r!={},If[AtomQ@a,p=Join[p,{a,yl}/.{,yl}->{iso}];a=t,a=a[[1+#&@@r]];r=Rest@r]];##~Print~leucine&@@p
```
*Incredibly, this is exactly one byte more than [this bzip2 answer](https://codegolf.stackexchange.com/a/116660/56178). Can somebody find a couple of bytes to save?!*
This is a program that prints the full name of titin to STDOUT. We use the same structure described in [Jörg Hülsermann's PHP answer](https://codegolf.stackexchange.com/a/116658/56178), and additionally note that all the words except for `"iso"` end in `"yl"`, which we add separately each time unless inappropriate (this is what `p=Join[p,{a,yl}/.{,yl}->{iso}]` does). We store the data in a 14971 -byte file called `"b"` in the working directory ([hex dump is here](https://pastebin.com/RRYHUYCi)), which is converted to the list of its corresponding bits by `Join@@IntegerDigits[BinaryReadList@"b",2,8]`.
That list of bits has been determined by [Huffman coding](https://en.wikipedia.org/wiki/Huffman_coding), which is a lovely data compression scheme that takes relative frequencies into account; it requires the decoding template, stored here as the binary tree `t`, as well as the raw list of bits. Inexplicably, Mathematica doesn't have a Huffman decoding (or encoding) built-in, so that's what the `For`-loop implements.
[Answer]
# [Bash](https://www.gnu.org/software/bash/) + sed + xz, ~~13322~~ ~~13290~~ ~~12785~~ ~~12706~~ ~~12694~~ ~~12687~~ 12681 bytes
```
sed 1d $0|unxz|sed /`sed 's:[A-T]:yl/g;s/&/:g'<<<AvalBglutamClysDthreonEserFprolGglycHleucIisoleucJalanKaspartLarginMasparaginNtyrosOglutaminPphenylalanQtryptophRhistidScysteinTmethion`yl/g\;s/yl$/ine/
<12479 bytes of binary data>
```
[Try it online!](https://tio.run/nexus/bash#XZ3bjm65VYXveYp9AQIkgrx8WLZRxJPkxk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NOQdfhaTkpekLHozgndKOBv9Ggeb/jByeRAwltlpO3G5645vjP4IkxOgxIrZADf4qQ0hCcOxGC0YLFcZraVGMe@JKdAXrfb0Tp9TBwntNmZJTK8jzq5FnaoFD8Up4WbzMKjB96tlewT8WWY7SAhP1Pc/zyL3/5z2T8z38x49c//vpX//bvv//Dr/fH3/7NL3/zj@GXH/O/fj2//MOPf93ll//413/68fO7v/vD7/7wtz/@@u/@c/34zfrfy/w93/n5ub9c7u//ao1f//Lln/4b "Bash – TIO Nexus")
[Answer]
# Bash + sed + [paq8kx v7](https://github.com/JohannesBuchner/paq/tree/master/paq8kx_v7), 11682 bytes
The submission consists of two files: an arbitrarily named Bash script (*23 bytes*) and a paq8kx archive named **a** (*11657 bytes*, plus *1 byte* for the extra file, plus *1 byte* for the specific filename).
### Bash script
```
paq8kx -d a>t
sed -fd b
```
### a (base64 encoded)
```
cGFxOGt4ADj////9lNl7YOLMnQ0W4tNQaR+2z8um8YSdKwDxDgFaqATIG40F0T57vk6/ecQVh7fU
f7Svr8dv1eChF3zrWq8UgnsrUO6Bn7YlE5XzoDyNYi6bTqSZ5Xd1ThnuEDr6ibyqXoLgQ2hc4jyi
gBfeJpHhdFXSRD7Wh31GccwOT7aHuw0/vZctJIhPVoIqNKEs98wfbDPvXkVeP/hlwUnBJ9ixVKk2
Qn6Yo2XOMdRpmqDjXz/acpO1kWc0meEbNGW7CCJiYChQdCFpUdMeY3gE94Dkz4WF+1Uli3Sn6r4O
u+NOZNQVXwugmAYzxeDkNH4qiyUYvC7e0knysiTw058uyhp7YoQKnm7jbotT2OCN+zIfR8em5e7k
a9vOZ4czRi+nxtxg0KEgs92QA9jtdpwiULTeSG1j8xPr80k1i52yxeBjrMUtH62i2UL2/IkG9mtV
fHA45Katd7Vqz+4W2mWPAaW5NgQPZS3zb0omw6HIcvdruNq+8JyCxy6XpYoYRdCWtkAj1S4hvgB0
6S7SZBV8zNXYeb+Ei72Z1+bnEwFb5z+1DQbayjJ8POn8VVkX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MMgxviDUzZDERP3sKlNGh6EyYhaLR/bqcDkhiXCTm6
I73a0K9oh4SyJNOn8A8Lj6ZTAmw1LeRJ9dwZK9Y=
```
### Verification
```
$ bash titin.sh | md5sum
ec73f8229f7f8f2e542c316a41cbfff4 -
```
### How it works
The first line of the Bash script – `paq8kx -d a>t` – decompresses the archive **a**, redirecting its output to **t**. The redirection is required as *paq8kx* prints information to STDOUT, which should not be part of the final output. Said information will look as follows.
```
Extracting ./b 26926 -> done
Extracting ./d 307 -> done
Time 15.36 sec, used 1929185730 bytes of memory
```
This creates a sed script **d** with the following content.
```
s/T/methionyl/g
s/S/cysteinyl/g
s/R/histidyl/g
s/Q/tryptophyl/g
s/P/phenylalanyl/g
s/O/glutaminyl/g
s/N/tyrosyl/g
s/M/asparaginyl/g
s/L/arginyl/g
s/K/aspartyl/g
s/J/alanyl/g
s/I/isoleucyl/g
s/H/leucyl/g
s/G/glycyl/g
s/F/prolyl/g
s/E/seryl/g
s/D/threonyl/g
s/C/lysyl/g
s/B/glutamyl/g
s/A/valyl/g
s/..$/ine/g
```
It also creates a large (printable) binary stream that encodes the different parts of titin's name.
```
TDDOJFDPDOFHOEAAAHBG<26886 more uppercase letters>EHGMBPGEKEJDAMIRILEI
```
Finally, the second line – `sed -fd b` – executes the sed script **d** on the file **b**, printing the desired output to STDOUT.
[Answer]
# [Pip](https://github.com/dloscutoff/pip), ~~27747~~ ~~27081~~ ~~19701~~ 19229 bytes
Take that, Bubblegum!
```
O("alan argin asparagin aspart cystein glutam glutamin glyc histid isoleuc leuc lys methion phenylalan prol ser threon tryptoph tyros val"^sA*Y"..."R^(PA3,68)."xyz{|}~
!"Y"uttscfkmovgsmmoshiwnqtwjgioettdwnmvmfisgnjdgkrvik nrdrerjikomezastkvktssdewmdogtvtwweidsrineogsiwedkngwfotnsdtnomowrmsqemikiksoidiorntgkmtniwswowirrwt"<>2)J"yl""ine"
```
where `"..."` is a very long string. Here's the [full code as a Gist](https://gist.github.com/dloscutoff/69d34a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tJ@ESZGkZZsDY@074EiPZb7ctmbaxxcTndnJCStOF45vmFXkVPLb1kkr9viowY@9uy5/Ftd1@y865XUltSR@VsvMM5AyLzVKdlVILmTM9T49sVkjPz2F62yR1fHL@WaeNp5MvRd1B@1ttuXrsRx7FaLkLQo8GFrwSgzrtERc4S8JuBh25TZlSMI53mNGaEj@zt4X6i0xOrPyn8rpQPtlc2tr5tvLPcPQ@nkxnhWL0T/2fgXO2T4TUObVSahszrzLnOWUaO4e8krkkzFLFERUmZ6KoDDLYcCa0xO9v1olcOGsR9hJp6nLnPWbIGqawppZ5jISinminLHJKS@2NtBmWTDBhNUNMG@WokE4xb732zBjv/tk/3Ph2/c8o@ecfuM4///M//w8 "Pip – TIO Nexus") (Results are truncated.)
Strategy: split the name on `yl`, and encode each piece as one of the lowercase letters `d` through `w`. Use their code points (between 100 and 119) to index into the list of pieces (which is of length 20, so the indices are taken mod 20 automatically). Join on `yl`, output, and tack `ine` on the end.
Further compression: find the most common pair of letters in the encoded string, and replace it with an unused ASCII character. Repeat for all ASCII characters `#` through `c`, `xyz{|}~!`, space, and newline. The code takes this twice-compressed string and replaces the characters that aren't `d` through `w` with their corresponding two-character strings. Goto paragraph 1.
[Answer]
# PHP 18731 Bytes
```
echo strtr(bzdecompress(base64_decode("$base64encodedstring")),
[A=>alanyl,B=>arginyl,C=>aspartyl,D=>asparaginyl,E=>cysteinyl,F=>glutaminyl
,G=>glutamyl,H=>glycyl,I=>histidyl,J=>isoleucyl,K=>leucyl,L=>lysyl
,M=>methionyl,N=>phenyl,O=>prolyl,P=>seryl,Q=>tryptophyl,R=>threonyl
,S=>tyrosyl,T=>valyl,U=>isoleucine]);');
```
[Try it online!](https://tio.run/nexus/php#FJvHjoSMtYRfxfLql1g0OUiWrsiZJqeNRc7Q5PDy18ysRiPEwKFO1Vet5j//96t//19k9fSvdVu25Z/0yYtsGn5Lsa7/pMla4Oh///6SF//82@p/k8EJTODEbhAaNZGStFyVIi3StPn5ALTIMAMAPGZCE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Tsbhqg1t6xupycQjX2lFuzHsUeBHfcvFCySnbiJgJ3dYRJc63GgkPmW3M5y4dIYsTMtD2KAj87JxR9NmdZJ7E4rLXzb3C2sjvz6LqIjRN3ox3yvbJqFe7MsaN4S6jGnd1uM9poGW17AxQipmu0M5vTCyTY9a/nRpzrSVoo9I7/f65ylB6jHLTAv/569cf/yKfr7AKm636433QkBU/SB04duEwHfz5m8P/hujnK97GCfwWzPOVVfMU1r8V@z91MPfDW3wQ/3zlxTgVycH/EJ6vYmwrMP9ExOfrb5IO2sYD5OerBlNetD/1lOery8EPqQcNbXWQ9nyNYDhAf76mYeumtssPZRwqH8DvNPPgbWh/ylnP1xL@pNn/71s04N@//vzrr/8A "PHP – TIO Nexus")
Create the Base64 string
Replacement of all words with uppercase chars in the range A-U
after that bzip2 and base64 encoding
```
$a=preg_replace(["#alanyl#","#arginyl#","#aspartyl#","#asparaginyl#","#cysteinyl#","#glutaminyl#","#glutamyl#","#glycyl#","#histidyl#",
"#isoleucyl#","#leucyl#","#lysyl#","#methionyl#","#phenyl#","#prolyl#","#seryl#","#tryptophyl#","#threonyl#","#tyrosyl#","#valyl#","#isoleucine#"],range("A","U"),$titin);
$z=base64_encode(bzcompress($a));
```
## PHP, 19920 Bytes
After replace the words with numbers and create a very long decimal number I can only read the word "leucine"
I have 20 words found that I have replace with numbers
After that i use [bzcompress](http://php.net/manual/en/function.bzcompress.php) and the last action was base64 encoding
```
$g="base64String"; # see online version
echo $o=strtr(bzdecompress(base64_decode($g)),array_flip(
["methionyl"=>9999,"cysteinyl"=>9990,"histidyl"=>9909,"tryptophyl"=>9090
,"phenyl"=>9009,"glutaminyl"=>9000,"tyrosyl"=>899,"asparaginyl"=>889
,"arginyl"=>888,"aspartyl"=>800,"iso"=>70,"glycyl"=>79
,"prolyl"=>78,"seryl"=>77,"threonyl"=>6,"lysyl"=>5
,"alanyl"=>4,"glutamyl"=>3,"valyl"=>2,"leucyl"=>1]));
```
[Online Version gzinflate](http://sandbox.onlinephpfunctions.com/code/82ddaedcc3578b66deb15b7248a16e395de046c6)
## The words and count
```
[methionyl] => 337
[threonyl] => 2083
[glutaminyl] => 724
[alanyl] => 2304
[prolyl] => 1834
[phenyl] => 672
[leucyl] => 3351
[seryl] => 1910
[valyl] => 2414
[glutamyl] => 2324
[glycyl] => 1731
[histidyl] => 391
[iso] => 1658
[tryptophyl] => 401
[arginyl] => 1405
[aspartyl] => 1430
[lysyl] => 2199
[asparaginyl] => 902
[tyrosyl] => 829
[cysteinyl] => 356
```
[Answer]
# [Bubblegum](https://esolangs.org/wiki/Bubblegum), 19655 bytes
```
0000000: e2 e5 7a 4c bf 5d 00 36 99 4a ef 2b 08 5d b1 93 ..zL.].6.J.+.]..
0000010: 69 cb 7a 61 51 8c 3c 7c 04 41 de 7e ea ed 68 3c i.zaQ.<|.A.~..h<
0000020: ca 5c e1 c8 6c 5b b5 31 2d 0b 4e e2 8e 52 06 ec .\..l[.1-.N..R..
0000030: 5e e6 da d5 f2 f5 d3 8f 83 a3 51 0b 45 5d 19 c6 ^.........Q.E]..
.
.
.
```
Here's a full [hexdump](https://gist.github.com/DennisMitchell/c8cd46c9b8eb7a1d3b00e5541c456b0c).
You have to paste the code manually, but you can [Try it online!](https://tio.run/nexus/bubblegum "Bubblegum – TIO Nexus") (only shows the first 128 KiB)
[Answer]
# bzip2, 15287+2 bytes
```
BZh91AY&SY...
```
[Full source (hex-encoded)](https://gist.github.com/Sneftel/dc58481019c421d01367b4fded67c39c). Run with `bzip2 -c`. Where do I pick up my "best programmer" trophy?
[Answer]
# [R](https://www.r-project.org/), 17684 bytes
```
E="/Td6WFoAAA..." # base64 string reduced for better readability
U=unlist(lapply(match(utf8ToInt(E),c(22:47,54:79,5:14,0,4)+43)-1,function(x)x%/%2^(5:0)%%2))
D=memDecompress(as.raw(sapply(split(U,0:(length(U)-1)%/%8),function(x)sum(x*2^(7:0)))),'x',T)
for(i in 1:21)D=gsub(LETTERS[i],paste0(el(strsplit("phenylalan valylthreon isoleuc leuc val glutam alan lys threon ser prol glyc aspart argin asparagin tyros glutamin tryptoph histid cystein methion"," ")),"yl")[i],D)
cat(D,"isoleucine",sep='')
```
[Try it online!](https://tio.run/##FJnHjqzaGYVf5cojS8gmJ8keFFSRc4YZOeeMH/6aox6VusXe/GGtb1Uvf9t//edff6XxtO1L/u9x36Z9@@f//v799x@gkxE@N34@H24SNwz5lJ/qY53v54/5wI2K8cWltl32YWc7kSXhqm3bMfxeCy5hOItxGO6U4KNaKCvA0Ix6mWwVvGKIVaYflZbk12k3mgafgnBpkhIupzAOcC8wgvBBPkFLID@oYkgWanN5ndCZ/Wm5O9NPPdCEaFhL@myOvDCEYvBh6nHDBV5j0/9c@vKLg1ZnMVMau7snoaDEgASdlrGbiwfTLikxulBIa4/wdYRpKEYSlkEN6DvYb/PQkMow7FyL1MtSGP6XRbWK7k1OFQ7cuISg2am6xeei/8o6W7uHmbu6YcWJkJ05vtWq2EeGemCaA91OvgHTsB6Sz6BlqiW4p2D5Tsh9whgVx0ejYbwT7S0CGd8jgLy5fqi8ADutC5/WzhYfh4QBavz4Dn8QSjoxdd6SEIiJXwRwaxPJt55ueoN9E0R/uDcB8PpDFq6KIuyxHc6aZZ40zS5qzfdNshveWZY4avNTYJ/RFr/gkviZacU/N9pyPIF3xbFHKymhiLyD6v56rKX6VbDnuT9K6mY/J50ZsLSxEO37tHuNPqkU3FxHP/E2OfoTYK40pxW1CXe@AWn6BTxGCI2pa2kv57141a9s4a@WvszQVZZj1gH4iVP7FkQ01IbGqQGu3p5VMETjaEWhk9FxrNM2ciwrSIeRMj1wh0C6TW1eg1LCwuOnL@McNnDWC51zD0uQRm51DClhR1cpzCI@437UT/45ZjZe8SUdjZlKmblYrjsJZktK98qjdk8X3NJzV/QVZyJ01pmproNQnR/cxmWrPAgzHl16AfysSYHo5hLp@ztkPc20D1a8XcCqzmJ8Cd0CowLT9XTuxve1GtZH/kkSuDyomdzoFK1Ysqe7fG/@sKTZW5kMSFuCKxk5ihfpk64qH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WISfz8bh1n2O28o3i@7WDrYX6J@xC@ut3wbanuBj50jj3vvecEXjgm03U5LZ4esd0XFFrbbWy7aMvPl8iHx/3YYd7Gjk6z4kAn1bLdMLve23zhz31U4GZtwbL5@WE5QeJfp9GLy29PDlQQ2U95p3vI6Bp1pAy9@IgHsTVIyPlahMF0Yz1n6Wrh06fQDhabWSiqn4/@ZuWevGq5fnxKPuSJjqcHVG6TcknDBLUHiPyRs9n43FnJceGLcC4Pt52hTlZ5LF9UARJ9@5gVTXpeYnHyRFU4Y7RLq3K56dSF99mOa5gOPO8Zf0Svkbfy6aBX7KLCW@Tnly@LdwL1VjJqKMm5AATWNZGghCLFoBHZIK5eqAATw0yBbQ@dvuk6w/6j6Q4tx@yajtF2esbvlpk1NBV5RcHFuNx17uy/gTvsGnd3tmG0glGJygApYjVDnAPIfzB4BvzLFa9JLkBidoeAILoXGCQK0FAgA@O/sLwpweU3BdxXwKqZ95d7MzZaWcVAruVUs4a2ZQSjPW@24HUSx5P125/5X2YNuUBdgAjggn0502uMqCSQQKqdIJFEYIYqquVcVaIm1T47pdD2pBGw1D4NieTatx1HTLt94qH0MtUgryETGmR7ReJTgLeRkKzi3wg3kclaVDXWsEpzvtNSqWip@RIJrALUTV3TVVC6JLpxox0YrRQKEJj6N6ucIt3kqB7d3xu//jGznKCRLnKR06Ap6x/iInSjJaqK8OGw3Lm3dP1f/etf "R – Try It Online")
The approach is similar to other answers :
1. Remove the suffix `"isoleucine"` from the original string
2. Replace each occurrencies of the following tokens with an uppercase letter in the range `A-U` :
```
TOKEN REPLACEMENT
phenylalanyl A
valylthreonyl B
isoleucyl C
leucyl D
valyl E
glutamyl F
alanyl G
lysyl H
threonyl I
seryl J
prolyl K
glycyl L
aspartyl M
arginyl N
asparaginyl O
tyrosyl P
glutaminyl Q
tryptophyl R
histidyl S
cysteinyl T
methionyl U
```
obtaining a string of 26610 characters
3. compress the string using the R builtin `memCompress(string,"xz")` obtaining a raw vector of length 12936 (bytes)
4. encode the vector to base64 (because I don't know a better way to store these bytes into the script) obtaining a string of 17248 characters
The code does exactly the opposite (from points 4 to 1) and prints the string to stdout. The TIO captures this outputs, save it to a file and compute the md5 hash to verify that is correct.
Note: we can't compute md5 directly on string because we need a package that is not installed on TIO.
* **saved 37 bytes thanks to J.Doe**
[Answer]
# PHP, ~~19851~~ 18639 bytes
~~204 bytes code + 19647 bytes base64 data~~
207 bytes code + 18432 bytes base64 data
```
for(;$c=bzuncompress(base64_decode("QlpoNDFBWSZTWaBb474ANYhgAH//+ABgQZ773ed6+9vtzjvtrH20qH2Na331vdtffO+8cdk3tc+m912fOeetbBXbPvet7PO2L333vPt3T7s+22+3cbbru233ve7eR7um9557dt623rsr7vbHPNu+vvets++ebqM993W77vvlmu8997IG7Pt3afXnPucsvvYUCnT3Rmls+7qvvT3dr3V73r7z57u+7ux9Pe98++531977X3IuT326vvhwq+217e7r1PY7mbWu+9W3e9R7s97rvU3tm7U+nfb6+b73d99573fd3Pd9O632+oip+ARpiJQNU8JgIRIIp5MNTTIKQRTxkEBEgap7IECJlA1PQBAhIj6HRkfx8a9LbAY4eutBpFkddrIieecMOxYJEyd7ooF7taLNTwrjVnskzCN2zseR/GK5T+bcGVXQte2n0SeetGsYglJ1vLZh+6cuyvR722Sz9ZDFb4avGVilkCQ3xf258TzxyL3bsEDjtcvmxb2C5mT1daNf5mrXU3gfp5NuXB1Fbwi8IvADIy8fF+gwg3hGsU0FrfU7OLBiueePddSu3ROSiI7dhFPxixwjUnnN11Qw8h48/ZicShCBmn1AjeWLtmSTmT9+x19uN4h90FLaRCDM1H1xCTDMfzxhMYJTxbESo4iCKWBtE1u2aPjfBJ+zdtVUvlvkK1x3L4xfkW2WW0KDBdbPjn8Jsx+0/2cdRA3CNX46gFYRoe/rH1eH4ZHCGKRFJI1WfovAYjykKd0qXNXliO9bQzsiyz65LH7qOZn85tyu+TVwKOX77h4LwKySHvBOhYiiTJEtqX6SrZ4taINsXzwiDGh+QDqfVF6xhQT/e6vD7NFVw3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uuUQ+JCspYaOjHamg2/snrGMJ6i89Y4Mz7FejNflRA1m6bPCC9JiuZDRkLlDNzuyRaJgrEDX6o01eK/6BWtfQvyQfQ4Eyuq6tKymHBSalh3yVsYTywpFG02EG7f2TROPSYiVOVjROd3tmmdPDT4HxWTydftepPujJ0MZtRh6kGHXMJxNhGtyxLHSiJxSe3+gd0iZj6TnypEndCuNpPfnlZRJbEVSoiUwZe2JGnh5f7lyHB/AMn0i5zrFNWTP9nBFWPIv/F3JFOFCQoFvjvg"))[$i++];)echo[val,glutam,alan,lys,threon,ser,prol,glyc,leuc,isoleuc,aspart,argin,asparagin,tyros,glutamin,phen,tryptoph,histid,cystein,methion][ord($c)],$i<27598?yl:ine;
```
or, without the data:
```
for(;$c=bzuncompress(base64_decode(""))[$i++];)echo[val,glutam,alan,lys,threon,ser,prol,glyc,leuc,isoleuc,aspart,argin,asparagin,tyros,glutamin,phen,tryptoph,histid,cystein,methion][ord($c)],$i<27598?yl:ine;
```
---
I took the words ordered by number of appearances (descending), replaced them with bytes 0..19 (`isoleucyl` and `isoleucine` share code `9`) followed by ~~`gzdeflate`~~ `gzcompress` and `base64_encode`. In PHP:
```
echo base64_encode(bzcompress(strtr($o,[asparaginyl=>chr(12),glutaminyl=>chr(14),tryptophyl=>chr(16),cysteinyl=>chr(18),isoleucyl=>chr(9),methionyl=>chr(19),aspartyl=>chr(10),glutamyl=>chr(1),histidyl=>chr(17),threonyl=>chr(4),arginyl=>chr(11),tyrosyl=>chr(13),alanyl=>chr(2),glycyl=>chr(7),leucyl=>chr(8),phenyl=>chr(15),prolyl=>chr(6),lysyl=>chr(3),seryl=>chr(5),valyl=>chr(0),isoleucine=>chr(9)])));
```
Moving from A..T to 0..19 did not only save 4 bytes of code (`65=>`), but also 3 bytes of encoded data (with `gzdeflate`; I didn´t test again).
---
[Answer]
# [Python 2](https://docs.python.org/2/), ~~18409~~ 18403 bytes
(with no libraries)
```
n=sum(95**i*(ord(v)-32)for i,v in enumerate(r'''~'W/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LbD%XKx$=Jw+Vdd=<2p!p oyhMvMviQ\8G|sU *4^k!YM'y&cxi_#Uon!h."C^sGA"Y6sHCs.P8E/{v]CMm%9.!/K8*@W:0hiN*vUb.1;M h.`;DOw5lF#gRWt/$MH(!.@$._Mic>kPV|.|>jr[h]V'O$*d()E{L~:0YBm;&;, #lCm1nto$MzWg'/h0h!S\Bx/Pz~=n1Ejn[lycN.cz'kGA5]$d{+Tjeja72,^)ODF@sR"AxH_.w[lmt:Moa38Y_EU]QGO,:tBCtPy$\<nNSl='M}B)i<o~q/Wj1fpk$vU!F3`q^kG5f%u,J*$C)Ru>^R$\nJ:S_WC=(x2BAlQXJ:n1c?K+]*(],K$3l(F/w3*Nm+xZa?r@56@hBAL['\kh8nIG:.cmLziq,."(SAAddoMBCo4!cqp5k54T Ix|QE0\',2j#]X2x9l-L#`X(/o8'*CVM_FkOD0&glK!\g5XC(N7I`P3o|LlSvz572xjsA_2eDAFDxO|Rk8,m]TL4Lt]/|nCU.xPG$i$Xz\Y<:tv+E%Gl`A&},3(BzDRLJC?&<`fB`d,jsch+ib4Fl?eMGcU RpQ1`l4u$:pHe)ihm{#L"NbN @S@BUI-{V)'@6Ug?ZMK]**fL'''))
r='isoleucine'
while n:d=n%20;n=n/20;r='cystein methion threon glutamin glutam alan prol phen leuc ser val glyc histid isoleuc tryptoph argin aspart lys asparagin tyros'.split()[d]+'yl'+r
print r
```
Creates a number, `n`, by reading a raw string using characters between `' '` and `'~'` as digits in base-95. Decodes that as a base-20 number using parts of the full name of tintin as the digits adding `'yl'` each time, and initialising with the trailing `'isoleucine'` and `prints` the result.
[Answer]
**Python 2, 14627 bytes**
* Encode the amino acids as bytes, from \x00 to \x13
Special treatment for phenyl which only arises as phenylalanyl.
No special treatment for iso in isoleucyl, just a different group than leucyl.
Special treatment for the -ine.
* encode the string with bz2
* custom base 216 encoding of the bz2 binary string (218 printable characters in cp1252 excluding ' and \ for ease of use in a string literal.) encoding 31 bytes in 32 printable characters.
Source with cut down string s:
```
#coding:cp1252
a='glutamin tryptoph leuc val aspart isoleuc glutam methion alan glyc phenylalan prol argin threon asparagin cystein lys histid tyros ser'.split()
p=[chr(x)for x in range(32,256) if x not in(39,92,127,129,141,143,144,157)]
s='ª9W¾½ÍWÕiì7.{ç5æÄ‚¯g×;NíbdXÔùP¯ ...'
d=''
for i in range(0,14241,32):
c=s[i:i+32];n=i=0
for c in c:n+=p.index(c)*216**i;i+=1
for _ in s[:31]:n,c=divmod(n,256);d+=chr(c)
print'yl'.join(a[ord(c)]for c in d.decode('bz2'))+'ine'
```
[Answer]
# [Pascal (FPC)](https://www.freepascal.org/), 27917 bytes
```
{$H+}const s='<Compressed_string>';var c:char;a:array['A'..'T']of string=('methionyl','threonyl','glutaminyl','alanyl','prolyl','phenyl','leucyl','seryl','valyl','glutamyl','glycyl','histidyl','isoleucyl','tryptophyl','arginyl','aspartyl','lysyl','asparaginyl','tyrosyl','cysteinyl');begin for c in s do write(a[c]);write('isoleucine')end.
```
[Try it online!](https://tio.run/##bZ3bji7HcaVfRRcD0MbM@AEs@KIys3aeKv88VN0ZvuDItCVAFgWSnoEwmGf3fCuq/u6mbFrm7t38uw6RESvWiojM/vP3P//u@z/@z3/58@/@4z/@739L//3//e7HP/38y29@/ofvNud82N234Pwefco5x1KTC3ynhKOl@i3seS85vb6FPqrPLbnk4l6zb@lbSKP2MKNre8huhpVqP1Ocwa2aqg98NJQY8wzFhX1f30L2ndtsLndfk8/8JffsatvXnvP8Fk5uEkrzKcXxLXAPX@qIXDM2Hujcy0jVnSkvbpEyN3/fwtdSSt7DnG66lvkuP1xS9663Mmfjbb6FEXpqweWy5cZ9QvU@7sd0@97bvs99pp52/saHwgw@hu592tPe@qE/cj9yx1r2ZcppD6HLHvz3xDf2GLc@sWdyObiK1fZ9f03e4MwhpVRC2XpxLjoe2rfuSumvgsUwZvHZYW0eKYTApQP/dwZeWVcKs@TpRxgzBX0jZ/4YW@i5l50VCbl43rc7/gn5aH4PumCf3HE6rUzWj4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r/hi59/888//ub//PSHX374m@//8Xf/9Le/vb9@P8Af/vTDd3/7w5/@@e/@4z/@Pw "Pascal (FPC) – Try It Online")
[Compressed string](https://pastebin.com/cN4cJVVF)
[Hash print of the output](https://tio.run/##bZ1LkyXHcaX/ChdjBtE0o502pGmREZEdr4wbj8ydTAsMCYkwowgKgDRGG5vfrvmOZ96qBiWIQlcXbuXDw/34Oe4eUX/@9qffffvH//XPf/7df/7n//0f6W//37//9N1Pv/rX3//9b3/3w59@@vlXP/3DN5tzPuzuS3B@jz7lnGOpyQW@U8LRUv0S9ryXnF5fQh/V55ZccnGv2bf0JaRRe5jRtT1kN8NKtZ8pzuBWTdUHPhpKjHmG4sK@ry8h@85tNpe7r8ln/pJ7drXta895fgknNwml@ZTi@BK4hy91RK4ZGw907mWk6s6UF7dImZu/b@FrKSXvYU43Xct8lx8uqXvXW5mz8TZfwgg9teBy2XLjPqF6H/djun3vbd/nPlNPO3/jQ2EGH0P3Pu1pb/3QH7kfuWMt@zLltIfQZQ/@e@Ibe4xbn9gzuRxcxWr7vr8mb3DmkFIqoWy9OBcdD@1bd6X0V8FiGLP47LA2jxRC4NKB/zsDr6wrhVny9COMmYK@kTN/jC303MvOioRcPO/bHf@EfDS/B12wT@44nVYm60fG5EK@RN7SzdKaczyb347sjsLjzOL4NEu083EuGu6PY79USnNz@slD@hLaxkd50axPNp6HP/jkiDn12kvVhTv3941Pz@39GDG5pqd/X7fF7jDHFlznMRrXPurMI9c57/e@X9Pfr8n/6hFLwSreY8Ny1nOWbs@ZQ9l33/eQyn7oqUKee88Nz07FHW06N/ysG/6cfJv6K2tQesxHHrPv3YW04x4up9kSP@/KUc8ScIOaAg4T/Swx4Wsp@IkpEh69O27C5Xk6bu/2uHti5Qtmdvtw52S5a2bdWLuaU3PV4fSsOIGV44GdeG5HWHScds@l7RnHc9iwxrmyy63UkjIveikMT3zOZfc6exmnbyWlZvHBevlUW@hxa1yS2ytCuIm7cIvFM/BSLl1nJPQyC8ntWT05RSHc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ygM66S6ujKMRpY0UF2Osyt2RjaDDyxqqIEmI5uqVIkLPUxVaCyI7LdJemszq5avzo6ofFTOpk7QMbT7WjQBi8irKOOGngNVui3@0DToDtJe751ZLesotNYi5rmyYY1WV@Sof0iIJdYnqI6@qH6n6o0zkMSkVv65QMaUkc6qVA5XzmakzrWEPqpSqu2FmgZJxc5@rDO/qVCs4Yr4Tkexu507rQO9FWbhcfEk/yy668c75OTk01DEap2xuYCTGC@2s/SgI2@dMaE7dRP@Sks6DAFgUb1lx1@hRAmOwAm4IwOS9YBmfrtN16be1MCwnkn7IDj2Tfs8HVNXhMHm9Yo8Z89/0pIde0HLluy49k32ODaHClNFfq5ada@deUB/SYFndvBow7bmu1ysM1B2qdhG0iUSLsONvXF67f4HNZIsKHD1rYh2Ne@FoQUQGotRN5Ozf9GFknf/PY/vv3xV7/7ze/@8O2Pv/32N9/@@OO3f/nHb7Zv/u7vvrm@@acf/vlXP/384/d/@pd/@Jtv/vW7n//w/Q9/@ssfv/mf3/z8hx@/e778lz/@@8/f/uv391@@/eO39xd//vGHP95f/OG7@zt//O7ff2df/PTdj/bnf3z7x68u8Hz5l/szf/j@p5@//719@f1PP3z86M8//uXPP//w5z/c9/rxX953/enP3/74832Xv/z0@a1v3x/4@S8//nB//3d/@enn7@y7v/7tv/1m@9NP35/2fr/939/x4V/98w/Y4ld88dOvfv/Dr/7tN//wb3/77T/@7p9@a1@9H@X7P333zW//z4/f//zd37Tw94Mf/1lf3Bf6m3/79a9//d2ffv93//mf/x8 "Pascal (FPC) – Try It Online")
Compressed string, along with count of each string ending with `yl`, was made using this:
```
type part=record
name:AnsiString;
count:QWord;
end;
var s:AnsiString;
c:QWord=0;
a:array[0..50] of part;
i,j:word;
p:word;
begin
read(s);
p:=pos('yl',s);
while p>0 do begin
c:=c+p;
//writeln(c);
j:=0;
while j<i do begin
if a[j].name=s[1..p+1] then begin
Inc(a[j].count);
break;
end;
j:=j+1;
end;
if j=i then begin
a[i].name:=s[1..p+1];
i:=i+1;
end;
write(chr(j+ord('A')));
Delete(s,1,p+1);
p:=pos('yl',s);
end;
writeln(' + isoleucine');
for j:=0 to i-1 do writeln(j:3,chr(j+ord('A')):2,' ',a[j].name:20,' ',a[j].count);
end.
```
[Answer]
# Deadfish~, 1103473 bytes
[View source here](https://hqfot.surge.sh/d.txt)
By far the longest answer I've ever done, and probably one of the longest (non-Unary) on Code Golf. Definitely longer than all my other answers and questions put together.
[Answer]
# [JavaScript (Node.js)](https://nodejs.org), 16071 bytes
```
_=>[...Array(27598)].map(_=>'isoleuc|methion|threon|glutamin|alan|prol|phen|leuc|ser|val|glutam|glyc|histid|tryptoph|argin|aspart|lys|asparagin|tyros|cystein'.split`|`[a/=20n,a%20n],a=0n,[...`-}Þ÷...ݦû´`].map(i=>[i=i.charCodeAt(),i-=i<127?34:68,a=a*188n+BigInt(i<0?66+4*i:i)])).join`yl`+'ine'
```
[Try it online!](https://tio.run/##LFwHU1vL0vwr5JxzzjnnWMATOQgEQuRQYIMNOAAOYGyMEUJCKAECEQVUTf@w9/Xyvrp1DUjn7Nmd6enp2XCGNdOayR790LghckzX2/ff/sz/dmVmtUdFReXq9Zq5kLjkxNSU0I6oUc14CL8IHprUafumehZH@wyDQ7qxRcOgvo8/BrRTBs3o0NiiRqsZWxzX67SL44N9Y4tv10726RenNdr/v4g/5noWB4cmDUO9iwb93LhBNz64qNEPqLsnxzV6w6J2bvJ/v2rUh4Y5vW5ysWdu0tA3NBYcNTmuHTL8Z/E/7ZrozLiYsQhNIP/tiNBk8nfV7/9ELuEId9hdxD8xy7VOnPJcAUdiEG7a5QnrONM0wgTHwARulsd78A7H/PAnVnGLy/oqrLXKWeMc/zjEN3FUyXUbVqrlcnkR72fZrrNpEjtwjsKB@9nBSjHhMT8R/wawiV9Y74AFK3Lqhx2f2WBsYTWFf1pxjgc44rWNyfgSK9ZwfMW7uHR24ppNefCiF5NcwZ4kd2UFcPPqveZcXGB9GK9R0XCPiK1LniJhK8FTTGEo3gfhsAwfw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SU2BKHf5RZ/Xh3KabjEYSlCFUJE8AR@UKIfAQlaIvh6ocgpH0SQg3GCqiXlO9FWwQocEqGHKUQ9EPn3SsDucgBzYvlrg0ATKV1x/MNIh3BeeoWs06uJMESJNYAT2HYK7sSy4ZbPai5Ob2PWKLh6Q2khRGvCW6K0o/R0W5Jr0cOHHx9tYGidurD3EonIWTXF8nEU6qiT2Mza1YmbqMCtgiuNIB8HQBw4FihGAwBtwf4M8Vn@qG4yGNbUTe4nJaWKjqZxOR/kflfNbgjpMOFltpHNdwnApiXig@An8HAwXTUTdvl4TSYnNB509OvAspXi2MLPXhVmMQIm6QO5j5DqA5iD1nar55FQbNX0x2vO18kN7UwC07gXoigibB2vOUq1P@OP4pztS4McYdQU@Z66tRswT@hAho1tE05I1dE32zphqLdnrh2zs4wYlRh6ckWsFmYOIyHREnGZD7Q3KlkpjnMdjw4aTJV9U4EgXmaOxLQZUnj6GV0dA5qDVcmtgpNz41Nw/oZKzIWDFGiDvTDik1tlGPWUT5RSqfAuoVzlJHqXuMB3kLOqkTwnVcaqd3b/9/ "JavaScript (Node.js) – Try It Online")
[Generator used](https://paste.ubuntu.com/p/7RRMJ5rNDf/)
[Answer]
# Python, 32148 bytes
```
import zlib, base64
exec(zlib.decompress(base64.b64decode('eJzNnetuLDmSpB9ndh/roLYxXUDNdOOUZgC9/U4plUG7fM5gqlS9++dcpMzICNLpbm5mZP7z56//+fa//u0//vb291//8Z/vv739/eff9O9//+2/3n78x6//868fv/34nz//+fMfv63f/vPvf7t+0+94vPa3v/3XL/rT3//28/23//7xm/6hr/nj7/dfPl/3vKh/hH7s802P//3919/ffv0/77/9+vs/Htf8uMrjgvqux619fPbjn8/LfPzo8dE/3//59o9//t3f+OPnv38Mxu///PHz7Xnl9XAfb/cPf960/efx++dH/3GNj3euC/k19A4+fuCf/7ypj9//9v778/rPT7su9vjAx+s+PvC6nz/e9PmEf1z6x79fU2Uf8fb+8x+/f/7icUl55zVZ6woylTlU/h6Y7eeUfH7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/GLzwTWuJ5ivCO560xVleNhKVqtChwR6AALl48HrQFDIdyksH8p4v1PCWZopqOECNnZl9UCyzMn1LwaJhCKFwvUYjQMxFaCs2gKwJefuwoD8RbDTtPOVZypxx0ogTiTcJNh7Nn+x+Tj+qQRe/GakHJ0RbMjs7y5KsZk3+MyBvS/nTd0TPdmmGwNvROxEAFhn60no1eoU46xg4xR8m46uBvRJeqMXSExebWt2SDZcnBJ8GRZ/fFDsP6acS0mVlceBynAAbwIDUcNGYk/YeF0J+NqyRgA7Mok0PlJeVdtSWruN9p7FpIrH9kmr+OcTBGlKtCbgIEi6uUmhBh5l7s8f/vqff/u3//1/AcB1Nhc=')))
```
**Explanation:** All that nonsense inside the `exec()` statement is actually the compressed version of `print('methionyl...'`
As per the OP's instructions, the hash of the output is `ec73f8229f7f8f2e542c316a41cbfff4`
This program uses the inbuilt Python modules `zlib` and `base64`
] |
[Question]
[
[Gaussian integers](https://en.wikipedia.org/wiki/Gaussian_integer) are complex numbers of the form `a+bi` where `a` and `b` are both integers. In base -1+i, all Gaussian integers can be uniquely represented using the digits `0` and `1`, without the need for a symbol to denote sign.
For instance, `1100` in base -1+i represents the decimal number 2, since
```
1*(-1+i)^3 + 1*(-1+i)^2 + 0*(-1+i)^1 + 0*(-1+i)^0
= (2+2i) + (-2i) + 0 + 0
= 2
```
Input will be two Gaussian integers in base -1+i represented using the digits `01`. This can take one of the following forms:
* Two separate digit strings,
* Two decimal integers consisting of `01` representing the base -1+i numbers (e.g. `1100` for 2 in base -1+i),
* Two binary integers representing the base -1+i numbers (e.g. decimal `12` or `0b1100` for 2 in base -1+i)
* A single string separating two digit strings/binary integers by a single non-alphanumeric separator (e.g. `1100 1100` or `12,12` for 2+2)
Output the sum of the two Gaussian integers, also in base -1+i and represented using the digits `01` (in one of the formats allowed as input, not necessarily the same choice). The output is allowed to contain a finite number of leading zeroes.
**Your function or program must terminate within 2 seconds for inputs of at most 30 digits each.**
## Additional clarifications
* You may assume that the input contains no extraneous leading zeroes. For the special case of 0, you may choose either `0` or the empty string as the representation.
## Test cases
```
0, 0 => 0 # 0 + 0 = 0
0, 1 => 1 # 0 + 1 = 1
1, 1 => 1100 # 1 + 1 = 2
1100, 1100 => 111010000 # 2 + 2 = 4
1101, 1101 => 111011100 # 3 + 3 = 6
110111001100, 1110011011100 => 0 # 42 + (-42) = 0
11, 111 => 0 # i + (-i) = 0
11, 110 => 11101 # i + (-1-i) = -1
10101, 11011 => 10010 # (-3-2i) + (-2+3i) = (-5+i)
1010100101, 111101 => 1110100000100 # (-19+2i) + (3-4i) = (-16-2i)
```
Longer test cases:
```
11011011010110101110010001001, 111100010100101001001010010101 => 0
111111111111111111111111111111, 111111111111111111111111111111 => 100100100100100100100100100100
101101110111011101110111011101, 101101110111011101110111011101 => 11101001010001000100010001000100011100
100100010101001101010110101010, 100010011101001011111110101000 => 110000110010101100001100111100010
```
[Answer]
# Python 2, ~~98~~ ~~97~~ ~~91~~ 84 bytes
```
s=input();L=1
for _ in`s`*8:s+=1098*int(str(s).translate('0011'*64));L*=10
print s%L
```
This does I/O in decimal. The integers have to be separated by the non-alphanumeric character `+`.
*Thanks to @xnor for golfing off 2 bytes!*
Try it on [Ideone](http://ideone.com/bDgD34).
### How it works
In [Arithmetic in Complex Bases](https://www.math.uwaterloo.ca/~wgilbert/Research/ArithCxBases.pdf), the author shows how to add and multiply complex numbers in bases of the form **-n + i**.
For base **-1 + i**, addition is done similarly to regular, binary addition with carry, with two differences:
* Instead of carrying **1** to the next higher position, we carry **110** to the next three.
* Carry digits can propagate indefinitely. However, without leading zeroes, the sum **a + b** has at most eight digits more than the maximum of **a** and **b**.
We proceed as follows.
1. First, we add **a** and **b** as if their digits were decimal digits.
For **a = 10101** and **b = 11011**, this gives **21112**.
2. Next, we form a new number by replacing the digits larger than **1** with a **1**, others with a **0**.1
For the sum **21112**, this gives **10001**.
3. For each digit larger than **1**, we have to subtract **2** from that digit and carry **110** to the next three higher positions. Since **1098 = 10 \* 110 - 2**, we can achieve this by multiplying the result from step 2 by **1098**, then adding that product to the sum.2
For the sum **21112**, this gives **21112 + 1098 \* 10001 = 21112 + 10981098 = 11002210**.
4. We repeat steps **2** and **3** a total of **d \* 8** times, where **d** is the number of digits of **a + b**. 3
For the initial sum **21112**, the results are
```
11002210
12210010
1220010010
122000010010
12200000010010
1220000000010010
122000000000010010
12200000000000010010
1220000000000000010010
122000000000000000010010
12200000000000000000010010
1220000000000000000000010010
122000000000000000000000010010
.
.
.
```
5. We take the final sum modulo **10d + 8**, discarding all but the last **d + 8** digits.
For the initial sum **21112**, the final result is **10010**.
---
1 This is achieved with *translate*. Repeating the string **0011** 64 times makes one repetition line up with the sequence of ASCII characters **0123**, achieving the desired replacement.
2 Note that the digits of this sum cannot exceed **3** (initial value **1** plus two **1**'s from carries).
3 This happens to work for **d = 1**, and **d \* 8 > d + 8** otherwise. The code may repeat the steps **(d + 1) \* 8** times, since **s** has a trailing **L** if **s** is a *long* integer.
[Answer]
# Pyth, 34 bytes
```
_shM.u,%J/eMeN\12-+PMeNm.B6/J2k,kQ
```
Try it online: [Demonstration](http://pyth.herokuapp.com/?code=_shM.u%2C%25J%2FeMeN%5C12-%2BPMeNm.B6%2FJ2k%2CkQ&input=%22100100010101001101010110101010%22%2C+%22100010011101001011111110101000%22&test_suite_input=%220%22%2C+%220%22%0A%220%22%2C+%221%22%0A%221%22%2C+%221%22%0A%221100%22%2C+%221100%22%0A%221101%22%2C+%221101%22%0A%22110111001100%22%2C+%221110011011100%22%0A%2211%22%2C+%22111%22%0A%2211%22%2C+%22110%22%0A%2210101%22%2C+%2211011%22%0A%221010100101%22%2C+%22111101%22%0A%2211011011010110101110010001001%22%2C+%22111100010100101001001010010101%22%0A%22111111111111111111111111111111%22%2C+%22111111111111111111111111111111%22%0A%22101101110111011101110111011101%22%2C+%22101101110111011101110111011101%22%0A%22100100010101001101010110101010%22%2C+%22100010011101001011111110101000%22&debug=0) or [Test Suite](http://pyth.herokuapp.com/?code=_shM.u%2C%25J%2FeMeN%5C12-%2BPMeNm.B6%2FJ2k%2CkQ&input=%22100100010101001101010110101010%22%2C%20%22100010011101001011111110101000%22&test_suite=1&test_suite_input=%220%22%2C%20%220%22%0A%220%22%2C%20%221%22%0A%221%22%2C%20%221%22%0A%221100%22%2C%20%221100%22%0A%221101%22%2C%20%221101%22%0A%22110111001100%22%2C%20%221110011011100%22%0A%2211%22%2C%20%22111%22%0A%2211%22%2C%20%22110%22%0A%2210101%22%2C%20%2211011%22%0A%221010100101%22%2C%20%22111101%22%0A%2211011011010110101110010001001%22%2C%20%22111100010100101001001010010101%22%0A%22111111111111111111111111111111%22%2C%20%22111111111111111111111111111111%22%0A%22101101110111011101110111011101%22%2C%20%22101101110111011101110111011101%22%0A%22100100010101001101010110101010%22%2C%20%22100010011101001011111110101000%22&debug=0) (takes quite a while). It should satisfy the time restriction though easily, since the online compiler is quite slow in comparison with the normal (offline) compiler.
### Explanation:
My algorithm is basically an implementation of addition with carrying. But instead of carrying `1`, I have to carry `110` (`1100` in base `-1+i` is the same as `2` in base `-1+i`). This works mostly fine, but you can get stuck in an infinite loop printing zeros. For instance if you are adding `1` with `11` and currently have the carry `110`. So I basically add until I get stuck in a loop and then stop. I think that a loop that a loop will always print zeros and therefore this should be fine.
```
_shM.u,%J/eMeN\12-+PMeNm.B6/J2k,kQ implicit: Q = input list of strings
,kQ create the pair ["", Q]
.u modify the pair N (^) until loop:
, replace N with a new pair containing:
eN N[1] (the remaining summand)
eM take the last digits of each summand
/ \1 count the ones
J store the count in J
%J 2 J % 2 (this is the first element of the new pair)
PMeN remove the last digit of each summand
+ m /J2 and add J / 2 new summand:
.B6 with the value "110" (binary of 6)
- k remove empty summand
.u returns all intermediate results
hM extract the digits
s sum them up to a long string
_ reverse
```
[Answer]
# Python 2, ~~69~~ 67 bytes
```
f=lambda a,b:a*a+b*b^58and 2*f(a*b%2*6,f(a/2,b/2))|a+b&1if a else b
```
I/O is done with base 2 integers.
-2 thanks @Dennis.
[Answer]
# Jelly, ~~29~~ ~~28~~ ~~26~~ ~~24~~ ~~21~~ 20 bytes
```
DBḅ1100ḌµDL+8µ¡Dṣ2ṪḌ
```
This does I/O in decimal. The integers have to be separated by the non-alphanumeric character `+`.
[Try it online!](http://jelly.tryitonline.net/#code=RELhuIUxMTAw4biMwrVETCs4wrXCoUThuaMy4bmq4biM&input=&args=MTEwMTEwMTEwMTAxMTAxMDExMTAwMTAwMDEwMDErMTExMTAwMDEwMTAwMTAxMDAxMDAxMDEwMDEwMTAx) or [verify all test cases](http://jelly.tryitonline.net/#code=RELhuIUxMTAw4biMwrVETCs4wrXCoUThuaMy4bmq4biMCsOH4oKs&input=&args=MCswLCAwKzEsIDErMSwgMTEwMCsxMTAwLCAxMTAxKzExMDEsIDExMDExMTAwMTEwMCsxMTEwMDExMDExMTAwLCAxMSsxMTEsIDExKzExMCwgMTAxMDErMTEwMTEsIDEwMTAxMDAxMDErMTExMTAxLCAxMTAxMTAxMTAxMDExMDEwMTExMDAxMDAwMTAwMSsxMTExMDAwMTAxMDAxMDEwMDEwMDEwMTAwMTAxMDEsIDExMTExMTExMTExMTExMTExMTExMTExMTExMTExMSsxMTExMTExMTExMTExMTExMTExMTExMTExMTExMTEsIDEwMTEwMTExMDExMTAxMTEwMTExMDExMTAxMTEwMSsxMDExMDExMTAxMTEwMTExMDExMTAxMTEwMTExMDEsIDEwMDEwMDAxMDEwMTAwMTEwMTAxMDExMDEwMTAxMCsxMDAwMTAwMTExMDEwMDEwMTExMTExMTAxMDEwMDA).
### Background
In [Arithmetic in Complex Bases](https://www.math.uwaterloo.ca/~wgilbert/Research/ArithCxBases.pdf), the author shows how to add and multiply complex numbers in bases of the form **-n + i**.
For base **-1 + i**, addition is done similarly to regular, binary addition with carry, with two differences:
* Instead of carrying **1** to the next higher position, we carry **110** to the next three.
* Carry digits can propagate indefinitely. However, without leading zeroes, the sum **a + b** has at most eight digits more than the maximum of **a** and **b**.
We proceed as follows.
1. First, we add **a** and **b** as if their digits were decimal digits.
For **a = 10101** and **b = 11011**, this gives **21112**.
2. For each digit larger than **1**, we have to subtract **2** from that digit and carry **110** to the next three higher positions. We can achieve this by converting each decimal digit to binary, the resulting binary arrays from base **1100** to integer, and interpret the resulting list of **0**'s, **1**'s, **1100**'s and **1101**'s as a non-canonical base **10** number.1
For the sum **21112**, this gives **21112 + 1098 \* 10001 = 21112 + 10981098 = 11002210**.
3. We repeat steps **2** a total of **d + 8** times, where **d** is the number of digits of **a + b**.
For the initial sum **21112**, the results are
```
11002210
12210010
1220010010
122000010010
12200000010010
1220000000010010
122000000000010010
12200000000000010010
1220000000000000010010
122000000000000000010010
12200000000000000000010010
1220000000000000000000010010
122000000000000000000000010010
```
4. We discard all but the last **d + 8** digits from the final result. This is achieved by discarding everything after the last **2**.2
For the initial sum **21112**, the final result is **10010**.
### How it works
```
DBḅ1100ḌµDL+8µ¡Dṣ2ṪḌ Main link. Argument: a + b (implicit sum)
µ µ¡ Execute the chain before the first µ n times, where n is
the result of executing the chain before the second µ.
D Convert a + b to base 10.
L Length; count the decimal digits.
+8 Add 8 to the number of digits.
D Convert the initial/previous sum to base 10.
B Convert each digit (0 - 3) to binary.
ḅ1100 Convert each binary array from base 1100 to integer.
Ḍ Interpret the resulting list as a base 10 number.
D Convert the final sum to base 10.
ṣ2 Split at occurrences of 2.
Ṫ Select the last chunk.
Ḍ Convert from base 10 to integer.
```
---
1 Note that the digits of this sum cannot exceed **3** (initial value **1** plus two **1**'s from carries).
2 This works because the last digit that will cancel out cannot be a **3**.
[Answer]
## [Retina](https://github.com/mbuettner/retina), 100 bytes
```
r+`(.*)(\d|(?!\4))( .*)(.?)
$2$4:$1$3
T` 0
+`1:11(1*:1*)11
:$1
^:*
:::
}`:(1*:1*:)11
1:1$1
(1)*:
$#1
```
This takes the input separated with a comma. The output always starts with three leading zeroes.
[Try it online!](http://retina.tryitonline.net/#code=citgKC4qKShcZHwoPyFcNCkpKCAuKikoLj8pCiQyJDQ6JDEkMwpUYCAwCitgMToxMSgxKjoxKikxMQo6JDEKXjoqCjo6Ogp9YDooMSo6MSo6KTExCjE6MSQxCigxKSo6CiQjMQ&input=MTAwMTAwMDEwMTAxMDAxMTAxMDEwMTEwMTAxMDEwIDEwMDAxMDAxMTEwMTAwMTAxMTExMTExMDEwMTAwMA)
I really wonder if there's a shorter solution for the first stage...
[Answer]
## Python 3, 289 bytes
This performs digitwise addition from least to most significant digit (in other words, the exact same algorithm you were taught in primary school). The differences are that (a) it's in binary, not decimal, so you carry whenever a digit is 2 or more, and (b) `1 + 1 = 1100`, not `10`.
Actually, it's also necessary to note that `11 + 111 = 0`, or else sums that should become zero will never terminate.
```
from collections import*
def a(*s,p=0):
r=defaultdict(int,{0:0})
for S in s:
n=0
for d in S[::-1]:r[n]+=d=='1';n+=1
while p<=max(r):
while r[p]>1:
r[p]-=2
if r[p+1]>1<=r[p+2]:r[p+1]-=2;r[p+2]-=1
else:r[p+2]+=1;r[p+3]+=1
p+=1
return str([*map(r.get,sorted(r))])[-2::-3]
```
More golfing is surely possible.
[Answer]
## JavaScript (ES6), ~~146~~ 126 bytes
```
r=n=>n&&n%2-r(n>>=1)-i(n)
i=n=>n&&r(n>>=1)-i(n)
g=(x,y,b=(x^y)&1)=>x|y&&b+2*g(b-x+y>>1,b-x-y>>1)
(x,y)=>g(r(x)+r(y),i(x)+i(y))
```
`g` converts a Gaussian integer (real and imaginary parts) into base `i-1`, while `r` and `i` converts a base `i-1` integer into a Gaussian integer (real and imaginary parts respectively). Once the conversions are in place, I just have to do the arithmetic.
Edit: Saved 20 bytes by calculating the real and imaginary parts separately.
[Answer]
C++ 416 bytes, plus `#include <vector>\n#include <algorithm>\n` (another 40)
```
using I=int;using v=std::vector<I>;void r(v&x){v r{rbegin(x),rend(x)};x=r;}v a(v L,v R){r(L);r(R);L.resize(std::max(L.size(),R.size()));for(int&r:R)L[&r-R.data()]+=r;while(1){L.resize(L.size()+3);auto it=find(rbegin(L),rend(L),2);if(it==rend(L))break;I i=-1+it.base()-begin(L);i&&L[i+1]&&L[i-1]/2?L[i+1]=L[i]=L[i-1]=0:(++L[i+2],++L[i+3],L[i]=0);}L.erase( std::find(rbegin(L),rend(L),1).base(),end(L));r(L);return L;}
```
or, with more whitespace:
```
using I=int;
using v=std::vector<I>;
void r(v&x){v r{rbegin(x),rend(x)};x=r;}
v a(v L,v R) {
r(L);r(R);
L.resize(std::max(L.size(),R.size()));
for(int&r:R)
L[&r-R.data()]+=r;
while(1) {
L.resize(L.size()+3);
auto it=find(rbegin(L), rend(L), 2);
if(it==rend(L)) break;
I i=-1+it.base()-begin(L);
i&&L[i+1]&&L[i-1]/2?
L[i+1]=L[i]=L[i-1]=0
:
(++L[i+2],++L[i+3],L[i]=0);
}
L.erase( std::find(rbegin(L),rend(L),1).base(), end(L));
r(L);
return L;
}
```
Barely golfed. It takes input as a vector of ints, and returns a vector of ints.
[Live example](http://coliru.stacked-crooked.com/a/f18051950b814357).
[Answer]
# Retina, ~~157~~ ~~151~~ ~~134~~ ~~133~~ ~~124~~ 123 bytes
*1 byte off thanks to Martin Büttner.*
```
(.+),(.+)
$.1$*0$2,$.2$*0$1,
1
0x
+`(0x*)(,.*)0(x*),
$2,$1$3
{`,
(^|0x0xx0xx)
000
(0x*)(0x*)(0x*0)xx
$1x$2x$3
)`^0+
0
0x
1
```
[Try it online!](http://retina.tryitonline.net/#code=KC4rKSwoLispCiQuMSQqMCQyLCQuMiQqMCQxLAoxCjB4CitgKDB4KikoLC4qKTAoeCopLAokMiwkMSQzCntgLAoKKF58MHgweHgweHgpCjAwMAooMHgqKSgweCopKDB4KjApeHgKJDF4JDJ4JDMKKWBeMCsKMAoweAox&input=MTAwMTAwMDEwMTAxMDAxMTAxMDEwMTEwMTAxMDEwLDEwMDAxMDAxMTEwMTAwMTAxMTExMTExMDEwMTAwMA)
Converts to unary, and then repeat the following replacements (shown here in decimal):
```
122 -> 000
0002 -> 1100 (this can also be 0012 -> 1110 and 1112 -> 2210 or even 2222 -> 3320 or even 3333 -> 4431)
```
Basically, when larger than two: take away two, add nothing in the previous digit, add one to the previous digit, then add one to the previous digit.
In pseudocode:
```
if(a[n]>2):
a[n] -= 2;
a[n-2] += 1;
a[n-3] += 1;
```
### Unary implementation:
Each digit (e.g. `3`) is shown as the number of `x`s (e.g. `xxx`) and then prefixed with `0`.
For example, `1234` would be expressed as `0x0xx0xxx0xxxx`.
This leaves `0` unchanged, as `101` would be expressed by `0x00x`.
Since initially and finally, there is only `0` and `1`, the conversion could be easily done by `1->0x` and `0x->1`.
[Click here to see every step](http://retina.tryitonline.net/#code=OmAoLispLCguKykKJC4xJCowJDIsJC4yJCowJDEsCjpgMQoweAorOmAoMHgqKSgsLiopMCh4KiksCiQyLCQxJDMKKyg6YCwKCjpgKF58MHgweHgweHgpCjAwMAo6YCgweCopKDB4KikoMHgqMCl4eAokMXgkMngkMwo6KWBeMCsKMAo6YDB4CjE&input=MTAwMTAwMDEwMTAxMDAxMTAxMDEwMTEwMTAxMDEwLDEwMDAxMDAxMTEwMTAwMTAxMTExMTExMDEwMTAwMA).
] |
[Question]
[
Write a program (or function) that exhibits four common [big O](https://en.wikipedia.org/wiki/Big_O_notation) [time complexities](https://en.wikipedia.org/wiki/Time_complexity) depending on how it is run. In any form it takes in a positive integer N which you may assume is less than 231.
1. When the program is run in its **original** form it should have **[constant](https://en.wikipedia.org/wiki/Time_complexity#Constant_time)** complexity. That is, the complexity should be **Θ(1)** or, equivalently, **Θ(1^N)**.
2. When the program is **reversed** and run it should have **[linear](https://en.wikipedia.org/wiki/Time_complexity#Linear_time)** complexity. That is, the complexity should be **Θ(N)** or, equivalently, **Θ(N^1)**.
(This makes sense since `N^1` is `1^N` reversed.)
3. When the program is **doubled**, i.e. concatenated to itself, and run it should have **[exponential](https://en.wikipedia.org/wiki/Time_complexity#Exponential_time)** complexity, specifically **2N**. That is, the complexity should be **Θ(2^N)**.
(This makes sense since the `2` in `2^N` is double the `1` in `1^N`.)
4. When the program is **doubled *and* reversed** and run it should have **[polynomial](https://en.wikipedia.org/wiki/Time_complexity#Polynomial_time)** complexity, specifically **N2**. That is, the complexity should be **Θ(N^2)**.
(This makes sense since `N^2` is `2^N` reversed.)
These four cases are the only ones you need to handle.
Note that for preciseness I'm using [big theta (Θ) notation](https://stackoverflow.com/q/10376740/3823976) instead of [big O](https://en.wikipedia.org/wiki/Big_O_notation) because the runtimes of your programs must be bounded both above and below by the required complexities. Otherwise just writing a function in O(1) would satisfy all four points. It is not too important to understand the nuance here. Mainly, if your program is doing k\*f(N) operations for some constant k then it is likely in Θ(f(N)).
>
> # Example
>
>
> If the original program were
>
>
>
> ```
> ABCDE
>
> ```
>
> then running it should take constant time. That is, whether the input
> N is 1 or 2147483647 (231-1) or any value in between, it should terminate in
> roughly the same amount of time.
>
>
> The reversed version of the program
>
>
>
> ```
> EDCBA
>
> ```
>
> should take linear time in terms of N. That is, the time it takes to
> terminate should be roughly proportional to N. So N = 1 takes the
> least time and N = 2147483647 takes the most.
>
>
> The doubled version of the program
>
>
>
> ```
> ABCDEABCDE
>
> ```
>
> should take two-to-the-N time in terms of N. That is, the time it
> takes to terminate should be roughly proportional to 2N. So
> if N = 1 terminates in about a second, N = 60 would take longer than
> the age of the universe to terminate. (No, you don't have to test it.)
>
>
> The doubled and reversed version of the program
>
>
>
> ```
> EDCBAEDCBA
>
> ```
>
> should take squared time in terms of N. That is, the time it takes to
> terminate should be roughly proportional to N\*N. So if N = 1
> terminates in about a second, N = 60 would take about an hour to terminate.
>
>
>
# Details
* **You need to show or argue that your programs are running in the complexities you say they are.** Giving some timing data is a good idea but also try to explain why theoretically the complexity is correct.
* It's fine if in practice the times your programs take are not perfectly representative of their complexity (or even deterministic). e.g. input N+1 might sometimes run faster than N.
* The environment you're running your programs in *does* matter. You can make basic assumptions about how popular languages never intentionally waste time in algorithms but, for example, if you know your particular version of Java implements [bubble sort](https://en.wikipedia.org/wiki/Bubble_sort) instead of a faster [sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm), then you should take that into account if you do any sorting.
* For all complexities here assume we are talking about [worst-case scenarios](https://en.wikipedia.org/wiki/Best,_worst_and_average_case), not best-case or average-case.
* The space complexity of the programs does not matter, only the time complexity.
* The programs may output anything. It only matters that they take in positive integer N and have the correct time complexities.
* Comments and multiline programs are allowed. (You may assume `\r\n` reversed is `\r\n` for Windows compatibility.)
# Big O Reminders
From fastest to slowest it's `O(1), O(N), O(N^2), O(2^N)` (order 1, 2, 4, 3 above).
Slower terms always dominate, e.g. `O(2^N + N^2 + N) = O(2^N)`.
`O(k*f(N)) = O(f(N))` for constant k. So `O(2) = O(30) = O(1)` and `O(2*N) = O(0.1*N) = O(N)`.
Remember `O(N^2) != O(N^3)` and `O(2^N) != O(3^N)`.
[Neat big O cheat sheet.](http://bigocheatsheet.com)
# Scoring
This is normal code golf. The shortest original program (the constant time one) in bytes wins.
[Answer]
# [Python 3](https://docs.python.org/3/), 102 bytes
```
try:l=eval(input());k=1#)]0[*k**l(tnirp
except:k=2#2=k:tpecxe
print(k**l*[0])#1=k;))(tupni(lave=l:yrt
```
[Try it online!](https://tio.run/nexus/python3#FcoxCoAwDADAvd/oknRSwaWSl4iDlAwloYQSRV9f8eYb3t@sxPepUJtdDoib0BzxmPYkKSl4q90CP4XNs9ASF5LsxuXhYL02h7@lfTowziQbIvhlrYKeN5Pmt3sYY/0A)
This is of O(1^n), since this is what the program does:
* evaluate the input
* create the array [0]
* print it
---
Reversed:
```
try:l=eval(input());k=1#)]0[*l**k(tnirp
except:k=2#2=k:tpecxe
print(l**k*[0])#1=k;))(tupni(lave=l:yrt
```
[Try it online!](https://tio.run/nexus/python3#FcoxCoAwDADAvd/oknRSwaWSl4iDlAwloYQSRV9f8eYbwfublfg@FWqzywFxE5ojHtOeNCUBb7Vb4KeweRZa4kKS3bg8HKzX5vC3tE8HxplkQwS/rFXQ82bS/HYfY/0A)
This is of O(n^1), since this is what the program does:
* evaluate the input
* create the array [0]\*input (0 repeated as many times as the input)
* print it
---
Doubled:
```
try:l=eval(input());k=1#)]0[*k**l(tnirp
except:k=2#2=k:tpecxe
print(k**l*[0])#1=k;))(tupni(lave=l:yrt
try:l=eval(input());k=1#)]0[*k**l(tnirp
except:k=2#2=k:tpecxe
print(k**l*[0])#1=k;))(tupni(lave=l:yrt
```
[Try it online!](https://tio.run/nexus/python3#vc0xCoAwDADAvd/oknRSwaWSl4iDSIaSUEKJoq@v@An3g@venqzE165Qqp0OiIvQGHEb1iQpKXgtzQLfB5tnoSlOJNmNj5uDtVIdPpbWYcM4kiyI4KfVArpfTJqf5uGfpff5BQ)
This is of O(2^n), since this is what the program does:
* evaluate the input
* create the array [0]
* print it
* try to evaluate the input
* fail
* create the array [0]\*(2^input) (0 repeated as many times as 2^input)
* print it
---
Doubled and reversed:
```
try:l=eval(input());k=1#)]0[*l**k(tnirp
except:k=2#2=k:tpecxe
print(l**k*[0])#1=k;))(tupni(lave=l:yrt
try:l=eval(input());k=1#)]0[*l**k(tnirp
except:k=2#2=k:tpecxe
print(l**k*[0])#1=k;))(tupni(lave=l:yrt
```
[Try it online!](https://tio.run/nexus/python3#vc0xCoAwDADAvd/oknRSwaWSl4iDSIaSUEKJoq@v@An3g@vB25OV@NoVSrXTAXERGiNuw5o0JQGvpVng@2DzLDTFiSS78XFzsFaqw8fSOmwYR5IFEfy0WkD3i0nz0/yfpff5BQ)
This is of O(n^2), since this is what the program does:
* evaluate the input
* create the array [0]\*input (0 repeated as many times as the input)
* print it
* try to evaluate the input
* fail
* create the array [0]\*(input^2) (0 repeated as many times as the input squared)
* print it
[Answer]
# Perl 5, ~~82~~ ~~73~~ 71+1 (for -n flag) = 72 bytes
I'm certain I can golf this (a lot) more, but it's bedtime, I've spent enough time debugging as is, and I'm proud of what I have so far anyway.
```
#x$=_$;
$x.=q;#say for(1..2**$_)#)_$..1(rof _$=+x$;;
eval $x;$x=~s/#//;
```
The program itself doesn't use the input, and just evaluates a string beginning with a comment and then does a single string substitution, so this is clearly in constant time. It's basically equivalent to:
```
$x="#";
eval $x;
$x=~s/#//;
```
Doubled:
```
#x$=_$;
$x.=q;#say for(1..2**$_)#)_$..1(rof _$=+x$;;
eval $x;$x=~s/#//;
#x$=_$;
$x.=q;#say for(1..2**$_)#)_$..1(rof _$=+x$;;
eval $x;$x=~s/#//;
```
The bit that actually takes exponential time is the second eval: it evaluates the command `say for(1..2**$_)`, which lists all the numbers from 1 to 2^N, which clearly takes exponential time.
Reversed:
```
;//#/s~=x$;x$ lave
;;$x+=$_ for(1..$_)#)_$**2..1(rof yas#;q=.x$
;$_=$x#
```
This (naively) computes the summation of the input, which clearly takes linear time (since each addition is in constant time). The code that actually gets run is equivalent to:
```
$x+=$_ for(1..$_);
$_=$x;
```
The last line is just so that when these commands are repeated it will take quadratic time.
Reversed and doubled:
```
;//#/s~=x$;x$ lave
;;$x+=$_ for(1..$_)#)_$**2..1(rof yas#;q=.x$
;$_=$x#
;//#/s~=x$;x$ lave
;;$x+=$_ for(1..$_)#)_$**2..1(rof yas#;q=.x$
;$_=$x#
```
This now takes the summation of the summation of the input (and adds it to the summation of the input, but whatever). Since it does order `N^2` additions, this takes quadratic time. It's basically equivalent to:
```
$x=0;
$x+=$_ for(1..$_);
$_=$x;
$x+=$_ for(1..$_);
$_=$x;
```
The second line finds the summation of the input, doing `N` additions, while the fourth does `summation(N)` additions, which is `O(N^2)`.
[Answer]
# [Actually](https://github.com/Mego/Seriously), 20 bytes
```
";(1╖╜ⁿr"ƒ"rⁿ@╜╖1(;"
```
[Try it online!](https://tio.run/nexus/actually#@69krWH4aOq0R1PnPGrcX6R0bJJSEZDhAOJPnWaoYa30/78pAA)
Input: `5`
Output:
```
rⁿ@╜╖1(;
[0]
5
```
---
Reversed:
```
";(1╖╜@ⁿr"ƒ"rⁿ╜╖1(;"
```
[Try it online!](https://tio.run/nexus/actually#@69krWH4aOq0R1PnODxq3F@kdGySUhGQAeQDRQ01rJX@/zcFAA)
Output:
```
rⁿ╜╖1(;
[0, 1, 2, 3, 4]
5
```
---
Doubled:
```
";(1╖╜ⁿr"ƒ"rⁿ@╜╖1(;"";(1╖╜ⁿr"ƒ"rⁿ@╜╖1(;"
```
[Try it online!](https://tio.run/nexus/actually#@69krWH4aOq0R1PnPGrcX6R0bJJSEZDhAOJPnWaoYa1EUMH//6YA)
Output:
```
rⁿ@╜╖1(;
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]
rⁿ@╜╖1(;
rⁿ@╜╖1(;
[0]
```
---
Doubled and reversed:
```
";(1╖╜@ⁿr"ƒ"rⁿ╜╖1(;"";(1╖╜@ⁿr"ƒ"rⁿ╜╖1(;"
```
[Try it online!](https://tio.run/nexus/actually#@69krWH4aOq0R1PnODxq3F@kdGySUhGQAeQDRQ01rJUIKvj/3xQA)
Output:
```
rⁿ╜╖1(;
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
rⁿ╜╖1(;
rⁿ╜╖1(;
[0, 1, 2, 3, 4]
```
---
## Main idea
Actually is a stack-based language.
* `abc` is a program which has O(1n) complexity, and its double has O(2n) complexity.
* `def` is a program which has O(n1) complexity, and its double has O(n2) complexity.
Then, my submission is `"abc"ƒ"fed"`, where `ƒ` is evaluate. That way, `"fed"` will not be evaluated.
### Generation of individual program
The pseudocode of the first component `;(1╖╜ⁿr`:
```
register += 1 # register is default 0
print(range(register**input))
```
The pseudocode of the second component `;(1╖╜ⁿ@r`:
```
register += 1 # register is default 0
print(range(input**register))
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 20 bytes
Partly inspired by [Leaky Nun's Actually solution](https://codegolf.stackexchange.com/a/118782/53880).
The leading and trailing newlines are significant.
### Normal:
```
⁵Ŀ⁵
R
R²
2*R
‘
⁵Ŀ⁵
```
[Try it online!](https://tio.run/nexus/jelly#@8/1qHHrkf1AgstIK4jrUcMMriCuoEObEML///83BQA)
Input: `5`
Output:
```
610
```
---
### Reversed:
```
⁵Ŀ⁵
‘
R*2
²R
R
⁵Ŀ⁵
```
[Try it online!](https://tio.run/nexus/jelly#@8/1qHHrkf1AguvQpiCuIK5HDTO4grSMEML///83BQA)
Input: `5`
Output:
```
[1, 2, 3, 4, 5]10
```
---
### Doubled
```
⁵Ŀ⁵
R
R²
2*R
‘
⁵Ŀ⁵
⁵Ŀ⁵
R
R²
2*R
‘
⁵Ŀ⁵
```
[Try it online!](https://tio.run/nexus/jelly#@8/1qHHrkf1AgstIK4jrUcMMriCuoEObEMIEFfz//98UAA)
Input: `5`
Output:
```
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]10
```
---
### Doubled and Reversed
```
⁵Ŀ⁵
‘
R*2
²R
R
⁵Ŀ⁵
⁵Ŀ⁵
‘
R*2
²R
R
⁵Ŀ⁵
```
[Try it online!](https://tio.run/nexus/jelly#@8/1qHHrkf1AguvQpiCuIK5HDTO4grSMEMIEFfz//98UAA)
Input: `5`
Output:
```
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25]10
```
---
### Explanation
The key here is in `Ŀ`, which means "calls the link at index n as a monad." The links are indexed top to bottom starting at 1, excluding the main link (the bottom-most one). `Ŀ` is modular as well, so if you try to call link number 7 out of 5 links, you'll actually call link 2.
The link being called in this program is always the one at index 10 (`⁵`) no matter what version of the program it is. However, which link is at index 10 depends on the version.
The `⁵` that appears after each `Ŀ` is there so it doesn't break when reversed. The program will error out at parse-time if there is no number before `Ŀ`. Having a `⁵` after it is an out of place nilad, which just goes straight to the output.
**The original version** calls the link `‘`, which computes n+1.
**The reversed version** calls the link `R`, which generates the range 1 .. n.
**The doubled version** calls the link `2*R`, which computes 2n and generates the range 1 .. 2n.
**The doubled and reversed version** calls the link `²R`, which computes n2 and generates the range 1 .. n2.
[Answer]
# [Befunge-98](http://quadium.net/funge/spec98.html), 50 bytes
## Normal
```
\+]#:\-1vk !:;#
@k!:-1 .: ;#]#$ <;
[*:>@
&$< ^&;
```
This is by far the simplest program of the 4 - the only commands that are executed are the following:
```
\+]
!
: @
&$< ^&;
```
This program does some irrevelant stuff before hitting a "turn right" command (`]`) and an arrow. Then it hits **2** "take input" commands. Because there is only 1 number in input and because of how TIO treats `&`s, the program exits after 60 seconds. If there are 2 inputs (and because I can without adding bytes), the IP would travel up into the "end program" function.
[Try it online!](https://tio.run/nexus/befunge-98#@x@jHatsFaNrWJatoKBoZa3M5ZCtaKVrqKBnpWCtHKusomBjzRWtZWXnoMClpmKjEKdm/f@/MQA "Befunge-98 – TIO Nexus")
## Reversed
```
;&^ <$&
@>:*[
;< $#]#; :. 1-:!k@
#;:! kv1-\:#]+\
```
This one is a little more complicated. the relevant commands are as follows:
```
;&^ $
>:*[
;< $#]#; :. 1-:!k@
:
```
which is equivalent to
```
;&^ Takes input and sends the IP up. the ; is a no-op
: Duplicates the input.
>:*[ Duplicates and multiplies, so that the stack is [N, N^2
$ Drops the top of the stack, so that the top is N
]#; Turns right, into the loop
:. Prints, because we have space and it's nice to do
1- Subtracts 1 from N
:!k@ If (N=0), end the program. This is repeated until N=0
;< $#]#; This bit is skipped on a loop because of the ;s, which comment out things
```
The important part here is the `:. 1-:!k@` bit. It's useful because as long as we push the correct complexity onto the stack before executing in a lower time complexity, we can get the desired one. This will be used in the remaining 2 programs in this way.
[Try it online!](https://tio.run/nexus/befunge-98#@2@tFqdgo6LGpeBgZ6UVzWVto6CiHKtsrWClp2Coa6WY7cClbG2lqKCQXWaoG2OlHKsd8/@/OQA "Befunge-98 – TIO Nexus")
## Doubled
```
\+]#:\-1vk !:;#
@k!:-1 .: ;#]#$ <;
[*:>@
&$< ^&;\+]#:\-1vk !:;#
@k!:-1 .: ;#]#$ <;
[*:>@
&$< ^&;
```
And the relevant command are:
```
\+]
!
:
&$< ^&;\+]#:\-1vk !:;#
@k!:-1 .: ;#]#$ <;
```
This program goes into 2 loops. First, it follows the same path as the normal program, which pushes 1 and N onto the stack, but instead of wrapping around to the second `&`, the IP jumps over a comment into a loop that pushes `2^N`:
```
vk!: If N is 0, go to the next loop.
-1 Subtract 1 from N
+ :\ Pulls the 1 up to the top of the stack and doubles it
]# A no-op
\ Pulls N-1 to the top again
```
The other bits on line 4 are skipped using `;`s
After (2^N) is pushed onto the stack, we move down a line into the aforementioned printing loop. Because of the first loop, the time complexity is Θ(N + 2^N), but that reduces to Θ(2^N).
[Try it online!](https://tio.run/nexus/befunge-98#@x@jHatsFaNrWJatoKBoZa3M5ZCtaKVrqKBnpWCtHKusomBjzRWtZWXnoMClpmKjEKdmTbqO//@NAQ "Befunge-98 – TIO Nexus")
## Doubled and Reversed
```
;&^ <$&
@>:*[
;< $#]#; :. 1-:!k@
#;:! kv1-\:#]+\;&^ <$&
@>:*[
;< $#]#; :. 1-:!k@
#;:! kv1-\:#]+\
```
The relevant commands:
```
;&^
;< $#]#; :. 1-:!k@
@>:*[
:
```
This functions almost identically to the reversed program, but the `N^2` is not popped off of the stack, because the first line of the second copy of the program is appended to the last line of the first, meaning that the drop command (`$`) never gets executed, so we go into the printing loop with `N^2` on the top of the stack.
[Try it online!](https://tio.run/nexus/befunge-98#@2@tFqdgo6LGpeBgZ6UVzWVto6CiHKtsrWClp2Coa6WY7cClbG2lqKCQXWaoG2OlHKsdQ7qO//9NAQ "Befunge-98 – TIO Nexus")
[Answer]
# [JavaScript (Node.js)](https://nodejs.org), 90 bytes
```
f=n=>n&&f(--n)+f(n);f(t);var t=process.argv[1]//;);--i;]1[vgra.ssecorp:t*t?t=i=t rav(rof"
```
[Try it online!](https://tio.run/##BcExDsIwDADAnVdUDFUCcqsOLESBh1QdrJBUYbAjx8rzMXdfHNiT1KZA/MlmJVJ80TwXB0D@Xhz5UJz6MFAmjU045d4XlHPs27GuwQeAGo5tH6fg0ntOLO2pN31rrFEnweGEy/Vi9uOmlakb2OMP "JavaScript (Node.js) – Try It Online")
Trivial
] |
[Question]
[
**Input:** Two integers. Preferably decimal integers, but other forms of numbers can be used. These can be given to the code in standard input, as arguments to the program or function, or as a list.
**Output:** Their sum. Use the same format for output integers as input integers. For example, the input `5 16` would lead to the output `21`.
**Restrictions:** No standard loopholes please. This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), answer in lowest amount of bytes wins.
**Notes:** This should be fairly trivial, however I'm interested to see how it can be implemented. The answer can be a complete program or a function, but please identify which one it is.
**Test cases:**
```
1 2 -> 3
14 15 -> 29
7 9 -> 16
-1 8 -> 7
8 -9 -> -1
-8 -9 -> -17
```
Or as CSV:
```
a,b,c
1,2,3
14,15,29
7,9,16
-1,8,7
8,-9,-1
-8,-9,-17
```
# Leaderboard
```
var QUESTION_ID=84260,OVERRIDE_USER=8478;function answersUrl(e){return"https://api.stackexchange.com/2.2/questions/"+QUESTION_ID+"/answers?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+ANSWER_FILTER}function commentUrl(e,s){return"https://api.stackexchange.com/2.2/answers/"+s.join(";")+"/comments?page="+e+"&pagesize=100&order=desc&sort=creation&site=codegolf&filter="+COMMENT_FILTER}function getAnswers(){jQuery.ajax({url:answersUrl(answer_page++),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){answers.push.apply(answers,e.items),answers_hash=[],answer_ids=[],e.items.forEach(function(e){e.comments=[];var s=+e.share_link.match(/\d+/);answer_ids.push(s),answers_hash[s]=e}),e.has_more||(more_answers=!1),comment_page=1,getComments()}})}function getComments(){jQuery.ajax({url:commentUrl(comment_page++,answer_ids),method:"get",dataType:"jsonp",crossDomain:!0,success:function(e){e.items.forEach(function(e){e.owner.user_id===OVERRIDE_USER&&answers_hash[e.post_id].comments.push(e)}),e.has_more?getComments():more_answers?getAnswers():process()}})}function getAuthorName(e){return e.owner.display_name}function process(){var e=[];answers.forEach(function(s){var r=s.body;s.comments.forEach(function(e){OVERRIDE_REG.test(e.body)&&(r="<h1>"+e.body.replace(OVERRIDE_REG,"")+"</h1>")});var a=r.match(SCORE_REG);a&&e.push({user:getAuthorName(s),size:+a[2],language:a[1],link:s.share_link})}),e.sort(function(e,s){var r=e.size,a=s.size;return r-a});var s={},r=1,a=null,n=1;e.forEach(function(e){e.size!=a&&(n=r),a=e.size,++r;var t=jQuery("#answer-template").html();t=t.replace("{{PLACE}}",n+".").replace("{{NAME}}",e.user).replace("{{LANGUAGE}}",e.language).replace("{{SIZE}}",e.size).replace("{{LINK}}",e.link),t=jQuery(t),jQuery("#answers").append(t);var o=e.language;/<a/.test(o)&&(o=jQuery(o).text()),s[o]=s[o]||{lang:e.language,user:e.user,size:e.size,link:e.link}});var t=[];for(var o in s)s.hasOwnProperty(o)&&t.push(s[o]);t.sort(function(e,s){return e.lang>s.lang?1:e.lang<s.lang?-1:0});for(var c=0;c<t.length;++c){var i=jQuery("#language-template").html(),o=t[c];i=i.replace("{{LANGUAGE}}",o.lang).replace("{{NAME}}",o.user).replace("{{SIZE}}",o.size).replace("{{LINK}}",o.link),i=jQuery(i),jQuery("#languages").append(i)}}var ANSWER_FILTER="!t)IWYnsLAZle2tQ3KqrVveCRJfxcRLe",COMMENT_FILTER="!)Q2B_A2kjfAiU78X(md6BoYk",answers=[],answers_hash,answer_ids,answer_page=1,more_answers=!0,comment_page;getAnswers();var SCORE_REG=/<h\d>\s*([^\n,]*[^\s,]),.*?(\d+)(?=[^\n\d<>]*(?:<(?:s>[^\n<>]*<\/s>|[^\n<>]+>)[^\n\d<>]*)*<\/h\d>)/,OVERRIDE_REG=/^Override\s*header:\s*/i;
```
```
body{text-align:left!important}#answer-list,#language-list{padding:10px;width:290px;float:left}table thead{font-weight:700}table td{padding:5px}
```
```
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/codegolf/all.css?v=83c949450c8b"> <div id="answer-list"> <h2>Leaderboard</h2> <table class="answer-list"> <thead> <tr><td></td><td>Author</td><td>Language</td><td>Size</td></tr></thead> <tbody id="answers"> </tbody> </table> </div><div id="language-list"> <h2>Winners by Language</h2> <table class="language-list"> <thead> <tr><td>Language</td><td>User</td><td>Score</td></tr></thead> <tbody id="languages"> </tbody> </table> </div><table style="display: none"> <tbody id="answer-template"> <tr><td>{{PLACE}}</td><td>{{NAME}}</td><td>{{LANGUAGE}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table> <table style="display: none"> <tbody id="language-template"> <tr><td>{{LANGUAGE}}</td><td>{{NAME}}</td><td>{{SIZE}}</td><td><a href="{{LINK}}">Link</a></td></tr></tbody> </table>
```
[Answer]
# Minecraft 1.10, 221 characters (non-competing)
See, this is what we have to deal with when we make Minecraft maps.
Aside: There's no way to take a string input in Minecraft, so I'm cheating a bit by making you input the numbers into the program itself. (It's somewhat justifiable because quite a few maps, like Lorgon111's Minecraft Bingo, require you to copy and paste commands into chat in order to input a number.)
Thank you abrightmoore for the [Block Labels](http://www.brightmoore.net/mcedit-filters-1/blocklabels) MCEdit filter.
[![a](https://i.stack.imgur.com/ucoxq.png)](https://i.stack.imgur.com/ucoxq.png)
```
scoreboard objectives add a dummy
scoreboard players set m a 6
scoreboard players set n a 8
scoreboard players operation r a += m a
scoreboard players operation r a += n a
tellraw @a {"score":{"name":"r","objective":"a"}}
```
Non-competing due to difficulties in input, and I have no idea how to count bytes in this thing (the blytes system is flawed for command blocks).
[Answer]
# [Jelly](http://github.com/DennisMitchell/jelly), 1 byte
```
+
```
[Try it online!](http://jelly.tryitonline.net/#code=Kw&input=&args=NQ+MTY)
Also works in 05AB1E, Actually, APL, BQN, Brachylog, Braingolf, Chocolate, ,,, (Commata), dc, Deorst, Factor, Fig\*\*, Forth, Halfwit\*, HBL\*, Implicit, J, Julia, K, kdb+, Keg, Ly, MathGolf, MATL, Pyke, Q, Racket, Scheme, Swift, Thunno\*\*, Thunno 2, and Vyxal.
\* Language uses a half-byte code page, and therefore `+` counts as 0.5 bytes.
\*\* In Fig and Thunno, this is \$\log\_{256}(96)\approx\$ 0.823 bytes.
[Answer]
# [Binary lambda calculus](https://en.wikipedia.org/wiki/Binary_lambda_calculus), 4.125 bytes
Input and output as [Church numerals](https://en.wikipedia.org/wiki/Church_encoding).
```
00000000 01011111 01100101 11101101 0
```
In [lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus), it is λ*m*. λ*n*. λ*f*. λ*x*. *m* *f* (*n* *f* *x*).
[De Bruijn index](https://en.wikipedia.org/wiki/De_Bruijn_index): λ λ λ λ 4 2 (3 2 1)
---
[Lambda calculus](https://en.wikipedia.org/wiki/Lambda_calculus) is a concise way of describing a mapping (function).
For example, this task can be written as λ*x*. λ*y*. *x* + *y*
The thing to note is, that this is not a lambda (function) which takes two arguments. This is actually a nested lambda. However, it behaves like a lambda which takes two arguments, so it can be informally described as such. Every lambda formally only takes one argument.
For example, if we apply this lambda to 3 and 4:
>
> (λ*x*. λ*y*. *x* + *y*) 3 4 ≡ (λ*y*. 3 + *y*) 4 ≡ 3 + 4 = 7
>
>
>
So, the first lambda actually returns another lambda.
---
[Church numerals](https://en.wikipedia.org/wiki/Church_encoding) is a way of doing away with the extra signs, leaving with only lambda symbols and variables.
Each number in the Church system is actually a lambda that specifies how many times the function is applied to an item.
Let the function be *f* and the item be *x*.
So, the number 1 would correspond to λ*f*. λ*x*. *f* *x*, which means apply *f* to *x* exactly once.
The number 3, for example, would be λ*f*. λ*x*. *f* (*f* (*f* *x*)), which means apply *f* to *x* exactly three times.
---
Therefore, to add two [Church numerals](https://en.wikipedia.org/wiki/Church_encoding) (say, *m* and *n*) together, it is the same as applying *f* to *x*, *m* + *n* times.
We can observe that this is the same as first applying *f* to *x*, *n* times, and then applying *f* to the resulting item *m* times.
For example, *2* would mean `f(f(x))` and *3* would mean `f(f(f(x)))`, so *2* + *3* would be `f(f(f(f(f(x)))))`.
To apply *f* to *x*, *n* times, we have *n* *f* *x*.
You can view *m* and *n* as functions taking two arguments, informally.
Then, we apply *f* again to this resulting item, *m* times: *m* *f* (*n* *f* *x*).
Then, we add back the boilerplate to obtain λ*m*. λ*n*. λ*f*. λ*x*. *m* *f* (*n* *f* *x*).
---
Now, we have to convert it to [De Bruijn index](https://en.wikipedia.org/wiki/De_Bruijn_index).
Firstly, we count the "relative distance" between each variable to the lambda declaration. For example, the *m* would have a distance of 4, because it is declared 4 lambdas "ago". Similarly, the *n* would have a distance of 3, the *f* would have a distance of 2, and the *x* would have a distance of 1.
So, we write it as this intermediate form: λ*m*. λ*n*. λ*f*. λ*x*. 4 2 (3 2 1)
Then, we remove the variable declarations, leaving us with: λ λ λ λ 4 2 (3 2 1)
---
Now, we convert it to [binary lambda calculus](https://en.wikipedia.org/wiki/Binary_lambda_calculus).
The rules are:
* λ becomes `00`.
* *m* *n* (grouping) becomes `01 m n`.
* numbers *i* becomes `1` *i* times + `0`, for example 4 becomes `11110`.
λ λ λ λ 4 2 (3 2 1)
≡ λ λ λ λ `11110` `110` (`1110` `110` `10`)
≡ λ λ λ λ `11110` `110` `0101 111011010`
≡ λ λ λ λ `0101` `111101100101111011010`
≡ `00` `00` `00` `00` `0101` `111101100101 111011010`
≡ `000000000101111101100101111011010`
[Answer]
## [Stack Cats](https://github.com/m-ender/stackcats), 8 + 4 = 12 bytes
```
]_:]_!<X
```
Run with the `-mn` flags. [Try it online!](http://stackcats.tryitonline.net/#code=XV86XV8hPFg&input=NTcgLTE4OA&args=LW1u)
Golfing in Stack Cats is *highly* counterintuitive, so this program above was found with a few days of brute forcing. For comparison, a more intuitive, human-written solution using the `*(...)>` template is two bytes longer
```
*(>-_:[:)>
```
with the `-ln` flags instead (see the bottom of this post for an explanation).
### Explanation
Here's a primer on Stack Cats:
* Stack Cats is a reversible esoteric language where the mirror of a snippet undoes the effect of the original snippet. Programs must also be mirror images of itself — necessarily, this means that even-length programs are either no-ops or infinite loops, and all non-trivial terminating programs are of odd length (and are essentially a conjugation of the central operator).
* Since half the program is always implied, one half can be left out with the `-m` or `-l` flag. Here the `-m` flag is used, so the half program above actually expands to `]_:]_!<X>!_[:_[`.
* As its name suggests, Stack Cats is stack-based, with the stacks being bottomless with zeroes (i.e. operations on an otherwise empty stack return 0). Stack Cats actually uses a tape of stacks, e.g. `<` and `>` move one stack left and one stack right respectively.
* Zeroes at the bottom of the stack are swallowed/removed.
* All input is pushed to an initial input stack, with the first input at the top and an extra -1 below the last input. Output is done at the end, using the contents of the current stack (with an optional -1 at the bottom being ignored). `-n` denotes numeric I/O.
And here's a trace of the expanded full program, `]_:]_!<X>!_[:_[`:
```
Initial state (* denotes current stack):
... [] [-1 b a]* [] [] ...
] Move one stack right, taking the top element with you
... [] [-1 b] [a]* [] ...
_ Reversible subtraction, performing [x y] -> [x x-y] (uses an implicit zero here)
... [] [-1 b] [-a]* [] ...
: Swap top two
... [] [-1 b] [-a 0]* [] ...
] Move one stack right, taking the top element with you
... [] [-1 b] [-a] []* ...
_ Reversible subtraction (0-0, so no-op here)
! Bit flip top element, x -> -x-1
... [] [-1 b] [-a] [-1]* ...
< Move one stack left
... [] [-1 b] [-a]* [-1] ...
X Swap the stack to the left and right
... [] [-1] [-a]* [-1 b] ...
> Move one stack right
... [] [-1] [-a] [-1 b]* ...
! Bit flip
... [] [-1] [-a] [-1 -b-1]* ...
_ Reversible subtraction
... [] [-1] [-a] [-1 b]* ...
[ Move one stack left, taking the top element with you
... [] [-1] [-a b]* [-1] ...
: Swap top two
... [] [-1] [b -a]* [-1] ...
_ Reversible subtraction
... [] [-1] [b a+b]* [-1] ...
[ Move one stack left, taking the top element with you
... [] [-1 a+b]* [b] [-1] ...
```
`a+b` is then outputted, with the base -1 ignored. Note that the trickiest part about this solution is that the output stack must have a `-1` at the bottom, otherwise an output stack of just `[-1]` would ignore the base -1, and an output stack of `[0]` would cause the base zero to be swallowed (but an output stack of `[2]`, for example, would output `2` just fine).
---
Just for fun, here's the full list of related solutions of the same length found (list might not be complete):
```
]_:]^!<X
]_:]_!<X
]_:]!^<X
]_:!]^<X
[_:[^!>X
[_:[_!>X
[_:[!^>X
[_:![^>X
```
The `*(>-_:[:)>` solution is longer, but is more intuitive to write since it uses the `*(...)>` template. This template expands to `<(...)*(...)>` when used with the `-l` flag, which means:
```
< Move one stack left
(...) Loop - enter if the top is positive and exit when the top is next positive again
Since the stack to the left is initially empty, this is a no-op (top is 0)
* XOR with 1 - top of stack is now 1
(...) Another loop, this time actually run
> Move one stack right
```
As such, the `*(...)>` template means that the first loop is skipped but the second is executed. This allows more straightforward programming to take place, since we don't need to worry about the effects of the loop in the other half of the program.
In this case, the inside of the loop is:
```
> Move one stack right, to the input stack
- Negate top, [-1 b a] -> [-1 b -a]
_ Reversible subtraction, [-1 b -a] -> [-1 b a+b]
: Swap top two, [-1 b a+b] -> [-1 a+b b]
[ Move one stack left, taking top of stack with you (removing the top b)
: Swap top two, putting the 1 on this stack on top again
```
The final `>` in the template then moves us back to the input stack, where `a+b` is outputted.
[Answer]
## Common Lisp, 15 bytes
```
(+(read)(read))
```
[Answer]
# [Dominoes](http://store.steampowered.com/app/286160/), 38,000 bytes or 37 tiles
This is created in [*Tabletop Simulator*](http://store.steampowered.com/app/286160/). Here is a [video](https://www.youtube.com/watch?v=LYCAiD80oZU&feature=youtu.be) and here is the [file](http://steamcommunity.com/sharedfiles/filedetails/?id=883290024). It is a standard half-adder, composed of an `and` gate for the `2^1` place value and an `xor` gate for the `2^0` place value.
[![enter image description here](https://i.stack.imgur.com/TUQerm.jpg)](https://www.youtube.com/watch?v=LYCAiD80oZU&feature=youtu.be)
## Details
* **I/O**
+ **Start** - This is included for clarity (not counted towards total) and is what 'calls' or 'executes' the function. Should be 'pressed' after input is given **[Yellow]**.
+ **Input A** - This is included for clarity (not counted towards total) and is 'pressed' to indicated a `1` and unpressed for `0` **[Green]**.
+ **Input B** - This is included for clarity (not counted towards total) and is 'pressed' to indicated a `1` and unpressed for `0` **[Blue]**.
+ **Output** - This is counted towards total. These dominoes declare the sum. The left is `2^1` and the right is `2^0` **[Black]**.
* **Pressing**
+ To give input or start the chain, spawn the metal marble
+ Set the lift strength to `100%`
+ Lift the marble above the desired domino
+ Drop the marble
[Answer]
# [Brain-flak](http://github.com/DJMcMayhem/Brain-Flak), 6 bytes
```
({}{})
```
[Try it online!](http://brain-flak.tryitonline.net/#code=KHt9e30p&input=MyA1)
Brain-flak is a really interesting language with two major restrictions on it.
1. The only valid characters are brackets, i.e. any of these characters:
```
(){}[]<>
```
2. Every single set of brackets must be entirely matched, otherwise the program is invalid.
A set of brackets with nothing between them is called a "nilad". A nilad creates a certain numerical value, and all of these nilads next to each other are added up. A set of brackets with something between them is called a "monad". A monad is a function that takes an numerical argument. So the brackets inside a monad are evaluated, and that is the argument to the monad. Here is a more concrete example.
The `()` *nilad* equals 1. So the following brain-flak code:
```
()()()
```
Is evaluated to 3. The `()` *monad* pushes the value inside of it on the global stack. So the following
```
(()()())
```
pushes a 3. The `{}` nilad pops the value on top of the stack. Since consecutive nilads are always added, a string of `{}` sums all of the top elements on the stack. So my code is essentially:
```
push(pop() + pop())
```
[Answer]
# Minecraft 1.10.x, ~~924~~ 512 bytes
Thanks to @[quat](https://codegolf.stackexchange.com/users/34793/quat) for reducing the blytecount by 48 points and the bytecount by 412.
Alright, so, I took some of the ideas from [this answer](https://codegolf.stackexchange.com/a/84342/44713) and made a version of my own, except that this one is capable of accepting non-negative input. A version may be found [here](https://www.dropbox.com/s/6v20ca187bjdpw5/Input%20Ready.nbt?dl=1) in structure block format.
[![group](https://i.stack.imgur.com/tUA1C.png)](https://i.stack.imgur.com/tUA1C.png)
(new version looks kinda boring tbh)
Similar commands as the other answer:
```
scoreboard objectives add a dummy
execute @e[type=Pig] ~ ~ ~ scoreboard players add m a 1
execute @e[type=Cow] ~ ~ ~ scoreboard players add n a 1
scoreboard players operation n a += m a
tellraw @a {"score":{"name":"n","objective":"a"}}
```
To input numbers, spawn in a number of cows and pigs. Cows will represent value "n" and pigs will represent value "m". The command block system will progressively kill the cows and pigs and assign values as necessary.
This answer assumes that you are in a world with no naturally occurring cows or pigs and that the values stored in "n" and "m" are cleared on each run.
[Answer]
## [Retina](https://github.com/m-ender/retina), 42 bytes
```
\d+
$*
T`1p`-_` |-1+
+`.\b.
^(-)?.*
$1$.&
```
[Try it online!](http://retina.tryitonline.net/#code=XGQrCiQqClRgMXBgLV9gIHwtMSsKK2AuXGIuCgpeKC0pPy4qCiQxJC4m&input=LTUgMTY)
### Explanation
Adding numbers in unary is the easiest thing in the world, but once you introduce negative numbers, things get fiddly...
```
\d+
$*
```
We start by converting the numbers to unary. This is done by matching each number with `\d+` and replacing it with `$*`. This is a Retina-specific substitution feature. The full syntax is `count$*character` and inserts `count` copies of `character`. Both of those can be omitted where `count` defaults to `$&` (i.e. the match itself) and `character` defaults to `1`. So for each input `n` we get `n` ones, and we still have potential minus signs in there, as well as the space separator. E.g. input `8 -5` gives:
```
11111111 -11111
```
Now in order to deal with negative numbers it's easiest to use a separate `-1` digit. We'll use `-` for that purpose.
```
T`1p`-_` |-1+
```
This stage does two things. It gets rid of the space, the leading minus signs, and turns the `1`s after a minus sign into `-` themselves. This is done by matching `|-1+` (i.e. either a space or a negative number) and performing a transliteration on it. The transliteration goes from `1p` to `-_`, but here, `p` expands to all printable ASCII characters and `_` means delete. So `1`s in those matches get turned into `-`s and minuses and spaces get removed. Our example now looks like this:
```
11111111-----
```
```
+`.\b.
```
This stage handles the case where there's one positive and one negative number in the input. If so, there will be `1`s and `-`s in the string and we want them to cancel. This is done by matching two characters with a word-boundary between them (since `1`s is considered a word character and `-` isn't), and replacing the match with nothing. The `+` instructs Retina to do this repeatedly until the string stops changing.
Now we're left with *only* `1`s or *only* `-`s.
```
^(-)?.*
$1$.&
```
To convert this back to decimal, we match the entire input, but if possible we capture a `-` into group `1`. We write back group `1` (to prepend a `-` to negative numbers) and then we write back the length of the match with `$.&` (also a Retina-specific substitution feature).
[Answer]
# Geometry Dash - 15 objects
Finally done.
15 objects aren't much, but it was still a nightmare to do this (especially because of the negative numbers).
[![enter image description here](https://i.stack.imgur.com/ci97N.png)](https://i.stack.imgur.com/ci97N.png)
Because I would have to insert 15 images here for how to reproduce this, I just uploaded the level. The level ID is 5216804. The description tells you how to run it and you can copy it since it is copyable.
**Explanation:**
The top-left trigger (Instant Count 2) checked if the first addend was 0. If it was, it then checked if the second addend was positive or negative. If it was positive, it transferred the value from the second addend to the sum (BF-style, using loops) and if it was negative, it would do the same thing.
The reason why we need to check if the second addend is positive or negative is that we would need to subtract one from the second addend and add one to the sum or add one to the second addend and subtract one from the sum respectively.
If the first addend is not zero, it tests whether it is positive or negative using the process above. After one iteration in the while loop, it tests to see if the first addend is zero and if it is, it does the process described at the beginning of the explanation.
Since Geometry Dash is remarkably similar to BF, you could make a BF solution out of this.
[Answer]
# APOL, 6 bytes
```
+(i i)
```
I AM BOT FEED ME BUTTER
[Answer]
# Mathematica, ~~4~~ 2 bytes
```
Tr
```
*Crossed out ~~4~~ is still regular 4...*
`Tr` applied to a one-dimensional list takes the sum of said list's elements.
[Answer]
# JavaScript (ES6), 9 bytes
```
a=>b=>a+b
```
[Answer]
# Haskell, 3 bytes
```
(+)
```
The parentheses are here because it needs to be an prefix function. This is the same as taking a section of the + function, but no arguments are applied. It also works on a wide range of types, such as properly implemented Vectors, Matricies, Complex numbers, Floats, Doubles, Rationals, and of course Integers.
Because this is Haskell, here is how to do it on the type-level. This will be done at compile time instead of run time:
```
-- This *type* represents Zero
data Zero
-- This *type* represents any other number by saying what number it is a successor to.
-- For example: One is (Succ Zero) and Two is (Succ (Succ Zero))
data Succ a
-- a + b = c, if you have a and b, you can find c, and if you have a and c you can find b (This gives subtraction automatically!)
class Add a b c | a b -> c, a c -> b
-- 0 + n = n
instance Add Zero n n
-- If (a + b = c) then ((a + 1) + b = (c + 1))
instance (Add a b c) => Add (Succ a) b (Succ c)
```
Code adapted from [Haskell Wiki](https://wiki.haskell.org/Type_arithmetic)
[Answer]
# [Shakespeare Programming Language](http://esolangs.org/wiki/Shakespeare), ~~155~~ 152 bytes
```
.
Ajax,.
Ford,.
Act I:.
Scene I:.
[Enter Ajax and Ford]
Ajax:
Listen to thy heart
Ford:
Listen to THY heart!You is sum you and I.Open thy heart
[Exeunt]
```
Ungolfed:
```
Summing Two Numbers in Verona.
Romeo, a numerical man.
Juliet, his lover and numerical counterpart.
Act I: In which Italian addition is performed.
Scene I: In which our two young lovers have a short chat.
[Enter Romeo and Juliet]
Romeo:
Listen to thy heart.
Juliet:
Listen to THY heart! Thou art the sum of thyself and I. Open thy heart.
[Exeunt]
```
I'm using [drsam94's SPL compiler](https://github.com/drsam94/Spl) to compile this. To test:
```
$ python splc.py sum.spl > sum.c
$ gcc sum.c -o sum.exe
$ echo -e "5\n16" | ./sum
21
```
[Answer]
# dc, 2 bytes
```
+f
```
Adds top two items on stack (previously taken from `stdin`), then dumps the stack's contents to `stdout`.
**EDIT:** Upon further consideration, it seems there are several ways this might be implemented, depending on the desired I/O behaviour.
```
+ # adds top two items and pushes on stack
+n # adds top two and prints it, no newline, popping it from stack
+dn # ditto, except leaves result on stack
??+ # takes two inputs from stdin before adding, leaving sum on stack
```
I suppose the most complete form for the sum would be this:
```
??+p # takes two inputs, adds, 'peeks'
# (prints top value with newline and leaves result on stack)
```
Wait! Two numbers can be taken on the same line, separated by a space! This gives us:
```
?+p
```
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog), 2 bytes
```
+.
```
Expects a list with the two numbers as input
Alternatively, if you want the answer to `STDOUT`:
```
+w
```
[Answer]
# Python, ~~11~~ 3 bytes
```
sum
```
---
~~`int.__add__`~~
A simple special operator.
[Answer]
# [Plumber](https://github.com/Radvylf/plumber), ~~244~~ 176 bytes
```
[] [] []
][=][]
[]=][][=][
[]=]===]]
][]][=[=]] =]]
[]][ ][===[=[]
]][]=][[[=]=]][][
[]]=]=]=]=[]
][]=[]][
[]]=][=][]
= =]=]][[=[==
][=]=]=]=]===][=
```
## Old Design (244 bytes)
```
[] []
[][=[]
[[=[][] [][] ][]][=
][[] ][[=]]]][]=[[]
[]===][] ][===][]
][][ [] ][ ] [][]
[ ][]=][[[===][[
][]]]=][[]=[=]=]=]]==]=]][
][=]=]]==]=][] ][
[][=][=[[][[=]][
==]=]][[=[= =
```
I thought I had a good solution for a while...except it didn't work with `0` or `1` as the first input. This program consists of three parts: incrementer, decrementer, and outputter.
The decrementer is on the left, and holds the first value. It is incremented, since a `0` would cause an infinite loop (as the program tries to decrement to `0` and gets a negative value). It will decrement the stored value at execution, and send a packet to the incrementer.
The incrementer is on the right, and stores the second input. When the decrementer sends a packet, it increments its stored value, and sends a packet back to the decrementer.
Whenever the decrementer sends the packet to the incrementer, it is checked by the outputter. If the packet is `0`, execution stops and the value of the incrementer is read and outputted. It uses a NOT gate, one of the most complicated parts of the program.
## Older design (doesn't work with some inputs), 233 bytes
```
[] []
[][] [][] =][]
[]=][]=][[=]][
[][===][ [][===[]
[][] [ [] ][][
] [===][=]][ ]
][[=[=[=[=[=]=[]][=[[[][
][[=[=[=[==[[=[=][
[]]=][=][]
= =]=]][[=[==
```
The new one is flipped to save bytes, and it's really confusing me. This design is the one I worked with for a week or so when designing the interpreter.
[Answer]
# Cheddar, 3 bytes
```
(+)
```
This is a cool feature of Cheddar called "functionized operators". Credit for this idea goes to @CᴏɴᴏʀO'Bʀɪᴇɴ.
Here are more examples of functionized operators:
```
(+)(1,2) // 3
(/)(6,2) // 3
(-)(5) // -5
```
[Answer]
# MATL, 1 byte
```
s
```
Accepts an array of two integers as input and sums them. While the simple program of `+` also works, that has already been shown for other languages.
[**Try it Online**](http://matl.tryitonline.net/#code=cw&input=WzIgNF0)
[Answer]
# PHP, 20 bytes
Surprisingly short this time:
```
<?=array_sum($argv);
```
Runs from command line, like:
```
$ php sum.php 1 2
```
[Answer]
# [Fuzzy Octo Guacamole](https://github.com/RikerW/Fuzzy-Octo-Guacamole), 1 byte
```
a
```
A function that takes inputs from the top of the stack and outputs by pushing to the stack.
Example running in the REPL:
```
>>> 8 9 :
[8,9]
>>> a :
17
```
[Answer]
# C, 35 bytes
```
s(x,y){return y?s(x^y,(x&y)<<1):x;}
```
What I've done here is defined addition without the use of boolean or arithmetic operators. This recursively makes x the sum bits by 'xor', and y the carry bits by 'and' until there is no carry. Here's the ungolfed version:
```
int sum(int x,int y){
if(y==0){
//anything plus 0 is itself
return x;
}
//if it makes you happier imagine there's an else here
int sumBits=x^y;
int carryBits=(x&y)<<1;
return sum(sumBits,carryBits);
}
```
[Answer]
# x86\_32 machine code, 2 bytes
```
08048540 <add7>:
8048540: 01 c8 add %ecx,%eax
```
Assuming the two values are already in the ecx and eax registers, performing the add instruction will add the values of the two registers and store the result in the destination register.
You can see the full program written in C and inline assembly [here](https://gcc.godbolt.org/z/WdGbEP7x4). Writing the wrapper in C makes it easier to provide inputs and do testing, but the actual add function can be reduced down to these two bytes.
[Answer]
## Perl 5.10, 8 bytes
The two numbers to add must be on 2 separate lines for this one to work:
```
say<>+<>
```
[Try this one here.](https://ideone.com/PTznrK)
One with input on the same line (**14 + 1 bytes for *-a* flag**)
```
say$F[0]+$F[1]
```
[Try it here!](https://ideone.com/6PZ9NR)
One with input on the same line (**19 + 1 bytes for *-a* flag**)
```
map{$s+=$_}@F;say$s
```
[Try this one here.](https://ideone.com/ykfi5N)
Another one, by changing the array default separator (**19 + 1 bytes for *-a* flag** as well)
```
$"="+";say eval"@F"
```
[Try this one here!](https://ideone.com/arDZIJ)
[Answer]
## Batch, ~~25~~ ~~18~~ 16 bytes
```
@cmd/cset/a%1+%2
```
Edit: saved ~~7~~ 9 bytes by using my trick from [Alternating Sign Sequence](https://codegolf.stackexchange.com/questions/80858/alternating-sign-sequence/80868#80868).
[Answer]
## PowerShell v2+, 17 bytes
```
$args-join'+'|iex
```
Takes input as two separate command-line arguments, which get pre-populated into the special array `$args`. We form a string with the `-join` operator by concatenating them together with a `+` in the middle, then pipe that string to `Invoke-Expression` (similar to `eval`).
---
Thanks to @DarthTwon for reminding me that when dealing with such minimal programs, there are multiple methods of taking input all at the same byte-count.
```
$args[0]+$args[1]
param($a,$b)$a+$b
```
PowerShell is nothing if not flexible.
[Answer]
## [><>](https://esolangs.org/wiki/fish), ~~7~~ ~~6~~ 3 bytes
```
+n;
```
[Online interpreter](https://fishlanguage.com/playground)
Or try it on TIO with the -v flag.
[Try it online](http://fish.tryitonline.net/#code=K247&input=&args=LXYgMTU+LXYgMjU)
[Answer]
# [Alchemist](https://esolangs.org/wiki/Alchemist), ~~253 211~~ 205 bytes
```
_->u+v+2r
u+r->In_a+In_x
v+r->In_b+In_y
a+b->Out_"-"
0_+0r+0d+0a+0b->d
0d+0a+x+b+y->b
0r+0d+a+0b+0y->d+Out_"-"
0r+0d+0b+a+0x->d
a+x+0b+y->a
0r+0d+0a+b+0x->d+Out_"-"
0r+0d+0a+b+0y->d
d+x->d+y
d+y->d+Out_"1"
```
Since Alchemist can't handle negative numbers (there can't be a negative amount of atoms) this takes 4 inputs on *stdin* in this order:
* sign of `x` (0 -> `+` and 1 -> `-`)
* the number `x` itself
* sign of `y` (0 -> `+` and 1 -> `-`)
* the number `y` itself
Output is in unary, [try it online!](https://tio.run/##XYyxDgIhEET7/QzaCcl69vRWfgJhxUQTtcDjAl@PLJgzsdnMzsub8Ljcrs/7e23NW5exYUmUkaw7vXxAP4W27yv6VgoQ68559cYaYg9O4AgO4N5HmrlAUK0TmlQhuBcRuzk1UVZUVImHFWjflAn/rQF0jiIGrz385g@mNaaFmI4f "Alchemist – Try It Online")
(for your convenience, [here](https://tio.run/##bVHBitswFLzrKwatKRuEKjulh1LWS9tD2UsL3eOmGNlWYoEjB0n2Jmz3213JDvG25CKe3mjmzeiV0jXjWEmPHLKutdedeV9ZQ8gNvnVmUNbD9PtSWfgO9PHh@4@N@fL1cWMo8V0h26pRe@18oc2h97hd4YUAsnR3NLlVVdMhyfAHTtVwgguxogH2ynlQijtcefSU8k@/hditKIAbJPfQDhn0FkbtpNeD@owUqnUqKE1kmtxvTBJmRlOv0fmv3uBiDc/aN/CNQtVZqyqPyavDu9CYE3a9j@63ttujN9KeYthaVXovW7IIndPN9Bjwyg8k2ep6fz1Fn9Qj9WC18dvgfVajIb/oDl5ceEv1z2KwzkWtBmH6tp0Und6ZIPgyKQuRvdJ5AUXw/2YQ50jmaG@2EernCrwKQoG0vKRhHyxYBs@RxAHJWfD8w4u18DBZj2PB854NbG1JzyzPH0whWTiOZDhfy3g9EclKnv/sfUE5JWnBUsvSmqWSpaFfk7k@spKdeF6SGY0gS0OjZhfmTCsjdozESEonliQXzXIG/2dNQJQjNZvwUygW@YyO/OP44S8 "Bash – Try It Online") is a wrapper, converting inputs and returning decimal outputs)
## Explanation & ungolfed
Since Alchemist applies the rules non-deterministically we need a lot of *0-rules*.. Initially there is only one `_` atom, so we use that to read the inputs:
```
_->u+v+2r
u+r->In_a+In_x
v+r->In_b+In_y
```
The following rules can't be applied because they all require `0r`, now we have `a`, `b` as the signs of `x` and `y` respectively.
```
# Case -x -y: we output the sign and remove a,b
# therefore we will handle them the same as +x +y
0_+0r+0d+a+b->Out_"-" #: 0_+0r+0d ⇐ a+b
# Case +x +y: doesn't need anything done
0_+0r+0d+0a+0b->d
# Case +x -y:
## remove one atom each
0_+0r+0d+0a+x+b+y->b #: 0_+0r ⇐ x+b
## if we had |y| > x: output sign and be done
0_+0r+0d+a+0b+0y->d+Out_"-" #: 0_ ⇐ 0r+a
## else: be done
0_+0r+0d+0b+a+0x->d #: 0_ ⇐ 0r+a
# Case -x +y is symmetric to the +x -y case:
0_+0r+0d+a+x+0b+y->a #: 0_+0r+0d ⇐ a+y
0_+0r+0d+0a+b+0x->d+Out_"-" #: 0_ ⇐ 0r+b
0_+0r+0d+0a+b+0y->d #: 0_ ⇐ 0r+b
# All computations are done and we can output in unary:
0_+d+x->d+Out_"1" #: 0_ ⇐ d
0_+d+y->d+Out_"1" #: 0_ ⇐ d
```
To the right of some rules I marked some golfs with `#: y ⇐ x` which should read as: "The conditions `x` imply `y` at this stage and thus we can remove it without changing the determinism"
] |
[Question]
[
Print integers 0 to 100 (inclusive) without using characters `123456789` in your code.
Separator of numbers can be comma or [white space](https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_442) (by default <blank>, <horizontal tabulator>, <newline>, <carriage return>, <form feed> or <vertical tabulator>).
Shortest code wins.
[Answer]
# [R](https://www.r-project.org/), 9 bytes
```
F:volcano
```
[Try it online!](https://tio.run/##K/r/382qLD8nOTEv//9/AA "R – Try It Online")
The sequence operator `:` coerces its arguments to integers. `F` is the boolean `FALSE`, which gets coerced to `0`. `volcano` is one of the many built-in datasets (it gives topographic information about Maunga Whau in New Zealand); since it is a matrix, `:` fetches the value at position `[1, 1]` which is luckily equal to `100`. The code is therefore equivalent to `0:100`.
This answer was inspired by a conversation with Giuseppe and Kirill L. in the comments under [Giuseppe's R answer](https://codegolf.stackexchange.com/a/219592/86301).
[Answer]
# Python 3: 27 23 20 Bytes
*Thanks to caird coinheringaahing for -4 bytes, ovs for -3 bytes*
```
print(*range(*b'e'))
```
I'm pretty poor at golfing, so there's probably a better way to do this.
[TIO](https://tio.run/##K6gsycjPM/7/v6AoM69EQ6soMS89VUMrST1VXVPz/38A)
[Answer]
# [brainfuck](https://github.com/TryItOnline/brainfuck), 138 bytes
```
>>++++++++++<<++++++[>>>++++++++<<<-]++++++[>>>>++++++++<<<<-]++++++++++>++++++++++<[>[>>.>.+<<.<-]++++++++++>>>----------<+<<<-]>>>>+.-..
```
[Try it online!](https://tio.run/##SypKzMxLK03O/v/fzk4bDmxsIHS0HULUxsZGNxYhjCwOlwABZGOi7YBK9ez0gIr0UBXZ2enCgQ3EbLCherp6ev//AwA "brainfuck – Try It Online")
No numbers is pretty easy, but the golf size is not great... :)
I am sure it can be improved, I am really a beginner in using Brainfuck. I wanted to try it anyway.
**How it works:**
```
>>++++++++++<< LF Char (idx2)
++++++[>>>++++++++<<<-] Zero char tens (idx3)
++++++[>>>>++++++++<<<<-] Zero char unit (idx4)
+++++ +++++ 10 counter (tens)
>+++++ +++++< 10 counter (unit)
[> Move to the counter
[>>. Print the tens
>.+ Print the unit and increment
<<. Print the LF
<-] Loop 10 times
+++++ +++++ Restore the counter
>>>----- ----- Restore the digit
<+ Increment the tens char
<<<-] Loop everything 10 times
>>>>+.-.. Print 100 using a cell which is already at char 0
```
[Answer]
# [JavaScript (V8)](https://v8.dev/), 28 bytes
We cannot write \$100\$ or \$101\$ in hexadecimal with 0's and letters only (**0x64** and **0x65** respectively), but we can write \$202\$ (**0xCA**) and use \$2n<202\$ as the condition of the `for` loop.
```
for(n=0;n+n<0xCA;)print(n++)
```
[Try it online!](https://tio.run/##y0osSyxOLsosKNEts/j/Py2/SCPP1sA6TzvPxqDC2dFas6AoM69EI09bW/P/fwA "JavaScript (V8) – Try It Online")
---
### 30 bytes
This version computes \$10^2\$ with the hexadecimal representation of \$10\$.
```
for(n=0;n<=0xA*0xA;)print(n++)
```
[Try it online!](https://tio.run/##y0osSyxOLsosKNEts/j/Py2/SCPP1sA6z8bWoMJRC4itNQuKMvNKNPK0tTX//wcA "JavaScript (V8) – Try It Online")
---
### 31 bytes
This version builds the string `"100"`.
```
for(n=0;n<=-~0+'00';)print(n++)
```
[Try it online!](https://tio.run/##y0osSyxOLsosKNEts/j/Py2/SCPP1sA6z8ZWt85AW93AQN1as6AoM69EI09bW/P/fwA "JavaScript (V8) – Try It Online")
[Answer]
# [SHENZHEN I/O](https://www.zachtronics.com/shenzhen-io/), 61 bytes, 7¥, 7 Lines
```
@not
@mov acc dat
@not
tgt acc dat
-mov acc p0
-add x0
slp x0
```
Outputs 0-100 as simple output, one per time unit. Makes use of the DX300 (XBus <-> Simple Input chip) and LC70G04 (NOT gate), which cost 1¥ each but do not use any power or count as lines of code (the game's measure of code length). These are used to generate a value of 1, which it adds and outputs until it hits 100. The value for 100 is generated using the "not" command, which makes the accumulator 100 if it is value 0, otherwise it sets the acc to 0.
[![](https://i.stack.imgur.com/CpUon.gif)](https://i.stack.imgur.com/CpUon.gif)
(Not pictured: conversion from simple output to the screen's XBus input, for the visualization.)
---
# [SHENZHEN I/O](https://www.zachtronics.com/shenzhen-io/) (MCxxxx ASM only), 129 bytes, 8¥, 16 Lines
```
@not | not
@mov acc p0 | mul acc
@mov acc dat | dgt 0
@not | sub p0
add p0 | dgt 0
tgt acc dat | mul acc
-mov acc x0 | mov acc p0
slp p0 | slx x0
```
Outputs 0-100 as one XBus output each. Uses only programmable MCxxxx chips, no logic gates or other components. Generates value 1 in a pretty interesting way:
```
not # acc = 100
mul acc # 100 * 100 = 999 (max value)
dgt 0 # digit 0 of 999 = 9
sub p0 # 9 - 100 = -91
dgt 0 # digit 0 of -91 = -1
mul acc # -1 * -1 = 1
```
[![enter image description here](https://i.stack.imgur.com/RgZX8.gif)](https://i.stack.imgur.com/RgZX8.gif)
[Answer]
# [Raku](http://raku.org/), 10 bytes
```
put 0..‚Ö≠
```
[Try it online!](https://tio.run/##K0gtyjH7/7@gtETBQE/vUeva//8B "Perl 6 – Try It Online")
`‚Ö≠` here is the Unicode character ROMAN NUMERAL ONE HUNDRED.
Any other Unicode character with a defined value of 100 could be used:
௱: TAMIL NUMBER ONE HUNDRED
൱: MALAYALAM NUMBER ONE HUNDRED
፻: ETHIOPIC NUMBER HUNDRED
‚ÖΩ: SMALL ROMAN NUMERAL ONE HUNDRED
‰Ω∞: CJK UNIFIED IDEOGRAPH-4F70
Áôæ: CJK UNIFIED IDEOGRAPH-767E
Èôå: CJK UNIFIED IDEOGRAPH-964C
All are three UTF-8 bytes long, like `‚Ö≠`.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 2 [bytes](https://github.com/DennisMitchell/jellylanguage/wiki/Code-page)
```
³Ż
```
[Try it online!](https://tio.run/##y0rNyan8///Q5qO7//8HAA "Jelly – Try It Online")
Outputs a list. If the separator must be a single character, [3 bytes](https://tio.run/##y0rNyan8///Q5qO7vf//BwA)
## How it works
```
³ŻK - Main link. Takes no arguments
³ - Yield 100
Ż - Range from 0 to 100
K - Join by spaces (optional)
```
[Answer]
# [Vyxal](https://github.com/Vyxal/Vyxal) `jHRM`, 0 bytes
```
```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyJqSFJNIiwiIiwiIiwiIiwiIl0=)
Kinda cheating, but whatever.
## How?
```
# full program
# H flag presets the stack to 100
# R flag does range when number is treated as iterable
# M flag makes range start at 0
# j flag joins the top of the stack by newlines
```
[Answer]
# [R](https://www.r-project.org/), 11 bytes
```
F:(0xA*0xA)
F:0xA^(T+T)
```
[Try it online!](https://tio.run/##K/r/381Kw6DCUQuINf//BwA "R – Try It Online")
Uses [this tip](https://codegolf.stackexchange.com/a/191117/67312).
Still being beaten by [some volcano in New Zealand](https://codegolf.stackexchange.com/a/219617/67312), though...
Old answer:
### [R](https://www.r-project.org/), 16 bytes
```
F:paste0(+T,0,0)
```
[Try it online!](https://tio.run/##K/r/382qILG4JNVAQztEx0DHQPP/fwA "R – Try It Online")
Thanks to Kirill L. for correcting an error.
R's ASCII=>byte function is `utf8ToInt`, which unfortunately has an `8` in it. Luckily, `:` will attempt to coerce its arguments to numeric types, so we construct `100` by pasting together `+F` (which coerces its value to `0`) and two `0`s. This would also work, though longer, without a `0` as `F:paste(+T,+F,+F,sep="")`.
Possibly there's a very short builtin dataset with a `sum` that's close to 100, though I haven't been able to find one.
[Answer]
# [Retina 0.8.2](https://github.com/m-ender/retina/wiki/The-Language/a950ad7d925ec9316e3e2fb2cf5d49fd15d23e3d), ~~33~~ ~~26~~ 24 bytes
```
,,
,,,,,,
,
,,,,,
$.`
```
[Try it online!](https://tio.run/##K0otycxL/P@fS0eHC4hBgEsHwuDiUtFL@P8fAA "Retina 0.8.2 – Try It Online") Explanation: The first stage inserts two commas, which the second stage increases to 20 (it's complicated). The third stage multiplies by 5 to give 100. The last stage then inserts the number of commas so far at each position.
[Answer]
# [C (gcc)](https://gcc.gnu.org/), 38 bytes
```
f(i){for(i=0;printf("%d ",i++)&'#';);}
```
[Try it online!](https://tio.run/##S9ZNT07@/z9NI1OzOi2/SCPT1sC6oCgzryRNQ0k1RUFJJ1NbW1NNXVndWtO69n9uYmaeBlChBojzLzktJzG9@L9uOQA "C (gcc) – Try It Online")
Without using digit `0`, it would be 39 bytes: [`i;main(){for(;printf("%d ",i++)&'#';);}`](https://tio.run/##S9ZNT07@/z/TOjcxM09Dszotv0jDuqAoM68kTUNJNUVBSSdTW1tTTV1Z3VrTuvb//3/JaTmJ6cX/dcsB)
[Answer]
# [Bash](https://www.gnu.org/software/bash/), ~~25~~ 23 bytes
```
seq 0 $(printf %d "'d")
```
[Try it online!](https://tio.run/##S0oszvj/vzi1UMFAQUWjoCgzryRNQTVFQUk9RUnz/38A "Bash – Try It Online")
-2 thanks to @manatwork
[Answer]
# [PowerShell](https://github.com/TryItOnline/TioSetup/wiki/Powershell), 16 12 bytes
-4 bytes thanks to @mazzy!
```
0..(0xa*0xa)
```
[Try it online!](https://tio.run/##K8gvTy0qzkjNyfn/30BPT8OgIlELiDX//wcA "PowerShell – Try It Online")
[Answer]
# PHP, 30 bytes
First time golfing, I hope I posted this right!
```
while($q<ord(e))echo+$q++,' ';
```
[Try it online!](https://tio.run/##K8go@G9jXwAkyzMyc1I1VApt8otSNFI1NVOTM/K1VQq1tXXUFdSt//8HAA "PHP – Try It Online")
---
Thanks to [manatwork](https://codegolf.stackexchange.com/users/4198/manatwork) and [Dewi Morgan](https://codegolf.stackexchange.com/users/41364/dewi-morgan)'s suggestions to improving the code! From 34 to 30 bytes!
The code revisions are in the edit history, removed here so it looks cleaner!
[Answer]
# Factor, ~~46~~ 23 bytes
-23 bytes thanks to Bubbler
```
0xa sq [0,b] [ . ] each
```
[Try it online!](https://tio.run/##qyrO@J@cWKJgp1Cnr5eWmFySX6RblKxgY6Pg6u/GFRrsaqVQkFhUnFqkkFhakq9bWpzKBZKAaSnOLy1KToVqhOr6b1CRqFBcqBBtoJMUqxCtoKcQq5CamJzxH6RRP7@gRB@iHEqhm/IfAA "Zsh – Try It Online")
I've never written anything in Factor before, but it's a surprisingly fun language.
[Answer]
# [Zsh](https://www.zsh.org/), 12 bytes
```
seq 0 $[##d]
```
[Attempt This Online!](https://ato.pxeger.com/run?1=m724qjhjwYKlpSVpuhZrilMLFQwUVKKVlVNiIUJQGZgKAA)
* `seq`: count
+ from `0`
+ `$[##d]`: to the character value of `d`
Alternative:
# [Zsh](https://www.zsh.org/), 12 bytes
```
!
seq 0 $?00
```
[Attempt This Online!](https://ato.pxeger.com/run?1=m724qjhjwYKlpSVpuhZrFLmKUwsVDBRU7A0MIEJQGZgKAA)
`!` does nothing, but fails with exit code 1; `$?` then retrieves the exit code.
[Answer]
# [Vyxal](https://github.com/Lyxal/Vyxal), `jH`, 1 byte
```
Ä
```
[Try it Online!](http://lyxal.pythonanywhere.com?flags=jH&code=%CA%80&inputs=&header=&footer=)
Flags for the win. The `H` flag presets the stack to 100, generate range 0 to 100 and then `j` flag joins on newlines. The flag was around before this challenge too.
[Answer]
# Perl, 20, 13, 12, 16 bytes
```
say for 0..ord d
```
[Try it online!](https://tio.run/##K0gtyjH9X1qcqlBmqmdoYP2/OLFSIS2/SMFATy@/KEUh5f9/AA "Perl 5 – Try It Online")
[Answer]
# [Zsh](https://www.zsh.org/), 16 bytes
```
echo {0..$[##d]}
```
[Try it online!](https://tio.run/##qyrO@P8/NTkjX6HaQE9PJVpZOSW29v9/AA "Zsh – Try It Online")
Only builtins, so no `seq`
---
For fun, here's a **17 byte** answer without `0`:
```
echo {$?..$[##d]}
```
[Try it online!](https://tio.run/##qyrO@P8/NTkjX6FaRVlPTyVaWTkltvb/fwA "Zsh – Try It Online")
Also `$!` or `$#` will work as `0` replacements.
[Answer]
# [Bash](https://www.gnu.org/software/bash/), ~~18~~ ~~16~~ 14 bytes
```
seq 0 $[++x]00
```
[Try it online!](https://tio.run/##S0oszvj/vzi1UMFAQSVaW7si1sDg/38A "Bash – Try It Online")
Thanks @manatwork for -2, @Jonah for -2
[Answer]
# PICO-8, ~~50~~ 45 bytes
```
i=0-#"0"repeat i+=#"0"?i
until#tostr(i)>#"00"
```
-5 bytes by replacing `print` with its shorthand, `?`.
Demo (50 byte version; 45 byte version has same output):
[![i=0-#"0"repeat i+=#"0"print(i)until#tostr(i)>#"00"](https://i.stack.imgur.com/GWfVa.gif)](https://i.stack.imgur.com/GWfVa.gif)
[Answer]
# GNU Octave, 14, 5 bytes
```
0:'d'
```
[TIO](https://tio.run/##y08uSSxL/f/fwEo9Rf3/fwA) by Giuseppe
[Answer]
# [Ruby](https://www.ruby-lang.org/) 22 bytes 12 bytes - thanks to @manatwork
```
p *0..?d.ord
```
[Try it online!](https://tio.run/##KypNqvz/v0BBy0BPzz5FL78o5f9/AA "Ruby – Try It Online")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 2 bytes
```
тÝ
```
[Try it online!](https://tio.run/##yy9OTMpM/f//YtPhuf//AwA "05AB1E – Try It Online")
Outputs a list. If the separator must be a single character, [3 bytes](https://tio.run/##yy9OTMpM/f//YtPhuYd2//8PAA)
## How it works
```
тÝ» - Full program
—Ç - Push 100
√ù - Range from 0 to 100
» - Join with newlines (optional)
```
[Answer]
# Deadfish~, 2071 / 8 / 7 bytes
2071 bytes
```
o{i}c{d}io{i}dc{d}iio{i}ddc{d}iiio{i}dddcddddddoiiiiiicdddddoiiiiicddddoiiiicdddoiiicddoiicdoicociodciioddciiiodddciiiioddddciiiiiodddddciiiiiioddddddc{i}dddo{d}iiic{i}ddo{d}iic{i}do{d}ic{i}o{d}c{i}io{d}dc{i}iio{d}ddc{i}iiio{d}dddc{i}iiiio{d}ddddc{i}iiiiio{d}dddddc{i}iiiiiio{d}ddddddc{i}{i}dddo{d}{d}iiic{i}{i}ddo{d}{d}iic{i}{i}do{d}{d}ic{i}{i}o{d}{d}c{i}{i}io{d}{d}dc{i}{i}iio{d}{d}ddc{i}{i}iiio{d}{d}dddc{i}{i}iiiio{d}{d}ddddc{i}{i}iiiiio{d}{d}dddddc{i}{i}iiiiiio{d}{d}ddddddc{i}{i}{i}dddo{d}{d}{d}iiic{i}{i}{i}ddo{d}{d}{d}iic{i}{i}{i}do{d}{d}{d}ic{i}{i}{i}o{d}{d}{d}c{i}{i}{i}io{d}{d}{d}dc{i}{i}{i}iio{d}{d}{d}ddc{i}{i}{i}iiio{d}{d}{d}dddc{i}{i}{i}iiiio{d}{d}{d}ddddc{i}{i}{i}iiiiio{d}{d}{d}dddddc{i}{i}{i}iiiiiio{d}{d}{d}ddddddc{{i}dddddd}dddo{{d}iiiiii}iiic{{i}dddddd}ddo{{d}iiiiii}iic{{i}dddddd}do{{d}iiiiii}ic{{i}dddddd}o{{d}iiiiii}c{{i}dddddd}io{{d}iiiiii}dc{{i}dddddd}iio{{d}iiiiii}ddc{{i}dddddd}iiio{{d}iiiiii}dddc{{i}dddddd}iiiio{{d}iiiiii}ddddc{{i}dddddd}iiiiio{{d}iiiiii}dddddc{{i}dddddd}iiiiiio{{d}iiiiii}ddddddc{{i}ddddd}dddo{{d}iiiii}iiic{{i}ddddd}ddo{{d}iiiii}iic{{i}ddddd}do{{d}iiiii}ic{{i}ddddd}o{{d}iiiii}c{{i}ddddd}io{{d}iiiii}dc{{i}ddddd}iio{{d}iiiii}ddc{{i}ddddd}iiio{{d}iiiii}dddc{{i}ddddd}iiiio{{d}iiiii}ddddc{{i}ddddd}iiiiio{{d}iiiii}dddddc{{i}ddddd}iiiiiio{{d}iiiii}ddddddc{{i}dddd}dddo{{d}iiii}iiic{{i}dddd}ddo{{d}iiii}iic{{i}dddd}do{{d}iiii}ic{{i}dddd}o{{d}iiii}c{{i}dddd}io{{d}iiii}dc{{i}dddd}iio{{d}iiii}ddc{{i}dddd}iiio{{d}iiii}dddc{{i}dddd}iiiio{{d}iiii}ddddc{{i}dddd}iiiiio{{d}iiii}dddddc{{i}dddd}iiiiiio{{d}iiii}ddddddc{{i}ddd}dddo{{d}iii}iiic{{i}ddd}ddo{{d}iii}iic{{i}ddd}do{{d}iii}ic{{i}ddd}o{{d}iii}c{{i}ddd}io{{d}iii}dc{{i}ddd}iio{{d}iii}ddc{{i}ddd}iiio{{d}iii}dddc{{i}ddd}iiiio{{d}iii}ddddc{{i}ddd}iiiiio{{d}iii}dddddc{{i}ddd}iiiiiio{{d}iii}ddddddc{{i}dd}dddo{{d}ii}iiic{{i}dd}ddo{{d}ii}iic{{i}dd}do{{d}ii}ic{{i}dd}o{{d}ii}c{{i}dd}io{{d}ii}dc{{i}dd}iio{{d}ii}ddc{{i}dd}iiio{{d}ii}dddc{{i}dd}iiiio{{d}ii}ddddc{{i}dd}iiiiio{{d}ii}dddddc{{i}dd}iiiiiio{{d}ii}ddddddc{{i}d}dddo{{d}i}iiic{{i}d}ddo{{d}i}iic{{i}d}do{{d}i}ic{{i}d}o{{d}i}c
```
[Try it online!](https://tio.run/##ZZBBcsUgDENP1EN1oJ2yyqLLDmdPg8H2k5NFIsv8j57612f/Hr8/H/d9/Y3Z/vocS3RTWx59ht66Pdewp2FoIdsRzT7tebWrjau351/6eq@PfU1steXRZ3jutkuvHWFPezBtcqkl1ncsYb8aWx59Bp98jDmMdNIyL4NklogTiTyU5zrRTjoP6BkjZiTNsJkXkZGawZld4lcCgRAOopAGQGBKrCQDHPiISEoBFVbFVeICXbgrOug3@PNs/o3@PLsBbnUpO1lxwwX9wYWkGLoqu7Ks27p@7V8H3ifeR3BGS9KOZllxwwV82HCRgN1INdKMFqO9lFpKK7WU2smrktqIFCJ9TF3Ah51umunlveiBNbAFKUE60Aq0gVJA4a/4hZ7wZJ9ip5tmeGGFE7clM5BBTGDyCq7QKqyyFlQlBSg4J83wwnLHDZ/9juBLvKQDHNiIRjIBEy7FEqqESqYJyx03znzGdt// "Deadfish~ – Try It Online")
8 bytes (if you consider Hello, world! a valid separator)
```
o{{iow}}
```
[Try it online!](https://tio.run/##S0lNTEnLLM7Q/f8/v7o6M7@8tvb/fwA "Deadfish~ – Try It Online")
7 bytes (If you don't care about seperators)
```
o{{io}}
```
[Try it online!](https://tio.run/##S0lNTEnLLM7Q/f8/v7o6M7@29v9/AA "Deadfish~ – Try It Online")
Never thought I'd see deadfish be shorter than, well, anything except Unary.
[Answer]
# [dc](https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html), 13 characters
Thanks to
* [Daemon](https://codegolf.stackexchange.com/users/101144/daemon) for reusing stack depth instead of getting it again, to use shorter operator (-1 character)
```
[zpdA0>x]dsxx
```
[Try it online!](https://tio.run/##S0n@/z@6qiDF0cCuIjaluKLi/38A "dc – Try It Online")
### [dc](https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html), 14 characters
Thanks to
* [Digital Trauma](https://codegolf.stackexchange.com/users/11259/digital-trauma) for the twist in using the stack depth efficiently (-2 characters)
```
[zpzA0!<m]dsmx
```
[Try it online!](https://tio.run/##S0n@/z@6qqDK0UDRJjc2pTi34v9/AA "dc – Try It Online")
### [dc](https://www.gnu.org/software/bc/manual/dc-1.05/html_mono/dc.html), 16 characters
```
0[pz+dA0>i]dsixp
```
Sample run:
```
bash-5.0$ dc -e '0[pz+dA0>i]dsixp' | head
0
1
2
3
4
5
6
7
8
9
```
[Try it online!](https://tio.run/##S0n@/98guqBKO8XRwC4zNqU4s6Lg/38A "dc – Try It Online")
[Answer]
# [Wolfram Language (Mathematica)](https://www.wolfram.com/mathematica/), ~~15~~ ~~14~~ 11 bytes
```
=Range[0,LL
```
-1 byte from Imanton1
Mathematica interprets the `=` prefix as a call to Wolfram Alpha (auto-converting it to the orange glyph seen below), which in turn interprets "LL" as a Roman numeral for 100. I used "LL" because this doesn't work with the shorter "C".
[![enter image description here](https://i.stack.imgur.com/cNtqU.png)](https://i.stack.imgur.com/cNtqU.png)
[Answer]
# Python 3 20 Bytes
```
print(*range(*b'e'))
```
`How it works?` Basically, doing \*b'char' is equivalent to ord('char'), and in this case ord('e') is equal to 101 ;
Lets re-create the ord() function!
## Ord Function Recreation (Not the answer! Just a demonstration on how ord() works)
```
ord=lambda x:(int(*bytes(x, 'ascii')))
```
As you can see it works! You can test this yourself [here](https://www.online-python.com/pwafv3OSPz).
# Python 3 25 Bytes
```
print(*range(0xa*0xa-~0))
```
`How it works?` 0xa = 10, ~0 = -1, -~0 = 1 (equivalent to -1\*-1)
[Answer]
# [Python](https://python.org), ~~25~~ 23 bytes
```
print(*range(ord('e')))
```
-2 by Steffan, remove first parameter (`0`) from call to `range`
[Answer]
# [APL (Dyalog)](https://dyalog.com/), 19 bytes
```
⎕←0,⍳(+/⍳≢⍬⍬⍬⍬)*≢⍬⍬
```
[Try it here!](https://tio.run/##SyzI0U2pTMzJT9dNzkksLs5M/v//Ud/UR20TDHQe9W7W0NYHko86Fz3qXQNHmlpwgf//AQ)
```
≢⍬⍬⍬⍬ ⍝ This evaluates to 4
≢⍬⍬ ⍝ This evaluates to 2
⍳≢⍬⍬⍬⍬ ⍝ Evaluates to 1 2 3 4
(+/⍳≢⍬⍬⍬⍬) ⍝ Sums up previous list, 1+2+3+4 = 10
(+/⍳≢⍬⍬⍬⍬)*≢⍬⍬ ⍝ Exponentiates previous result by 2
⍳(+/⍳≢⍬⍬⍬⍬)*≢⍬⍬ ⍝ Generates 1 2 ... 100
0,⍳(+/⍳≢⍬⍬⍬⍬)*≢⍬⍬ ⍝ Appends 0 to front
```
] |
[Question]
[
Your challenge is to write a polyglot that works in different versions of your language. When run, it will always output the language version.
# Rules
* Your program should work in at least two versions of your language.
* Your program's output should *only* be the version number. No extraneous data.
* Your program may use whatever method you like to determine the version number. However, the output must follow rule 2; however you determine the version number, the output must only be the number.
* Your program only needs to output the major version of the language. For example, in FooBar 12.3.456789-beta, your program would only need to output 12.
* If your language puts words or symbols before or after the version number, you do not need to output those, and only the number. For example, in C89, your program only needs to print `89`, and in C++0x, your program only needs to print `0`.
* If you choose to print the full name or minor version numbers, e.g. C89 as opposed to C99, it must *only* print the name. `C89 build 32` is valid, while `error in C89 build 32: foo bar` is not.
* Your program may not use a builtin, macro, or custom compiler flags to determine the language version.
# Scoring
Your score will be the code length divided by the number of versions it works in. Lowest score wins, good luck!
[Answer]
# Python 3.0 and Python 2, score 6
(12 bytes, 2 versions)
```
print(3/2*2)
```
Try it Online:
* [Python 2](https://tio.run/##K6gsycjPM/r/v6AoM69Ew1jfSMtI8/9/AA "Python 2 – Try It Online")
* [Python 3](https://tio.run/##K6gsycjPM/7/v6AoM69Ew1jfSMtI8/9/AA "Python 3 – Try It Online")
Relies on the fact that Python 3+ uses float division by default, unlike Python 2, which uses floor division.
[Answer]
# [Java](https://en.wikipedia.org/wiki/Java_(programming_language)), 400 bytes, 17 versions, score = 23,52
Supported versions: `1.0`, `1.1`, `1.2`, `1.3`, `1.4`, `1.5`, `1.6`, `1.7`, `1.8`, `9`, `11`, `12`, `14`, `15`, `16`, `17` and `18`.
Unsupported vesions: `10` and `13` since they have no new classes at all.
(For previous scores, [check the history](https://codegolf.stackexchange.com/posts/139274/revisions)!)
```
Object v(){int i=0;try{for(String[]s={"Locale","Map","Timer","Currency","UUID","Deque","Objects","Base64","zip.CRC32C","Map","java.security.interfaces.XECKey","java.lang.Enum$EnumDesc","Map","java.io.Serial","java.security.spec.EdECPoint","java.lang.Record","HexFormat","java.net.spi.InetAddressResolver"};;i++)Class.forName(s[i].charAt(0)=='j'?s[i]:"java.util."+s[i]);}finally{return i<9?"1."+i:i;}}
```
[Attempt This Online!](https://ato.pxeger.com/run?1=ZZHPbtQwEMbFtU9hRUhNtGCVP0LQsKpKNogKCmiXSkhVkVxndjsrxw4ee2mI8g7cuewB3oIXgadhopSVKi6eTzPjz-P5ff-xVhu1_dXES4NaaKOIxKlCK7o9ISiogPpnDMv7T__c-fbucg06iE2adWiDwOlBHnzbLZ1PF8GjXZ1f0LRL3jitDCT3klPV8PkBa_Aci-g9WN2yPDs7mXGYwec49I2-xOqFInjymMVXbGQxLx49LHY-w6CSQEePoZU8APil0kDyY1m8hvZfh1F2JUsb67vDMQPStx3QyQV4VOY_S2pAy7Iqi_eO3W_5zUE7X3HqFVy_dL5Wu7KFwBdRnrA4rioPRHMgZzb85z7PcTLJimGpkrf0VtWQ0jleSH2l_HFID7LpdH-9fzTkDke_GNDIZDJksrxfolXGtJ2HEL0V-PzZUfKAy3iIed-PYH5_EuIG38hLbBxWomaIOyxC-RVlIlx594VEea2hCehGyEIsWgpQSxeDbLg_GJsy4yznYr9388p2O8a_)
### Ungolfed
```
Object v(){
int v=0;
try {
for(
String[] s={
"Locale", // 1.1
"Map", // 1.2
"Timer", // 1.3
"Currency", // 1.4
"UUID", // 1.5
"Deque", // 1.6
"Objects", // 1.7
"Base64", // 1.8
"zip.CRC32C", // 9
"Map", // 10 is unsupported so use the smallest name possible.
"java.security.interfaces.XECKey", // 11
"Enum$EnumDesc", // 12
"Map", // 13 is unsupported so use the smallest name possible.
"java.io.Serial", // 14
"java.security.spec.EdECPoint", // 15
"java.lang.Record", // 16
"HexFormat", // 17
"java.net.spi.InetAddressResolver" // 18
};;v++)
Class.forName(
s[i].charAt(0)=='j' // If the package name is referenced,
? s[i] // Use it
: "java.util."+s[i]); // Else, prepend "java.util".
} finally {
// Swallowing ClassNotFoundException when the version is not the last one
// Swallowing ArrayIndexOutOfBoundsException that occurs after reaching the last version.
return v < 9 ? "1." + v : v; // Return either an int or a String
}
}
```
Please note that the code part `return v<9?"1."+v:v;` (previously `return(v<9?"1.":"")+v;`) needs to be checked against any version between Java 1.0 and Java 1.3 included. I don't have any Java 1.3 or earlier installation at my disposal to actually test this syntax.
### Introduction
The Java versioning has a special history. All versions have historically been `1.x` including `1.0`. But... from Java 9 onwards and the [JEP223](http://openjdk.java.net/jeps/223), the version scheming has changed from using `1.x` to `x`. That is the version as internally known. So we have the following table (put together with the Javadoc and [Wikipedia](https://en.wikipedia.org/wiki/Java_version_history)):
| `java.version` property | Release name | Product name |
| --- | --- | --- |
| 1.0 | JDK 1.0 | Java 1 |
| 1.1 | JDK 1.1 | |
| 1.2 | J2SE 1.2 | Java 2 |
| 1.3 | J2SE 1.3 | |
| 1.4 | J2SE 1.4 | |
| 1.5 | J2SE 5.0 | Java 5 |
| 1.6 | Java SE 6 | Java 6 |
| 1.7 | Java SE 7 | Java 7 |
| 1.8 | Java SE 8 | Java 8 |
| 9 | Java SE 9 | Java 9 |
| ... | ... | ... |
| 18 | Java SE 18 | Java 18 |
This challenge entry matches the version column in the table above, which is what is contained in the system property `"java.version"`.
### Explanation
The goal is to check from which version a class starts to exist, because Java deprecates code but never removes it. The code has been specifically written in Java 1.0 to be compatible with all the versions, again, because [the JDK is (mostly) source forward compatible](https://stackoverflow.com/questions/4692626/is-jdk-upward-or-backward-compatible).
The implementation tries to find the shortest class names that each version introduced. Though, to gain bytes, it's needed to try and pick a common subpackage. So far I found the most efficient package is `java.util` because it contains several really short-named classes spread across all versions of Java.
Now, to find the actual version number, the class names are sorted by introducing version. Then I try to instanciate each class sequentially, and increment the array index. If the class exists, we skip to the next, otherwise we let the exception be caught by the `try`-block. When done, another exception is thrown because there are no more classes whose existence we need to check.
In any case, the thread will leave the `try`-block with an exception. That exception is not caught, but simply put on hold thanks to the `finally`-block, which in turn overrides the on-hold exception by actually returning a value which is `"1."+v` where `v` is the index used before. It also happens we made this index match the minor version number of Java.
Note: what is below needs to be updated.
An important part of the golf was to find the shortest new class name in the package `java.util` (or any children package) for each version. Here is the table I used to compute that cost.
| Version | Full name (cost in chars) | Reduced name (cost in chars) |
| --- | --- | --- |
| 9 | `java.util.zip.CRC32C` (20) | `zip.CRC32C` (10) |
| 1.8 | `java.util.Base64` (16) | `Base64` (6) |
| 1.7 | `java.util.Objects` (17) | `Objects` (7) |
| 1.6 | `java.util.Deque` (15) | `Deque` (5) |
| 1.5 | `java.util.UUID` (14) | `UUID` (4) |
| 1.4 | `java.util.Currency` (18) | `Currency` (8) |
| 1.3 | `java.util.Timer` (15) | `Timer` (5) |
| 1.2 | `java.util.Map` (13) | `Map` (3) |
| 1.1 | `java.util.Locale` (16) | `Locale` (6) |
| 1.0 | [default] | [default] |
| | Full name (cost in chars) | Reduced name (cost in chars) |
| --- | --- | --- |
| Subtotal | 144 chars | 54 chars |
| Base | 0 chars | 10 chars (`java.util.`) |
| Total | 144 chars | 64 chars |
### Credits
* 30 bytes saved thanks to Kevin Cruijssen (although I was doing it before I read his comment, I promise!).
* 26 further bytes saved thanks to Neil (nope, I wasn't thinking about doing that)
* 12 bytes thanks to Nevay and the nice out-of-the~~-box~~-try-catch thinking!
* 11 more bytes by Neil again and the nice portable `finally` trick.
* 2 more bytes thanks to Kevin Cruijssen by replacing `return(i<9?"1.":"")+i;` with `return i<9?"1."+i:i;` (this needs to be validated against 1.0 or at most 1.3 since no syntax changes happened before 1.4)
### With builtins
If builtins were allowed:
```
String v(){return System.getProperty("java.version");}
```
54 bytes for 19 versions (from 1.0 to 18), so the score would be 2,84.
[Answer]
# [Python](https://docs.python.org/), 606 bytes / 15 versions = score 40.4
*-67 bytes (lol) thanks to NoOneIsHere.*
The versions are 0.9.1, 2(.0), 2.2, 2.2.2, 2.5.0, 2,5.1, 3(.0), 3.1, 3.1.3, 3.2.1, 3.3, 3.4, 3.5 aaand 3.6.
```
try:eval('1&2')
except:print('0.9.1');1/0
if`'\n'`<'\'\\n\'':print(2);1/0
try:from email import _Parser;print(2.2);1/0
except:0
try:eval('"go"in""')
except:print('2.2.2');1/0
try:int('2\x00',10);print(2.5);1/0
except:0
if pow(2,100)<1:print('2.5.1');1/0
if str(round(1,0))>'1':print(3);1/0
if format(complex(-0.0,2.0),'-')<'(-':print(3.1);1/0
if str(1.0/7)<repr(1.0/7):print('3.1.3');1/0
try:eval('u"abc"')
except:print('3.2.1');1/0
try:int(base=10);print(3.3);1/0
except:0
try:import enum
except:print('3.3.3');1/0
try:eval('[*[1]]')
except:print(3.4);1/0
try:eval('f""')
except:print(3.5);1/0
print(3.6)
```
All credit to [Sp3000's amazing answer](https://codegolf.stackexchange.com/a/94834). The trailing newline is necessary.
Whee, that was fun to golf. This should work (yes, I installed every one of these versions), but I might've accidentally borked something. If anybody finds a bug, please let me know.
[Answer]
# EcmaScript 3 / 5 / 2015 / 2016 / 2017 in Browser, 59 bytes / 5 versions = 11.8 points
```
alert(2017-2*![].map-2010*![].fill-![].includes-!"".padEnd)
```
[![NetScape 7 report 3, and Opera 12 report 5](https://i.stack.imgur.com/bxlqv.png)](https://i.stack.imgur.com/bxlqv.png)
Save 1 byte thanks to GOTO 0
[Answer]
# C++ 11/14/17, score = 147/3 = 49
To distinguish between C++11 and C++14/17, it uses the change in the default `const`ness of `constexpr` member functions in C++14 (with credit to the example at <https://stackoverflow.com/questions/23980929/what-changes-introduced-in-c14-can-potentially-break-a-program-written-in-c1>). To distinguish between C++14 and C++17, it uses the fact that C++17 disabled trigraphs.
```
#include<iostream>
#define c constexpr int v
struct A{c(int){return 0;}c(float)const{return*"??="/10;}};int main(){const A a;std::cout<<11+a.v(0);}
```
Ungolfed:
```
struct A {
constexpr int v(int) { return 0; }
constexpr int v(float) const {
// with trigraphs, *"??=" == '#' == 35, v() returns 3
// without trigraphs, *"??" == '?' == 63, v() returns 6
return *("??=") / 10;
}
};
int main() {
const A a;
std::cout << 11 + a.v(0);
}
```
(Tested with Debian gcc 7.1.0 using `-std=c++{11,14,17}`.)
[Answer]
# [Seriously](https://github.com/Mego/Seriously/tree/v1) and [Actually](https://github.com/Mego/Seriously), 3 bytes, score 1.5
```
'1u
```
Try it online: [Actually](https://tio.run/##S0wuKU3Myan8/1/dsPT/fwA "Actually – Try It Online"), [Seriously](https://tio.run/##K04tyswvLc6p/P9f3bD0/38A)
Explanation:
```
'1u
'1 both versions: push "1"
u Actually: increment character to "2"; Seriously: NOP
(both versions: implicit print)
```
`u` and `D` having functionality on strings was only added in Actually (which is Seriously v2).
[Answer]
## JavaScript (ES5 & ES6), 14 bytes / 2 versions = 7
```
alert(5^"0o3")
```
`0o`-style octal constants are new in ES6; ES5 casts the string to `NaN` which doesn't affect the result of the bitwise XOR.
[Answer]
# JavaScript (ES 2, 3 & 5 - ~~8 9~~ 11), ~~59 / 6 = 9.833 75 / 7 = 10.714~~ 98 / 9 = 10.889
May as well submit the solution with more versions, even if it does score slightly higher than the 2-version solution.
```
alert(11-!"".matchAll-![].flat-(/./.dotAll!=0)-!"".padEnd-![].includes-![].keys-2*![].map-![].pop)
```
[Try it online](https://tio.run/##y0osSyxOLsosKNHNy09J/Z@Yk1pUYpucn1ecn5Oql5OfDhHRsNTV0NfT10vJL3HMyVG0NdDUVVRS0itITHHNS9FVjI7Vy8xLzilNSS0Gc7JTK4t1jbRAzNzEArBQQX6B5v//AA)
Checks for the presence of various methods in the Array, RegExp & String prototypes, negates them, giving a boolean, and subtracts that boolean from an initial value of 11. The multiplication of `![].map` accounts for the fact that ES4 was abandoned.
* The [`matchAll`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/string/matchAll) String method was introduced in [ES2019](https://262.ecma-international.org/11.0/#sec-string.prototype.matchall) (v11).
* The [`flat`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/flat) Array method was introduced in [ES2020](https://262.ecma-international.org/10.0/#sec-array.prototype.flat) (v10).
* The [`dotAll`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/dotAll) property (and related `s` flag) for Regular Expressions was introduced in [ES2018](http://www.ecma-international.org/ecma-262/9.0/#sec-get-regexp.prototype.dotAll) (v9).
* The [`padEnd`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/padEnd) String method was introduced in [ES2017](http://www.ecma-international.org/ecma-262/8.0/#sec-string.prototype.padend) (v8).
* The [`includes`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/includes) Array method was introduced in [ES2016](http://www.ecma-international.org/ecma-262/7.0/#sec-array.prototype.includes) (v7).
* The [`keys`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/keys) Array method was introduced in [ES2015](http://www.ecma-international.org/ecma-262/6.0/#sec-array.prototype.keys) (v6).
* The [`map`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/map) Array method was introduced in [ES5.1](http://www.ecma-international.org/ecma-262/5.1/#sec-15.4.4.19) (v5).
* The [`pop`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/pop) Array method was introduced in [ES3](http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%203rd%20edition,%20December%201999.pdf) (v3).
[Answer]
# PHP 5/7, score 5.5
```
<?=7-"0x2";
```
[3V4L it online!](https://3v4l.org/Y378M)
# PHP 5.3.9/5.3.11, score 10
```
<?='5.3.'.(9-0x0+2);
```
[3V4L it online!](https://3v4l.org/4GaUL)
The online version is longer because old PHP versions on the sandbox don't have short tags enabled.
[Answer]
# x86 16/32/64-bit machine code: 11 bytes, score= 3.66
This function returns the [current mode](https://en.wikipedia.org/wiki/X86-64#Operating_modes) (default address-size) as an integer in AL. Call it from C with signature `uint8_t modedetect(void);`. (Or more realistically, from machine code that's going to branch on the result using instruction encodings that decode the same in all modes.)
NASM machine-code + source listing (showing how it works in 16-bit mode, since `BITS 16` tells NASM to assemble the source mnemonics for 16-bit mode.)
```
1 machine global modedetect
2 code modedetect:
3 addr hex BITS 16
5 00000000 B040 mov al, 64
6 00000002 B90000 mov cx, 0 ; 3B in 16-bit. 5B in 32/64, consuming 2 more bytes as the immediate
7 00000005 FEC1 inc cl ; always 2 bytes. The 2B encoding of inc cx would work, too.
8
9 ; want: 16-bit cl=1. 32-bit: cl=0
10 00000007 41 inc cx ; 64-bit: REX prefix
11 00000008 D2E8 shr al, cl ; 64-bit: shr r8b, cl doesn't affect AL at all. 32-bit cl=1. 16-bit cl=2
12 0000000A C3 ret
# end-of-function address is 0xB, length = 0xB = 11
```
**Justification**:
x86 machine code doesn't officially have version numbers, but I think this satisfies the intent of the question by having to produce specific numbers, rather than choosing what's most convenient (that only takes 7 bytes, see below).
Another interesting way to interpret the question would be to write 16-bit code to detect 8086 vs. 186 vs. 286 vs. 386, etc, [as in this example](https://reverseengineering.stackexchange.com/questions/19394/how-did-this-80286-detection-code-work), based on FLAGS and other behaviour, because each new "version" added new features (including instruction opcodes). But that's not what this answer does.
The original x86 CPU, Intel's 8086, only supported 16-bit machine code. 80386 introduced 32-bit machine code (usable in 32-bit protected mode, and later in compat mode under a 64-bit OS). AMD introduced 64-bit machine code, usable in long mode. These are versions of x86 machine language in the same sense that Python2 and Python3 are different language versions. They're mostly compatible, but with intentional changes. You can run 32 or 64-bit executables directly under a 64-bit OS kernel the same way you could run Python2 and Python3 programs.
### How it works:
Start with `al=64`. Shift it right by 1 (32-bit mode) or 2 (16-bit mode).
* 16/32 vs. 64-bit: The 1-byte `inc`/`dec` encodings are REX prefixes in 64-bit (<http://wiki.osdev.org/X86-64_Instruction_Encoding#REX_prefix>). REX.W doesn't affect some instructions at all (e.g. a `jmp` or `jcc`), but in this case to get 16/32/64 I wanted to inc or dec `ecx` rather than `eax`. That also sets `REX.B`, which changes the destination register. But fortunately we can make that work but setting things up so 64-bit doesn't need to shift `al`.
The instruction(s) that run only in 16-bit mode could include a `ret`, but I didn't find that necessary or helpful. (And would make it impossible to inline as a code-fragment, in case you wanted to do that). It could also be a `jmp` within the function.
* 16-bit vs. 32/64: immediates are 16-bit instead of 32-bit. Changing modes can change the length of an instruction, so 32/64 bit modes decode the next two bytes as part of the immediate, rather than a separate instruction. I kept things simple by using a 2-byte instruction here, instead of getting decode out of sync so 16-bit mode would decode from different instruction boundaries than 32/64.
Related: The operand-size prefix changes the length of the immediate (unless it's a sign-extended 8-bit immediate), just like the difference between 16-bit and 32/64-bit modes. This makes instruction-length decoding difficult to do in parallel; [Intel CPUs have LCP decoding stalls](https://software.intel.com/en-us/forums/intel-performance-bottleneck-analyzer/topic/328256).
---
Most calling conventions (including the i386 and x86-64 System V ABIs) allow narrow return values to have garbage in the high bits of the register. They also allow clobbering CX/ECX/RCX (and R8 for 64-bit). IDK if that was common in 16-bit calling conventions, but this is code golf so I can always just say it's a custom calling convention anyway.
**32-bit disassembly**:
```
08048070 <modedetect>:
8048070: b0 40 mov al,0x40
8048072: b9 00 00 fe c1 mov ecx,0xc1fe0000 # fe c1 is the inc cl
8048077: 41 inc ecx # cl=1
8048078: d2 e8 shr al,cl
804807a: c3 ret
```
**64-bit disassembly** ([Try it online!](https://tio.run/##VVA7b8IwEN79K24rSIGGQCMU1KFIHSp1ahm6oUtyAat@VLEpSf88vRhCwIPP9/m@h43Okc5VOzHo9GmnbI4Kts5j7cW5ZAJ4FagUF21LKslT4QOq7e9fA0B5EwGqHuoKIUOzgEjjuxI3yxguawWudVtqpB8NiqPxeCUEKrkzMEtFH@bGcjhmYv22@ezGbjxRRZAubpGCQ8RXz/maszBnkks/BXgK7Tx5TBcRFNa4g5ZmBwmTa4K89eQAHfg9gdSaSomeLg8qgrgCGB6E6oitY3YgsvyGeckayBS27HRtFYhFA0d7UCXv9XcE3tqpEGeJIxqfXfKx@vOMVThf12ZdH9@5N1frdHEe@Xj9gp@aKtmEQbev@18JUYfB7qZe5gEvLTnz4AGriv8VXt4BuVFq2lv3SYZcSZCvyYvT6R8 "Assembly (nasm, x64, Linux) – Try It Online")):
```
0000000000400090 <modedetect>:
400090: b0 40 mov al,0x40
400092: b9 00 00 fe c1 mov ecx,0xc1fe0000
400097: 41 d2 e8 shr r8b,cl # cl=0, and doesn't affect al anyway!
40009a: c3 ret
```
Related: my [x86-32 / x86-64 polyglot machine-code](https://stackoverflow.com/questions/38063529/x86-32-x86-64-polyglot-machine-code-fragment-that-detects-64bit-mode-at-run-ti) Q&A on SO.
Another difference between 16-bit and 32/64 is that addressing modes are encoded differently. e.g. `lea eax, [rax+2]` (`8D 40 02`) decodes as `lea ax, [bx+si+0x2]` in 16-bit mode. This is obviously difficult to use for code-golf, especially since `e/rbx` and `e/rsi` are call-preserved in many calling conventions.
I also considered using the 10-byte `mov r64, imm64`, which is REX + `mov r32,imm32`. But since I already had an 11 byte solution, this would be at best equal (10 bytes + 1 for `ret`).
---
Test code for 32 and 64-bit mode. (I haven't actually executed it in 16-bit mode, but the disassembly tells you how it will decode. I don't have a 16-bit emulator set up.)
```
global _start
_start:
call modedetect
movzx ebx, al
mov eax, 1
int 0x80 ; sys_exit(modedetect());
align 16
modedetect:
BITS 16
mov al, 64
mov cx, 0 ; 3B in 16-bit. 5B in 32/64, consuming 2 more bytes as the immediate
inc cl ; always 2 bytes. The 2B encoding of inc cx would work, too.
; want: 16-bit cl=1. 32-bit: cl=0
inc cx ; 64-bit: REX prefix
shr al, cl ; 64-bit: shr r8b, cl doesn't affect AL at all. 32-bit cl=1. 16-bit cl=2
ret
```
This Linux program exits with exit-status = `modedetect()`, so run it as `./a.out; echo $?`. Assemble and link it into a static binary, e.g.
```
$ asm-link -m32 x86-modedetect-polyglot.asm && ./x86-modedetect-polyglot; echo $?
+ yasm -felf32 -Worphan-labels -gdwarf2 x86-modedetect-polyglot.asm
+ ld -melf_i386 -o x86-modedetect-polyglot x86-modedetect-polyglot.o
32
$ asm-link -m64 x86-modedetect-polyglot.asm && ./x86-modedetect-polyglot; echo $?
+ yasm -felf64 -Worphan-labels -gdwarf2 x86-modedetect-polyglot.asm
+ ld -o x86-modedetect-polyglot x86-modedetect-polyglot.o
64
## maybe test 16-bit with Bochs, e.g. in a bootloader, if you want.
```
---
# 7 bytes (score=2.33) if I can number the versions 1, 2, 3
There are no official version numbers for different x86 modes. I just like writing asm answers. I think it would violate the question's intent if I just called the modes 1,2,3, or 0,1,2, because the point is to force you to generate an inconvenient number. But if that was allowed:
```
# 16-bit mode:
42 detect123:
43 00000020 B80300 mov ax,3
44 00000023 FEC8 dec al
45
46 00000025 48 dec ax
47 00000026 C3 ret
```
Which decodes in 32-bit mode as
```
08048080 <detect123>:
8048080: b8 03 00 fe c8 mov eax,0xc8fe0003
8048085: 48 dec eax
8048086: c3 ret
```
and 64-bit as
```
00000000004000a0 <detect123>:
4000a0: b8 03 00 fe c8 mov eax,0xc8fe0003
4000a5: 48 c3 rex.W ret
```
[Answer]
# Pyth 4/5 - 6 bytes/2 versions = 3
```
5 ;4
```
In Pyth 5, an even amount of spaces at the start of the line is ignored for use in indenting, while in Pyth 4, it just acts like a single space and prevents printing the `5`. In Pyth 4, semicolons just finish statements, which allows the `4` to be printed, while in Pyth 5, a space and semicolon makes the rest of the line a comment.
[Answer]
# Befunge : ~~15~~ 11 bytes / 2 versions = 5.5
4 bytes shaved off by @Pietu1998
```
"89",;5-;,@
```
Try it online :
[Befunge 93](https://tio.run/##S0pNK81LT/3/X8nCUknH2lTXWsfh/38A "Befunge – Try It Online")
[Befunge 98](https://tio.run/##S0pNK81LT9W1tNAtqAQz//9XsrBU0rE21bXWcfj/HwA "Befunge-98 (PyFunge) – Try It Online")
Uses the Befunge 98-exclusive semicolon operator ("skip to next semicolon") to differentiate versions. Both will print "9". Befunge 93 will ignore the semicolons, subtract 5 from "8" (value left on top of the stack), print the resulting "3" and terminate. Befunge 98 on the other hand, will skip over, print "8" and terminate.
[Answer]
# Cubically, 4 bytes, score 4/∞
```
B3%0
```
Works in every version your system has enough memory to run. **Non-competing because it's lame.** Valid per [this meta post](https://codegolf.meta.stackexchange.com/q/13660/61563).
Basically, B3 rotates one row from the left face into the top face. F3 would work just as well, as would F₁3 or B₁3. As one row in Cubically 3x3x3 is three cubelets by one cubelet, this puts three `1`'s into the top face, giving it a face sum of 3. `%0` prints that top face sum, printing 3 for Cubically **3**x3x3.
In Cubically 4x4x4, rows are 4x1 cubies. Puts 4 1's into the top face, yielding a sum of 4.
[Answer]
# [Python](https://docs.python.org/), 196 bytes / 16 versions = score 12.25
The versions are 1.5, 1.6, 2.0, 2.1, 2.2, 2.3, 2.4, 2.5, 2.6, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, and 3.6
Unfortunately I had to leave out 2.7 because there aren't any modules in it (as far as I can tell) that aren't in 2.6 but are in 3.0.
```
i=15
try:
for m in'os.atexit.os.os.os.warnings.cgitb.heapq.collections._ast.abc.queue.os.os.os.importlib.argparse.lzma.asyncio.zipapp.secrets.'.split('.'):__import__(m);i=i+1
except:print(i/10.)
```
We loop through a bunch of modules that were introduced in different versions of python, and at the first error we quit and return the version.
The gaps between major versions are filled in by repeatedly importing `os`.
The test for python 1.5 relies on `string.split` not being present until 1.6.
Credit to [Olivier Grégoire's answer](https://codegolf.stackexchange.com/a/139274/10894) for the idea of testing for new classes/modules in a loop.
I've now finally tested on all relevant versions of python...which required editing the 1.5 source code to get it to compile...
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog) / [Brachylog v1](https://github.com/JCumin/Brachylog/releases), 5 / 2 = 2.5
```
2,1hw
```
[Try it online!](https://tio.run/##SypKTM6ozMlPN/r/30jHMKP8/38A "Brachylog – Try It Online") (Brachylog)
[Try it online!](https://tio.run/##SypKTM6ozMlP///fSMcwo/z/fwA "Brachylog v1 – Try It Online") (Brachylog v1)
Explanation for Brachylog:
```
?2,1hw.
?2 Unify ? (input) with 2 (no input so it succeeds)
,1 Append 1 (21)
h First element/head (2)
w. Write to STDOUT and unify with output (not displayed)
```
Explanation for Brachylog v1:
```
?2,1hw.
?2 Unify ? (input) with 2 (no input so it succeeds)
, Break implicit unification/logical AND
1h Take first element/head of 1 (1)
w. Write to STDOUT and unify with output (not displayed)
```
[Answer]
# Python 3 and Python 2.0, 18 bytes, score 18 / 2 = 9
```
print(3-round(.5))
```
Banker's rounding in Python 3, standard rounding in Python 2.
[Try it online - Python 3!](https://tio.run/##K6gsycjPM/7/v6AoM69Ew1i3KL80L0VDz1RT8/9/AA "Python 3 – Try It Online")
[Try it online - Python 2!](https://tio.run/##K6gsycjPM/r/v6AoM69Ew1i3KL80L0VDz1RT8/9/AA "Python 2 – Try It Online")
[Answer]
# Python 1,2,3, score 10.6667
```
print(len("a a\x20a".split()))
```
This only works if you feed it in as a command line argument instead of putting it in a file, as older versions of python won't default to utf-8 in a file but will in a command line argument.
Basically, the string consists of an 'a', an ogham space (3 bytes), an 'a', an escaped space character, and another 'a', and we just split it on whitespace, count how many strings we got, and print that.
* Python 3 correctly recognises the ogham space and the escaped space as whitespace, and so the string has 3 words.
* Python 2 incorrectly assumes all unicode characters are not whitespace, so it only counts the escaped space and gets 2 words.
* Python 1 fails to parse the escaped whitespace, I think because of the a after it, so it sees no spaces and gets 1 word.
[Answer]
# C89/C99, 25 bytes, 2 versions, score = 12.5
```
#include <stdio.h>
int main() {
int v = 11 //**/ 11
+ 88;
printf("C%d\n", v);
return 0;
}
```
`//` style comments aren't recognized in C89.
Golfed version:
```
v(){return 20//**/2
+79;}
```
Try it online: [C89](https://tio.run/##S9ZNT07@/79MQ7O6KLWktChPwchAX19LS9@IS9vc0rr2v3JmXnJOaUqqgk1xSUpmvl6GHRdXZl6JQm5iZp6GpkI1lwIQFBQBhdI0lJxVU2LylHQUgMZpWoNloIYaWHPVcv3/l5yWk5he/F8XaJRtsoUlAA), [C99](https://tio.run/##S9ZNT07@/79MQ7O6KLWktChPwchAX19LS9@IS9vc0rr2v3JmXnJOaUqqgk1xSUpmvl6GHRdXZl6JQm5iZp6GpkI1lwIQFBQBhdI0lJxVU2LylHQUgMZpWoNloIYaWHPVcv3/l5yWk5he/F8XaJRtsqUlAA)
[Answer]
## Perl 5 and Perl 6, 23 bytes 19 bytes, score 9.5
```
print 6-grep '.',''
```
Perl 5 `grep` first op is always treated as a regex, not so in Perl 6.
[Answer]
## Bash, all 4 versions, ~~72~~ ~~71~~ 32 bytes ⇒ score = 8
```
s=$'\ua\xa\n';expr 5 - ${#s} / 2
```
This piece of code makes use of different interpretations of `$'...'` strings in each version of Bash.
Outputs the major version number -- and that's it.
Doc found [here](http://wiki.bash-hackers.org/scripting/bashchanges).
### Ungolfed:
```
s=$'\ua\xa\n';
expr 5 - ${#s} / 2
# Bash v4 sees three linefeeds => length of 3 => 5 - 3 / 2 = 4
# Bash v3 sees the literal '\ua' + two linefeeds: 5 chars in length
# => 5 - 5 / 2 = 3
# Bash v2 sees '\ua\xa' + linefeed, 7 chars: 5 - 7 / 2 = 2
# Bash v1 does not even interpret $'..' strings, and sees literally '$\ua\xa\n' of length 9 => 5 - 9 / 2 = 1
```
This answer is halfly a guess; I only tested it in bash 4 and 3, but it should work on other versions too.
Let me know if it does / does not, I will try with other versions as soon as I have them available.
-1 char thanks to Jens.
-29 bytes thanks to Digital Trauma (the whole `expr` idea)!
[Answer]
## R, versions 2 and 3, score: 10.5 points
```
cat(exists("cite")+2)
```
This command returns `2` for R 2.x.x and `3` for R 3.x.x. The function `cite` was added in R version 3.0.0. Therefore, the command `exists("cite")` returns `FALSE` for R 2.x.x and `TRUE` for R 3.x.x.
## R, all versions (1, 2, and 3), score: 12⅓ points
```
e=exists;cat(e("cite")+e("eapply")+1)
```
The function `eapply` was introduced in R 2.0.0.
[Answer]
# Erlang, 180 bytes, 11 versions, score 16.36
```
20-length([A||A<-[schedulers,c_compiler_used,cpu_topology,snifs,dynamic_trace,port_count,nif_version,end_time,max_heap_size,atom_count],{'EXIT',_}<-[catch erlang:system_info(A)]]).
```
With indentation and line breaks:
```
20-length([A||A<-
[schedulers,
c_compiler_used,
cpu_topology,
snifs,
dynamic_trace,
port_count,
nif_version,
end_time,
max_heap_size,
atom_count],
{'EXIT',_}<-[catch erlang:system_info(A)]]).
```
Tested on one minor release of each major version since 10:
* R10B-9
* R11B-5
* R12B-5
* R13B04
* R14B04
* R15B03
* R16B03
* 17.5.6.2
* 18.2.1
* 19.2
* 20.0
The idea is that every major release has added at least one new allowable argument for the function `erlang:system_info`, so let's try the ones in the list, count how many of them fail, and subtract the number of failures from 20, which is the current version.
[Answer]
# [Windows' Batch File](https://en.wikipedia.org/wiki/Batch_file), 35 bytes / 2 versions = score 17.5
```
@if /i Z==z @echo NT&exit
@echo DOS
```
Prints `DOS` on MS-DOS (duh) and `NT` on Windows NT. (duh)
Now, for some explanation.
Windows has had batch scripting since MS-DOS times and it hasn't changed much since then. However, when [Windows NT](https://en.wikipedia.org/wiki/Batch_file#Windows_NT) came along, Microsoft changed the default interpreter for batch scripts, from `COMMAND.COM` to `cmd.exe` (now also allowing the extension `.cmd` as an alternative to the original `.bat`).
With that, they also implemented a [few changes](https://en.wikipedia.org/wiki/Cmd.exe#Comparison_with_MS-DOS_Prompt), such as the `/i` flag for ignoring string case on conditionals. That is, while `Z==z` is false, `/i Z==z` is true.
We exploit that DOS didn't have case insensitivy and compare uppercase `Z` with lowercase `z`. By using the `/i` flag, we end up with a `Z==z` (false) conditional on DOS and `z==z` (true) on NT.
Now, I realize that the challenge specifies that a version number should be printed. But, as far as I know, there is no 'version number' to batch scripting, so this is the closest I could get.
---
Tested on Windows 10, DOSBox and vDos:
**Windows 10:**
[![Windows 10](https://i.stack.imgur.com/Y45u3.png)](https://i.stack.imgur.com/Y45u3.png)
(run with `cmd /k` to prevend window closing on `exit`)
**DOSBox:**
[![DOSBox](https://i.stack.imgur.com/8hwdW.png)](https://i.stack.imgur.com/8hwdW.png)
**vDos:**
[![vDos](https://i.stack.imgur.com/jkcg0.png)](https://i.stack.imgur.com/jkcg0.png)
[Answer]
# Julia 0.4, 0.5, 46 bytes, score 22
```
f(::ASCIIString)=.4
f(::String)=.5
f()=f("")
```
Julia has changed the type name of the concrete and abstract String types in many versions.
This code in particular take advantage of:
**Julia 0.4**:
* Concrete is `ASCIIString`,
* Abstract is officially `AbstractString`,
* Abstract has deprecated alias to `String`.
* Concrete is most specific than abstract so it wins dispatch
**Julia 0.5**:
* Concrete is officially `String`,
* Concrete has deprecated alias to `ASCIIString`,
* Abstract is `AbstractString`, (though that doesn't matter here)
* As two methods have been defined for the concrete string type, the latter over-writes the former.
See also my [newer more effective solution based on different principles](https://codegolf.stackexchange.com/a/139537/4397)
[Answer]
# [Japt](https://github.com/ethproductions/japt/) (1 & 2), ~~8~~ 6 / 2 = ~~4~~ 3
```
'1r\S2
```
[Test v1](https://ethproductions.github.io/japt/?v=1.4.5&code=JzFyXFMy&input=) **|** [Test v2](https://ethproductions.github.io/japt/?v=2.0&code=JzFyXFMy&input=)
* 2 bytes saved thanks to [Oliver](https://codegolf.stackexchange.com/users/61613/oliver)
---
## Explanation
Prior to v2, Japt used a customised RegEx syntax, so we can take advantage of that.
```
'1
```
The number 1 as a string.
```
r 2
```
Replace (`r`) the below with a `2`.
```
\S
```
Japt 2 sees this as the RegEx `/\S/g`, which matches the `1`. Japt 1 ignores the `\` escape character and just sees the `S`, which is the Japt constant for a space character and, obviously, doesn't match the `1`.
[Answer]
# [One and Two Star Programmer](https://esolangs.org/wiki/Three_Star_Programmer), 3 bytes/2, score 1.5
```
0 1
```
In One Star Programmer, the left most cell will point to cell 1,
in Two Star Programmer, it will point to cell 2
[Answer]
# Wolfram Language/Mathematica 10/11, 37 bytes / 2 versions = 18.5
Consider `(Length@DateRange[{1},{1}][[1]]+27)/3`, at 37 bytes and working with 2 versions, gives me a score of 18.5.
```
In[1]:= $Version
Out[1]= "10.4.1 for Microsoft Windows (64-bit) (April 11, 2016)"
In[2]:= (Length@DateRange[{1}, {1}][[1]] + 27)/3
Out[2]= 10
```
and
```
In[1]:= $Version
Out[1]= "11.1.1 for Microsoft Windows (64-bit) (April 18, 2017)"
In[2]:= (Length@DateRange[{1}, {1}][[1]] + 27)/3
Out[2]= 11
```
I'm sure there is a more efficient way, but the discrepancy between the DateRange output bit me in the butt recently, so I was set on using that.
As a follow up, someone could probably take advantage of `Length@DateRange[{1}, {1}][[1]]` evaluating to `1` in Mathematica versions 1-~8, but I didn't have time to incorporate that.
[Answer]
# Ruby 1.x and 2.x, 20 bytes, score 10
```
p [].to_h&&2rescue 1
```
Based on the `to_h` method which was introduced on the `Array` class in Ruby 2.
[Answer]
# [APL (Dyalog)](https://www.dyalog.com/), score 7.3 or 3
### 51 bytes for 7 versions or 6 bytes for 2 versions
For the lowest score, distinguish versions 12 and 13 with:
```
12+≡⍳0
```
Twelve plus the depth of the first zero integers. Until version 12, `⍳0` (wrongly) returned the index origin as a scalar, i.e. depth 0. In version 13 and up, `⍳0` returns an empty list, i.e. depth 1.
---
Much more interesting is the following anonymous function which distinguishes all major versions 10 through 16 (the current). It needs a dummy argument (which is ignored) to run.
```
{2::10⋄⌷2::11⋄_←⎕XML⋄0::+/12⎕ML,≡⍳0⋄≡,/⍬::15⋄16@~0}
```
`{`…`}` an anonymous function which allows setting error guards `::` with a numeric error code (determining which type of error to catch) on the left, and on the right, the result to be returned in case of error.
`2::10` if SYNTAX ERROR, return 10
`⌷2::11` materialise (introduced in version 11) 2 (SYNTAX ERROR) which if happens, yields 11
`⋄_←⎕XML` try: assign XML system function (introduced in version 12) to a dummy name
`0::`…`⋄` if any error happens;
`⍳0` first zero integers (gives 1 until version 12 and empty list from version 13)
`≡` depth of that (0 until 12, 1 from 13)
`12⎕ML,` prepend 12 and the **M**igration **L**evel (0 until 13, 1 from 14)
`+/` sum (12 until 12, 13 in 13, 14 from 14)
`≡,/⍬::15` try: concatenate the elements of an empty list (introduced in version 15) and get its depth, 2 (SYNTAX ERROR) which if happens, yields 15
`⋄16@~0` try: amend with a 16 at (introduced in version 16) positions where logical NOT yields truth, applied to 0
Try it on [TryAPL](http://tryapl.org/?a=%7B2%3A%3A10%u22C4%u23372%3A%3A11%u22C4_%u2190%u2395XML%u22C40%3A%3A+/12%281%29%2C%u2261%u23730%u22C4%u2261%2C/%u236C%3A%3A15%u22C416a%7E0%7D%u236C&run) (slightly modified to pass security) and [Try it Online](https://tio.run/##SyzI0U2pTMzJT///v@xR24RqIysrQ4NH3S2PeraDmIZAZjxQ/FHf1AhfHyDHwMpKW9/QCMj39dF51LnwUe9msPLOhTr6j3rXALWYArmGZg51BrVAIxWAYgA "APL (Dyalog Unicode) – Try It Online")!
[Answer]
# Julia 0.2-0.7, bytes = 59, versions = 6, score = 9.833
```
f()=[4,0,3,0,5,2,6,7][endof(subtypes(AbstractArray))-16]/10
```
Turns out each version of julia has had a different number of abstract array subtypes. So we use the number of subtypes to index into an array that contains the version number.
The current nightly (0.7), currently has 25, but it is the fallback case anyway.
Julia 0.1 also has a different number of AbstractArray subtypes I would guess.
However, julia 0.1 does not have the `subtypes` function.
So I can't trivially retrieve them.
A significant improvement over [my previous answer.](https://codegolf.stackexchange.com/a/139523/4397)
(Thanks @one-minute-more for almost halving the bytecount)
] |
[Question]
[
We all know the classic dad joke that goes something like this:
1. Somebody says a sentence to describe their self (e.g. `I'm tired` or `I'm confused`).
2. A dad-joke enthusiast comes along and replies `Hi <adjective>, I'm Dad!`, because introductions follow the same format (`I'm Peter` follows the same format as `I'm hungry`).
Your job is to take in an input in the form of a self-descriptor, and output the appropriate dad-joke form, but instead of using the word "Dad", you'll use the name of the programming language you're programming in.
Test cases (assume that they are being parsed by Python):
```
I'm amazing Hi amazing, I'm Python!
I'm tired Hi tired, I'm Python!
I'm hungry Hi hungry, I'm Python!
I'm fat Hi fat, I'm Python!
```
Now assume that these test cases are being parsed by Golfscript:
```
I'm a programmer Hi a programmer, I'm Golfscript!
I'm a question-writer Hi a question-writer, I'm Golfscript!
I'm a Stack-Overflow-er Hi a Stack-Overflow-er, I'm Golfscript!
```
The exact challenge:
1. Take in a string in the self-descriptor format (`I'm <adjective>` or `I'm a(n) <noun>`) using standard input or through a function.
* Assume there is no ending punctuation.
* Assume the word `I'm` is used and not `I am`.
2. Convert it to a dad-joke format - see the above examples for exactly how that should look.
Other stuff:
* This is [code-golf](/questions/tagged/code-golf "show questions tagged 'code-golf'"), so shortest byte count wins.
* Follow the [standard loophole](https://codegolf.meta.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default) rules - none of those, please.
* Have fun!
[Answer]
# [V](https://github.com/DJMcMayhem/V), 13 bytes
```
cEHi<esc>A, <C-r>" V!
```
[Try it online!](https://tio.run/##K/v/P9nVI1PaUUdBSEkhTPH/f0/1XIWS1OIShdzU4uLE9FQA "V – Try It Online")
Inspired by [tsh's answer](https://codegolf.stackexchange.com/a/185891)
This takes advantage of the fact that `I'm` is yanked from the start of the string when deleting the text from the start, and pastes it to the end with `<C-r>"` while in insert mode.
[Answer]
# [C (gcc)](https://gcc.gnu.org/), ~~59~~ ~~42~~ 33 bytes
-17 bytes thanks to @Conor O'Brien noticing that the import wasn't necessary
-9 bytes thanks to @tsh pointing out a shorter, UB way of writing the function
```
a(x){printf("Hi%s, I'm C!",x+3);}
```
[Try it online!](https://tio.run/##FYvLCsIwEADPzVesATGpCQgec/SiJw9@wbIkMdiHbGtbKP11o7nNMAzZSJQzqkWvb07dGJS8pv1g4HZo4bKTZjmetdvyP0GLqVMFkCMZoCdyXReZNKyiQiXLhPAYkV72PnkOTT9bz1I7UbEfP9zByYktfyk0GIds5x8 "C (gcc) – Try It Online")
Chops off the first 3 characters of the input (removes `I'm`) and surrounds it with the desired text.
[Answer]
# [V](https://github.com/DJMcMayhem/V), 13 bytes
```
cEHi<Esc>A, <C-O>p V!
```
[Try it online!](https://tio.run/##K/v/P9nVI1PaUUeBv0AhTPH/f0/1XIWSzKLUFAA "V – Try It Online")
New to `V`. Just knew it about 30 minutes ago. Anyway, this language is chosen just because its name only cost 1 byte. I'm not sure how to send `<End>` key in V. Most vim environment would accept `<End>` as a replacement of `<Esc>A` in this example. But, you know, V is 2 characters shorter than vim. :)
Thanks to [@Candy Gumdrop](https://codegolf.stackexchange.com/users/55514/candy-gumdrop), saves 1 byte.
[Answer]
# Excel, ~~36~~ 34 bytes
-2 bytes thanks to Johan du Toit.
Input goes into A1.
```
="Hi "&MID(A1,4,99)&", I'm Excel!"
```
First attempt:
```
=REPLACE(A1,1,3,"Hi")&", I'm Excel!"
```
[Answer]
# brainfuck, 164
```
,-.+>,>,----.++++>,.>,[.,]<<<+++++.----->>.[<]>[.>]<[->+++<]>++.[--->+<]>----.+++[->+++<]>++.++++++++.+++++.--------.-[--->+<]>--.+[->+++<]>+.++++++++.+[++>---<]>-.
```
[Try it online!](https://tio.run/##TY4xDsJQDEOvwsbwE58g8t4zRH8oUESFYAAqcftPIlEpnpI828rpNa/P63a@jyGKRqFoCC1EAcUh3cxyb0ikJNw6HezmyrjHFtCT5bwXVNj@QilKm5YUSqIEPD4JU1owxnR8HJbvbd7en@XyAw "brainfuck – Try It Online")
The "brainfuck!" part of the string is generated with [this](https://copy.sh/brainfuck/text.html) tool, can probably be golfed further by hand.
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 13 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
```
â∞¿φ‼0▲(─ƒSqÄ
```
[Run and debug it](https://staxlang.xyz/#p=83eca8ed13301e28c49f53718e&i=I%27m+amazing%0AI%27m+tired%0AI%27m+hungry%0AI%27m+fat%0AI%27m+a+programmer%0AI%27m+a+question-writer%0AI%27m+a+Stack-Overflow-er&a=1&m=2)
Unpacked, ungolfed, and commented, it looks like this.
```
.Hip print "Hi" with no newline
3tp trim 3 characters from start of input and print with no newline
final line is to print the unterminated compressed literal ", I'm stax!"
`dYgAwg_
```
I moved the final comment up one line since nothing may follow an unterminated string literal.
[Run this one](https://staxlang.xyz/#c=.Hip++++%09print+%22Hi%22+with+no+newline%0A3tp+++++%09trim+3+characters+from+start+of+input+and+print+with+no+newline%0A++++++++%09final+line+is+to+print+the+unterminated+compressed+literal+%22,+I%27m+stax%21%22%0A%60dYgAwg_&i=I%27m+amazing%0AI%27m+tired%0AI%27m+hungry%0AI%27m+fat%0AI%27m+a+programmer%0AI%27m+a+question-writer%0AI%27m+a+Stack-Overflow-er&m=2)
[Answer]
# [Python 3](https://docs.python.org/3/), ~~35~~ 34 bytes
```
lambda s:"Hi%s, I'm Python!"%s[3:]
```
[Try it online!](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUaHYSskjU7VYR8FTPVchACyvqKRaHG1sFfu/oCgzr0QjTUMJJJeokJibWJWZl66kqfkfAA "Python 3 – Try It Online")
-1 byte thanks to Embodiment of Ignorance
Also 34 bytes, using the newer formatted strings, thanks to Gábor Fekete:
```
lambda s:f"Hi{s[3:]}, I'm Python!"
```
[Try it online!](https://tio.run/##K6gsycjPM/6fZhvzPycxNyklUaHYKk3JI7O6ONrYKrZWR8FTPVchAKxKUel/QVFmXolGmoYSSDRRITE3sSozL11JU/M/AA "Python 3 – Try It Online")
[Answer]
# [Ruby](https://www.ruby-lang.org/) `-p`, ~~32~~ ~~27~~ 26 bytes
-5 bytes by leveraging [Nick Kennedy's Jelly answer](https://codegolf.stackexchange.com/a/185874/52194).
-1 byte from splitting on a different point in the string. Also realized my old bytecount was wrong.
```
~/m/;$_="Hi#$', I'm Ruby!"
```
### Explanation
```
# -p gets line of input and saves to $_
~/m/; # Find first 'm' in $_ using regex
$_="Hi#$', I'm Ruby!" # Save modified string to $_
# ($' is the string AFTER the most recent regex match)
# -p outputs $_ to screen
```
[Try it online!](https://tio.run/##KypNqvz/v05fQd9aJd5WySNTQVlFXUfBUz1XIQgopaj0/z@InZibWJWZl/4vv6AkMz@v@L9uAQA "Ruby – Try It Online")
[Answer]
# x86, ~~37~~ 36 bytes
```
00000000: d1ee ac8a d8c6 0024 adc7 0448 698b d6b4 .......$...Hi...
00000010: 09cd 21ba 1901 cd21 c32c 2049 276d 2078 ..!....!., I'm x
00000020: 3836 2124 86!$
```
Unassembled:
```
D1 EE SHR SI, 1 ; point SI to DOS PSP (80H)
AC LODSB ; load string length into AL, advance SI
8A D8 MOV BL, AL ; put string length into BL
C6 40 24 MOV BYTE PTR[BX][SI], '$' ; add string terminator to end of string
AD LODSW ; advance SI two chars
C7 04 6948 MOV WORD PTR[SI], 'iH' ; replace second and third char with 'Hi'
8B D6 MOV DX, SI ; load offset for INT 21H string function
B4 09 MOV AH, 9 ; display a '$'-terminated string function
CD 21 INT 21H ; call DOS API
BA 0119 MOV DX, OFFSET S ; load offset for second part of string
CD 21 INT 21H ; call DOS API
C3 RET ; return to DOS
S DB ", I'm x86!$"
```
A standalone executable DOS program. Input from command line, output to screen.
[![enter image description here](https://i.stack.imgur.com/yKsur.png)](https://i.stack.imgur.com/yKsur.png)
\* The exact "language" name here is a little ambiguous as CPU machine code isn't really a language in a formal sense. Going with "x86" as a generally understood and accepted name for the target platform.
[Answer]
# R ~~45~~ ~~44~~ 39 bytes
@Giuseppe Edit
```
sub("I'm(.*)","Hi\\1, I'm R",scan(,""))
```
---
@AaronHayman Edit
```
function(s)sub("I'm (.*)","Hi \\1, I'm R",s)
```
---
[Try it online!](https://tio.run/##VcuxCsIwEIDh/Z7iOAdzEgPdXQVdnbukIU0D7SlJAxbx2WOLOLh@P3@qPZ6O2Bdxc7yLyvzKzsqfGWM411w6Rdf9pMyBSdMltm2jcQW8kd4epYmY6xt2eH7a6TF6bKBXTsG2ocWhSEgLhrKQ/loqIlHC2ro442hn/yuDT56AGQDqBw)
[Answer]
# Java, 36 bytes
```
s->"Hi"+s.substring(3)+", I'm Java!"
```
[Try it online.](https://tio.run/##jZGxbsIwEIb3PMXVC4nAWTqidoZKpQNj1eFw3GCI7eA7B0GVZ08dFHWsspzs8/fdb@lO2KE8VedBNUgE72jcTwZgHOvwjUrDbrwC7DkYV4PKpwMV69Tvs1SIkY2CHTh4gYHkq9gYsaSS4oEecP5cLMUKtgsLbynuSQzr0WvjoUnepHfeVGBT/JTw@QVYTNk3Ym1LH7ls0xM3LnelysU4EC3eEy2Kx3/@Z9kEXc0ij9HV4TYLRWiDrwNaq8NM4RI1sfFOXoPh2daeUZ3lR5f20vir/PP6rB9@AQ)
[Answer]
# [Whitespace](https://web.archive.org/web/20150618184706/http://compsoc.dur.ac.uk/whitespace/tutorial.php), 267 bytes
```
[S S S T S S T S S S N
_Push_72_H][T N
S S _Print_as_character][S S S T T S T S S T N
_Push_105_i][T N
S S _Print_as_character][S S S N
_Push_0][S N
S _Duplicate_0][S N
S _Duplicate_0][T N
T S _Read_STDIN_as_character][T N
T S _Read_STDIN_as_character][T N
T S _Read_STDIN_as_character][N
S S N
_Create_Label_INPUT_LOOP][S S S N
_Push_0][S N
S _Duplicate_0][T N
T S _Read_STDIN_as_character][T T T _Retrieve][S N
S _Duplicate_input][S S S T S T S N
_Push_10][T S S T _Subtract][N
T S S N
_If_0_Jump_to_Label_TRAILING][T N
S S _Print_as_character][N
S N
N
_Jump_to_Label_INPUT_LOOP][N
S S S N
_Create_Label_TRAILING][S N
N
_Discard_top][S S T T S S S T S T N
_Push_-69_!][S S T T N
_Push_-1_e][S S T T T N
_Push_-3_c][S S T T S T N
_Push_-5_a][S S S T S T S N
_Push_10_p][S S S T T S T N
_Push_13_s][S S T T N
_Push_-1_e][S S S T T T S N
_Push_14_t][S S S T T N
_Push_3_i][S S S T S N
_Push_2_h][S S T T T T T N
_Push_-15_W][S S T T S S S T T S N
_Push_-70_space][S S S T T T N
_Push_7_m][S S T T T T T T T N
_Push_-63_'][S S T T T T S T N
_Push_-29_I][S T S S T T N
_Copy_0-based_3rd_-70_space][S S T T T T S T S N
_Push_-58_,][N
S S T N
_Create_Label_PRINT_TRAILING_LOOP][S S S T T S S T T S N
_Push_102][T S S S _Add][T N
S S _Print_as_character][N
S N
T N
_Jump_to_Label_PRINT_TRAILING_LOOP]
```
Letters `S` (space), `T` (tab), and `N` (new-line) added as highlighting only.
`[..._some_action]` added as explanation only.
Since Whitespace inputs one character at a time, the input should contain a trailing newline so it knows when to stop reading characters and the input is done.
[Try it online](https://tio.run/##RU5BDsMwCDubV3Dbqa/YYdozqpZpk1p1Wiv1@SkxJEsIAmObnO/PYft3nKwUVQVDBaL1AERaK349vO@PQEwIgVB18SK0aecUSarQmSSWTJGJhFp7jwDRwKCEqumYktYmvaou@G@ifS1zB6W0iH9CSnneVh31vs02PLblNdhPLg) (with raw spaces, tabs, and new-lines only).
**Explanation in pseudo-code:**
```
Print "Hi"
Read three characters from STDIN, and do nothing with them
Start INPUT_LOOP:
Character c = STDIN as character
If(c == '\n'):
Call function PRINT_TRAILING
Print c as character
Go to next iteration of INPUT_LOOP
function PRINT_TRAILING:
Discard the top of the stack (the c='\n' that was still on the stack)
Push "!ecapsetihW m'I ," one character at a time
Start PRINT_TRAILING_LOOP:
Print as character
Go to next iteration of PRINT_TRAILING_LOOP
```
The characters of `", I'm Whitespace!"` are pushed in reversed order, and then printed in a loop. All values of these characters are also lowered by 102, which are added in the loop before printing to save bytes. This constant 102 to lower each character with is [generated with this Java program](https://tio.run/##bVJba8IwFH73V5zlZQnR4mAyZg2isIfC3MO6GzgZaY0aV2vXHAUZ/vYutdbWbS8tPd81J13KrWwtp59ZFkbSGBhJHX83AJJNEOkQDEq0r@1aT2FlIepjquP5eAKS5TSAYgCpMpsIQYActyfuAdExglnJKFImB7wY1Vylzmjw9vEyuH@@a4Inbjpu3aWkP5ZuhBT4bJ3S3E8Lz9W9q07b1ZwfG1QdBCFNbCaiVBW6YIcKgm7R0JkrHNqBoewkB0BBfJ9wGrR0r90nT6RLfMLcE17Gh93yFLge6limuyKa5igbSVw4MjC5DWP/J9ksLsLe9W3fJnRtUhWyb9Qo5OE9rmGpoOior42MDE2Y1VrY6pHxtCIlAsuP0kvPaOpEKp7jgjLonRZca/Rn5zXH2vVVNhXs2bk@jyye/s6gWjnrDTqJ3Q9GMSWFXBBemnLi2vsk3OPEnvVo@1tJz@sdWPvGPssy@/tcruB1oe2KExmqix8). Also, instead of pushing the value `-70` for both spaces twice, the second space in `"!ecapsetihW m'I ,"` is copied from the first with the Copy builtin to save a few bytes.
[Answer]
# [PHP](https://php.net/), ~~34~~ 32 bytes
```
Hi<?=substr($argn,3)?>, I'm PHP!
```
[Try it online!](https://tio.run/##PcrBCgIhFIXhfU9hEFQwrtpO4y5mVg30BLdyVEq9XbWhHj5DiVbn4@egxpx704p9SOcQabMCUq7ZbUXXsGFt2diPy9wK1MhEl0sBC2/j1KI4GpLXKp2colflBLEuMCSvCKyV9AuPJEM03vGZTPzXU4TLjR@fkqa7n7mkj8fyCpkfvg "PHP – Try It Online")
Input via `STDIN`, call with -F.
```
$ echo I'm a Stack-Overflow-er|php -F dad.php
Hi a Stack-Overflow-er, I'm PHP!
$ echo I'm hungry|php -F dad.php
Hi hungry, I'm PHP!
```
[Answer]
# IBM/Lotus Notes Formula Language, ~~61~~ 62 bytes
+1 because I hadn't noticed the `!` at the end of the output.
```
"Hi"+@Right(i;"I'm")+", I'm IBM/Lotus Notes Formula Language!"
```
Computed field formula that takes it's input from an editable field `i`. It would fail for "I'm an I'm" but since that wouldn't make any sense at all I'm assuming that it won't happen.
Shame that at 32 bytes, the name of the language is more than half the total length of the formula!
Screenshot below showing an example input and output:
[![enter image description here](https://i.stack.imgur.com/3O5Vh.png)](https://i.stack.imgur.com/3O5Vh.png)
[Answer]
# [Perl 5](https://www.perl.org/) `-p`, ~~31~~ 24 bytes
*Cut down based on clarifications from OP and a suggestion from @NahuelFouilleul.*
```
/ /;$_="Hi $', $` Perl!"
```
[Try it online!](https://tio.run/##K0gtyjH9/19fQd9aJd5WySNTQUVdR0ElQSEAKKGo9P@/p3quQklmUWrKv/yCksz8vOL/ur6megaGBv91CwA "Perl 5 – Try It Online")
[Answer]
# sed (`-r`), ~~31~~ ~~28~~ 25 bytes
-3 bytes thanks to Shaggy
-3 bytes because `-r` not needed in output
```
s/I'm(.*)/Hi\1, I'm sed!/
```
[TIO](https://tio.run/##K05N@f@/WN9TPVdDT0tT3yMzxlBHAchTKE5NUdAtUtT//x/ES1QoLE0tLsnMz9MtL8osSS36l18A4hX/1y0CAA)
[Answer]
### TeX, ~~48~~ ~~43~~ 30 bytes
Yes I *could* save a byte by writing `TeX` instead of `\TeX`, but it seems a shame.
```
\def\s[#1]#2#3#4{}\def~[#1]{Hi\s[]#1, I'm \TeX!}
```
**Update:** saved ~~3~~ 5 bytes thanks to [fixed pattern matching](https://codegolf.stackexchange.com/a/123916/9174).
```
\def\s[]I'm{}\def~[#1]{Hi\s[]#1, I'm \TeX!}
```
**Update:** -13 bytes (thanks, Jairo A. del Rio).
```
\def~I'm #1~{Hi #1, I'm \TeX!}
```
Test file
```
\def~I'm #1~{Hi #1, I'm \TeX!}
~I'm amazing~
~I'm hungry~
~I'm tired~
~I'm fat~
~I'm a programmer~
~I'm a question-writer~
~I'm a Stack-Overflow-er~
\bye
```
Output:
[![Hi amazing, I'm TeX! Hi hungry, I'm TeX! Hi tired, I'm TeX! Hi fat, I'm TeX! Hi a programmer, I'm TeX! Hi a question-writer, I'm TeX! Hi a Stack-Overflow-er, I'm TeX!](https://i.stack.imgur.com/yBBTE.png)](https://i.stack.imgur.com/yBBTE.png)
[Try it online!](http://tpcg.io/lu4hxRhY)
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 18 bytes
```
`Hi{s3}, I'm Japt!
```
When Japt's string compression library achieves a 0% compress rate...
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LW1S&code=YEhpe3MzfSwgSSdtIEphcHQh&input=WyJJJ20gYW1hemluZyIsCiJJJ20gdGlyZWQiLAoiSSdtIGh1bmdyeSIsCiJJJ20gZmF0IiwKIkknbSBhIHByb2dyYW1tZXIiLAoiSSdtIGEgcXVlc3Rpb24td3JpdGVyIiwKIkknbSBhIFN0YWNrLU92ZXJmbG93LWVyIl0)
Another 18-byte alternative:
```
`Hi{Ť}, {¯4}Japt!
```
[Answer]
# [Octave](https://www.gnu.org/software/octave/), 35 bytes
```
@(s)["Hi" s(4:end) ", I'm Octave!"]
```
[Try it online!](https://tio.run/##y08uSSxL/Z9mq6en999Bo1gzWskjU0mhWMPEKjUvRVNBSUfBUz1XwR@sTFEp9n@ahhJIIDE3sSozL11JkwsmoFBQlJ9elJibm1qkpPkfAA "Octave – Try It Online")
```
@(s) % Anonymous function taking a string input
[ ] % Concatenate everything inside the brackets
"Hi" ", I'm Octave!"] % The fixed parts of the output string
s(4:end) % The input, except "I'm"
% Returns the concatenated string
```
### 42 bytes:
I tried retrieving "Octave" somehow, without writing it out, since 6 chars is quite a lot compared to some of the other language names here. Unfortunately, I could only find `ver`, which outputs a struct with comma separated fields. [Takes way more than 6 bytes. :(](https://tio.run/##y08uSSxL/f8/JbO4QEO9LLXISl2TC8wBsjW5uAqKMvNK0jTUY/KAfD2/xNxUq5i8mDygIi6YALKimLxqmHBttWGtFVglitD//wA)
```
@(s)["Hi" s(4:end) ", I'm " {ver.Name}{1}]
```
[Try it online!](https://tio.run/##y08uSSxL/Z9mq6en999Bo1gzWskjU0mhWMPEKjUvRVNBSUfBUz1XQUmhuiy1SM8vMTe1ttqwNvZ/moYSSDwxN7EqMy9dSZMLJqBQUJSfXpSYm5tapKT5HwA "Octave – Try It Online")
[Answer]
# [Malbolge](https://github.com/TryItOnline/malbolge), 24477 bytes
Mors sum, Dominus Pestifer Mundi
*Hi, Dominus Pestifer Mundi, I'm dad!*
```
bP&A@?>=<;:9876543210/.-,+*)('&%$T"!~}|;]yxwvutslUSRQ.yx+i)J9edFb4`_^]\yxwRQ)(TSRQ]m!G0KJIyxFvDa%_@?"=<5:98765.-2+*/.-,+*)('&%$#"!~}|utyrqvutsrqjonmPkjihgfedc\DDYAA\>>Y;;V886L5322G//D,,G))>&&A##!7~5:{y7xvuu,10/.-,+*)('&%$#"yb}|{zyxwvutmVqSohmOOjihafeHcEa`YAA\[ZYRW:U7SLKP3NMLK-I,GFED&%%@?>=6;|9y70/4u210/o-n+k)"!gg$#"!x}`{zyxZvYtsrqSoRmlkjLhKfedcEaD_^]\>Z=XWVU7S6QPON0LKDI,GFEDCBA#?"=};438y6543s1r/o-&%*k('&%e#d!~}|^z]xwvuWsVqponPlOjihgIeHcba`B^A\[ZY;W:UTSR4PI2MLKJ,,AFE(&B;:?"~<}{zz165v3s+*/pn,mk)jh&ge#db~a_{^\xwvoXsrqpRnmfkjMKg`_GG\aDB^A?[><X;9U86R53ONM0KJC,+FEDC&A@?!!6||3876w4-tr*/.-&+*)('&%$e"!~}|utyxwvutWlkponmlOjchg`edGba`_XW\?ZYRQVOT7RQPINML/JIHAFEDC&A@?>!<;{98yw5.-ss*/pn,+lj(!~ff{"ca}`^z][wZXtWUqTRnQOkNLhgfIdcFaZ_^A\[Z<XW:U8SRQPOHML/JIHG*ED=%%:?>=~;:{876w43210/(-,+*)('h%$d"ca}|_z\rqYYnsVTpoRPledLLafIGcbE`BXW??TY<:V97S64P31M0.J-+G*(DCB%@?"=<;|98765.3210p.-n+$)i'h%${"!~}|{zyxwvuXVlkpSQmlOjLbafIGcbE`BXW??TY<:V97S64P31M0.J-+G*(D'%A@?"=<}:98y6543,1r/.o,+*)j'&%eez!~a|^tsx[YutWUqjinQOkjMhJ`_dGEaDB^A?[><X;9U86R53O20LKJ-HG*ED'BA@?>7~;:{y7x5.3210q.-n+*)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InsN6KUm4FzW38x7dzjFdW6J4NK4byXTebn8DQ30/Ffe2DXbqvTZzAE3Tb1J9nQ/1hP4ETSx3ubIiLHS5ar4Li7EC@acGvH4g3uoBxsJ8A4u7sMRx6O0dVbf3dH2NG@duLptzZ4Jt0xMXgr14mVL@KL1YfUM7oDnXd6/aXt6eQpWpsid/YLQCKicj4ee/kroe9r4m7KjQBxZzR1H2bj8PmYNQdLqKuJoWmN1OvT3q6@Mq5q/T9sB7P70DflM0CF0t3JpLesdulpj@6/fGzdRjMXJTWVh/Hz@KLT8e3vvDs5t3bRtcDKDb281O4/8w3G@/1jW6X3lty@Qf7t7D6dn0rG3K7w67SyqCw/pHfifZys/7NzOPkbHJ6ZewudtqIbPvClVA5c/GyltwrnC75jx/nfVD5eunXyt5EYtwV2/F/h7eax4W37PXkylOgs9iGXLyb@zhJ1GKbE@XxsbUUxD3x0V9YPj7KZqvzaajae95EYKmxE6m5qtXDt@AG1KY92NjJTjT3CZHp4STOfTkWc@1c3c9vzb3PvHkPJ1cm3KmLdmYQ/5pt9Lex5yu7nx5dK7AdqKu9yNGsvzrvu/K03ONFnGbV5z/6g82DzMb6@8TbcnsptvDt2567ea/tN7vJ1d3xTiUagYLw0b85e8W97weWoCTHz4DPAMZ5PC/lp/3Vn@Xvs8V88@RorntdnS9fpVrulYTr9tR/EqnlsqFgcB1o3NtZOx47XvA1G/16L9js7u2tXLgq0e@FO1@/2Otl86ue8vLlYqs1gHzda9wc5bA2XbmgehTX7053jt9yuexBKH2VSsFpSHhO3ZHaR@4deOTFRWplb7mb9w@it83wzHR6qpqaAC7mWlr8vv/6PAm9T2fXJo8nHlPt0sKD7262OX0zVfNU3eWxy5/Sd/HzrJ/vHb/mXg6fMhupVOseV/d/bR/l/vknOdn@v@5r9aUHrcF/AA "Malbolge – Try It Online")
[Answer]
# JavaScript, ~~38~~ 37 bytes
```
x=>`Hi${x.slice(3)}, I'm JavaScript!`
```
[Try it online!](https://tio.run/##y0osSyxOLsosKNEts/ifZvu/wtYuwSNTpbpCrzgnMzlVw1izVkfBUz1XwQuoMhisUjHhf3J@XnF@TqpeTn66RpqGEkg@MTexKjMvXUlT8z8A)
[Answer]
# [Rust](https://www.rust-lang.org/), 41 bytes
```
|x:&str|print!("Hi{}, I'm Rust!",&x[3..])
```
[Try it online!](https://tio.run/##KyotLvmflqeQm5iZp6FZzZWTWqKQpmCr8L@mwkqtuKSopqAoM69EUUPJI7O6VkfBUz1XIQioRVFJR60i2lhPL1bzvzVXmoaaEkgmozQvvahSSdOaq/Y/AA)
[Answer]
## Batch, 22 + 3 = 25 bytes
```
@echo Hi %*, %0 Batch!
```
+3 bytes for naming this file `I'm` (with the required `.bat` extension for Batch files). Invoke as `I'm hungry`, when it will echo `Hi hungry, I'm Batch!`.
[Answer]
# [Perl 6](https://github.com/nxadm/rakudo-pkg), ~~30 28~~ 27 bytes
```
{S/.../Hi/~", I'm Perl 6!"}
```
[Try it online!](https://tio.run/##NcqxDsIgFIXhvU9x7FA1Udi6uetm4hOQCHiTAvVCY7Cpr46KcfvynzNqHvriMjqDQ5kvUgghjyRf7Q6ntcP5s6NftUsxgbEZyOu4xdwAUWWIzjRL@f4URg6WlXOam1@4TzomCn7/YEr/6tSTvK1OxPpadZu85VxpVHoD "Perl 6 – Try It Online")
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~16~~ 15 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
Ḋa⁾Hi“'ṫṗḶ/÷!Ṗ»
```
A full program accepting a (Python formatted) string argument which prints the result.
**[Try it online!](https://tio.run/##ATkAxv9qZWxsef//4biKYeKBvkhp4oCcJ@G5q@G5l@G4ti/DtyHhuZbCu////0knbSBhIHByb2dyYW1tZXI "Jelly – Try It Online")**
### How?
```
Ḋa⁾Hi“'ṫṗḶ/÷!Ṗ» - Link: list of characters e.g. "I'm a programmer"
Ḋ - dequeue "'m a programmer"
⁾Hi - pair of characters "Hi"
a - logical AND (vectorises) "Hi a programmer"
“'ṫṗḶ/÷!Ṗ» - list of characters ", I'm Jelly!"
- - since this is a new leading constant chain the previous result
- is implicitly printed (with no trailing newline)
- program result is implicitly printed (again with no trailing newline)
```
Note: `Ḋ⁾Hio...` works too.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~20~~ 17 bytes
```
ṫ4;“'ṫṗḶ/÷!Ṗ»⁾Hi;
```
[Try it online!](https://tio.run/##AUIAvf9qZWxsef//4bmrNDvigJwn4bmr4bmX4bi2L8O3IeG5lsK74oG@SGk7////SSdtIGEgU3RhY2stb3ZlcmZsb3ctZXI "Jelly – Try It Online")
A monadic link taking the input as its argument and returning a Jelly string.
### Explanation
```
ṫ4 | everything from 4th character on
;“'ṫṗḶ/÷!Ṗ» | concatenate ", I’m Jelly!" to the end
⁾Hi; | concatenate "Hi" to the beginning
```
[Answer]
## VBA (Excel), 27 ~~28~~ bytes
```
?"Hi"Mid([A1],4)", I'm VBA!
```
Input goes in cell A1 of the Active Sheet in Excel, run code in the Immediate Window
Takes advantage of the fact that `"SomeString"SomeValue` and `SomeValue"SomeString"` will implicitly concatenate, and that omitting the third argument from the `MID` function will take all characters from the end of the input - turning it into a "dump initial characters" function
(-1 byte thanks to Shaggy, but +1 when OP confirmed that all answers should end with an exclamation mark)
(-1 byte thanks to Taylor Scott reminding me that the final double-quote was optional)
[Answer]
# [AWK](https://www.gnu.org/software/gawk/manual/gawk.html), 28 25 bytes
```
$1="Hi",$0=$0", I'm AWK!"
```
[Try it online!](https://tio.run/##SyzP/v9fxdBWySNTSUfFwFbFQElHwVM9V8Ex3FtR6f9/EDNRoaAoP70oMTc3tQgA "AWK – Try It Online")
This program modifies the contents of field "$1" and "$0" in a range pattern. Because no actions are specified after the pattern, the default action `{print $0}` is executed.
[Answer]
# [J](http://jsoftware.com/), 22 bytes
```
', I''m J!',~'Hi',3}.]
```
[Try it online!](https://tio.run/##y/qvpKeepmBrpaCuoKNgoGAFxLp6Cs5BPm7/1XUUPNXVcxW8FNV16tQ9MtV1jGv1Yv9rcqUmZ@QrpCmog2UTcxOrMvPS1VFFSzKLUlPQxBIVCory04sSc3NTi9T/AwA "J – Try It Online")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), ~~23~~ 21 bytes
Saved 2 bytes thanks to *Kevin Cruijssen*
```
',«#À„Hiš"05AB1E!"ªðý
```
[Try it online!](https://tio.run/##ATcAyP9vc2FiaWX//ycswqsjw4DigJ5IacWhIjA1QUIxRSEiwqrDsMO9//9JJ20gYSBwcm9ncmFtbWVy "05AB1E – Try It Online")
**Explanation**
```
',« # append ","
# # split on spaces
À # rotate left
„Hiš # prepend "Hi"
"05AB1E!"ª # append the language name
ðý # join on spaces
```
] |
[Question]
[
The title says it all. Your goal is to write a program that forms a w×h rectangle of characters that can be rotated and re-run to output the number of 90° Counter-Clockwise (CCW) rotations that have been done.
For example, if the 3×2 program
```
abc
def
```
solved the problem, it would initially output 0, and successive rotations of 90° CCW
```
cf fed da
be cba eb
ad fc
```
would output 1, 2, and 3 respectively.
Using comments makes this a trivial task is most languages. In Ruby for example, it can be done in a 7×7 rectangle:
```
###p###
### ###
###1###
p 0#2 p
###3###
### ###
###p###
```
The challenge is to do this **without** any sort of comments.
**Scoring**
Your score is w\*h, the area of your rectangle. Newlines are excluded. In other words, code-golf, newlines not counted.
The score for the Ruby example is 49 (though of course it is invalid since it has comments).
**Notes**
* Your code must really be rectangular with no missing characters at the end of lines.
* If you wish you may output other legal "mod 90°" values instead of 0 1 2 3. So 8 is fine instead of 0, and -1 is fine instead of 3, etc.
* The output may go to the console or into a file.
* Standard loopholes apply.
I hope this, my first question, really intrigues some people. Enjoy!
[Answer]
# APL (1x3 = 3)
```
5!3
```
This solution uses the extra rule that any output that is correct mod 4 works.
In APL, `x!y` is the number of way to choose `x` elements from `y`, commonly known as `binom(y,x)` or `choose(y,x)`. Let's check that each rotation gives the right answer.
**0 rotations**
```
5!3
```
There's no way to choose 5 elements from 3, so we get 0, which is automatically printed.
**1 CCW rotation**
```
3
!
5
```
APL happily evaluates each line, getting the number `3`, the operator `!`, and then the number `5`, printing only the last of these (`5`), which is 1 mod 4.
**2 CCW rotations**
```
3!5
```
This is `binom(5,3)`, which is `(5*4*3*2*1)/(3*2*1)/(2*1) = 10`, which is 2 mod 4.
**3 CCW rotations**
```
5
!
3
```
As before, only the last-evaluated value of `3` is printer.
I don't actually know APL, so please tell me if I got any of the explanation wrong. I found it by trial and error as the first language on [this site](http://compileonline.com/) that:
1. Automatically prints the result of an expression
2. Given multiple lines of expressions, only outputs the last one
3. Has no issue with an operator standing alone on a line
4. Takes operators infix
5. Has a single-character arithmetic binary operator that is asymmetric (aRb != bRa), and flexible enough to return a variety of numbers.
For (5), I went down the list of APL [dyadic functions](http://en.wikipedia.org/wiki/APL_syntax_and_symbols#dyadic_functions). My first candidate operation was the integer division `/` of C and Python 2, but APL division `÷` gives floats. Exponentiation is tempting, but fails because `a` and `a^b` have the same parity but are gotten by consecutive rotations (unless `b=0`, but then `b^a=0`). Boolean operators like `<` give `0` and `1` 180 degrees apart, which doesn't work. Finally, I found the binomial operator `!` and tried numbers until I got some that work.
Thanks to Quincunx for his confidence that there exists a smaller solution than 2x2.
[Answer]
## Ruby, 7×9 (63)
```
30;p
0||p=p
0|0;p;p
;p;p|p;
p=p ||0
;p p;
2||p =p
00;1
p
```
A bit longer than the other solution, but at least this solution doesn't depend on any implicit printing or rule abuse. For all four rotations, the full code is parsed and other than some short-circuiting, all of it is executed. Surprisingly, there's absolutely no symmetry in the code
This solution relies on the fact that it's still possible to call the `p` function (which is used to print the numbers) even if a variable with the same name has already been defined. For example, something like `p p` calls the function `p` with the variable `p` as argument (thus, printing the value of `p`).
Explanation for some of the common expressions used in the code:
* `p`: As mentioned above, this is either a function call or a variable. When the variable is not defined, this calls the function `p` without arguments, which does nothing and returns `nil`.
* `p p`: Prints the variable `p`.
* `p|x`: When `p` is the function, this is identical to `nil|x`, which returns true/false depending on the value of `x`. If `p` is an integer, it's bitwise or. Either way, this statement has no side effect.
* `p=p||x`: Effectively the same as `p||=x` (conditional assignment) with the advantage of being syntactically valid and a no-op when reversed.
### Symmetric version (9×10 = 90)
```
p
0 * 0
00100
0||2* p
p *0||0
00300
0 * 0
p
```
This is the shortest symmetric solution (C2 when ignoring the numbers to print) I could come up with.
### Test script
Here's a test script to verify the code above (the `#` at the line ends have been added so that the whitespace doesn't get stripped and are removed before execution):
```
rotate=->s{s.split($/).map{|i|i.chars.reverse}.transpose.map(&:join).join($/)}
s=<<EOD.gsub(?#,"")
30;p #
0||p=p #
0|0;p;p#
;p;p|p;#
p=p ||0#
;p p;#
2||p =p#
00;1 #
p #
EOD
puts ">>> 0°"
eval s
puts ">>> 90°"
eval rotate[s]
puts ">>> 180°"
eval rotate[rotate[s]]
puts ">>> 270°"
eval rotate[rotate[rotate[s]]]
```
[Answer]
# Python - 23 x 23 = 529
Ok, this question has already a winner, but there is no Python solution, yet. So I thought about it - heavily! - and found a way to make the bulky `print` command working in any direction without producing errors when parsed from one of the other directions.
The breakthrough was the following line:
```
'"\'';forward_code;"';backward_code;""\'"''
```
While the `forward_code` is executed, the `backward_code` is part of a string and thus not printed. This is exactly the other way around when reading backwards.
So combined with two more directions and fine-tuned to get all quotes matching correctly I end up with the following solution:
```
''"''""''"''"''"'"''""'
" "" "
" \\ "
'"\'';print 1;"'""\'"''
'"\''"';3 tnirp;""\'"''
" ;"" "
" p' "
' r; '
' i2 '
" n "
" tt "
' n '
' 4i '
" ;r .-=<>=-. "
' \"p /__----__\ '
" ';' |/ (')(') \| "
" "" \ __ / "
' "" .`--__--`. '
" \\ / :| \ "
' '' (_) :| (_) '
' "" |___:|____| '
" '' |_________| "
''"''""''"''"''"'"''""'
```
**Edit:** I found a way to deal with all that whitespace. ;)
[Answer]
# GolfScript, 4 (2x2)
```
43
12
```
Prints `4312` which is `0` (mod 4). The rotations print `3241` (1 mod 4), `2134` (2 mod 4), and `1423` (3 mod 4).
Prompted by:
>
> If you wish you may output other legal "mod 90°" values instead of 0 1 2 3. So 8 is fine instead of 0, and -1 is fine instead of 3, etc.
>
>
>
There are actually many sets of numbers for which this works. I found these with this Python program:
```
def f(a,b,c,d):
return int("%i%i%i%i"%(a,b,c,d))
for a in range(10):
for b in range(10):
for c in range(10):
for d in range(10):
candidate = f(a,b,c,d) % 4 == 0
candidate &= f(b,d,a,c) % 4 == 1
candidate &= f(d,c,b,a) % 4 == 2
candidate &= f(c,a,d,b) % 4 == 3
if candidate:
print("%i, %i, %i, %i"%(a,b,c,d))
```
Although the program outputs `0`s (which probably wouldn't work), the valid solutions are of the form
```
ab
cd
```
Where `a∈{4,8}`, `b∈{3,7}`, `c∈{1,5,9}`, `d∈{2,6}`. IE `(a,b,c,d)∈{4,8}×{3,7}×{1,5,9}×{2,6}` which is 24 solutions.
[Answer]
# BASIC, 64
Won't win, but here it is anyway. (Tested in [Chipmunk Basic](http://www.nicholson.com/rhn/basic/))
```
?0:END:?
:::::::1
D:::::::
N::::::E
E::::::N
:::::::D
3:::::::
?:DNE:2?
```
Note: `?` is shorthand for `PRINT` in various dialects of BASIC. Although there are lots of syntax errors in the code, the `END` statement in the first line prevents them from being seen by the interpreter.
[Answer]
# [Pyth](https://github.com/isaacg1/pyth/blob/master/pyth.py), 9 characters (3x3)
```
0 1
3 2
```
In pyth, everything is printed by default, unless it is preceded by a space. Lines after the first line are for user input, and are not evaluated in this program.
Another way to get 9 characters:
```
"0"
3 1
"2"
```
---
# [Pyth 1.0.5](https://github.com/isaacg1/pyth/blob/0ca956532f9e720f208da6c419cc2ff8e69576d3/pyth.py), 4 characters
While recent changes to pyth have made 2 digit numbers harder to generate (A change that I am considering reverting), older versions of Pyth have easy two digit number generation, which, combined with the implicit printing and the fact that all lines but the first are ignored, gives the following solution:
```
32
41
```
Prints 32,21,14,43.
[Answer]
# Befunge, 16
```
0.@1
@@@.
.@@@
[[email protected]](/cdn-cgi/l/email-protection)
```
**Explanation:** Digits from `0` to `9` push the corresponding number onto the stack, `.` pops a value from the stack and prints it as an integer, and `@` ends the program.
(tested [here](http://www.compileonline.com/compile_befunge_online.php))
[Answer]
# Piet, 49
![A Piet Program](https://i.stack.imgur.com/qIMtF.png)
I made a point only to use yellow and red colors, and to try and make it roughly symmetrical. When rotated, it prints 0, 1, 2 or 3. Exiting the program in Piet is hard, and takes up around half the space in the picture, unfortunately.
[Answer]
# [GNU dc](http://www.gnu.org/software/bc/manual/dc-1.05/), 6 (3x2)
I think this is the shortest answer not to require the "mod 90°" rule-relaxation:
```
3z1
0p2
```
Outputs `0`, `1`, `2` or `3` for each rotation.
For the `0`, `2` and `3` rotations, the `p` simply pops and prints the last number literal to have been pushed to the stack. For the `1` rotation, the `z` pushes the current stack depth (1) to the stack, then the `p` pops and prints it.
[Answer]
# GolfScript, 9 (3x3)
```
0}1
} }
3}2
```
Sort of abusing the rules. The `}` happens to end the program if there is no matching `{`, and the contents of the stack are printed at program end.
[Answer]
## JavaScript, 4
```
03
12
```
When you execute this program (or a rotation of this program) in a javaScript console, only the last line is evaluated and echoed in the console.
So:
```
12 modulo 4 == 0
01 modulo 4 == 1
30 modulo 4 == 2
23 modulo 4 == 3
```
Here are all the similar 2x2 programs that work too:
```
03
12
03
16
03
52
03
56
03
92
03
96
07
12
07
16
07
52
07
56
07
92
07
96
43
12
43
16
43
52
43
56
43
92
43
96
47
12
47
16
47
52
47
56
47
92
47
96
83
12
83
16
83
52
83
56
83
92
83
96
87
12
87
16
87
52
87
56
87
92
87
96
```
In other terms,
```
ab
cd
```
where a is in [0,4,8], b is in [3,7], c is in [1,5,9], and d is in [2,6]
[Answer]
# CJam / GolfScript - 3\*3
```
2;3
;7;
1;0
```
The semicolon pops the previous number, thus only the bottom right corner is printed.
[Answer]
# [Aheui](http://esolangs.org/wiki/Aheui), 8
```
바몽희뷸
뷷희몽반
```
Since Aheui does not have a letter that pushes 1 onto the stack, I decided to print 0, 5, 2, and 3.
Explanation: 바 and 반 push 0 and 2, respectively, onto the stack and moves the cursor right by one character. 뷸 and 뷷 push 5 and 3, respectively, onto the stack and moves the cursor down by two characters. 몽 pops and prints the number in the stack and moves the cursor up by one character. 희 terminates the program.
[Answer]
## JavaScript
(Entered in browser console, shell or another REPL, so result is printed)
```
1+2
-3-
4+5
```
Should work for any other language with expressions, non-significant newlines and automatic printing of the result.
[Answer]
# Matlab/Octave - ~~144~~ 100
## Golfed: 10 x 10 = 100
```
....d.....
....i.....
....s.....
... p2 ...
disp 1...
...3 psid
... 4p ...
.....s....
.....i....
.....d....
```
## Alternative solution: 15 x 15 = 225
```
.......d.......
.......i.......
.......s.......
... p ...
... ...
... 4 ...
... . ...
disp 1...3 psid
... . ...
... 2 ...
... ...
... p ...
.......s.......
.......i.......
.......d.......
```
[Answer]
## Perl 5x7 (35)
```
1+p+t+1
-print+
1+i+i+1
+tnirp+
1+t+p+1
```
A bit late to the party. The solitary `-` determines which number is printed.
[Answer]
# Befunge, 12 (6x2)
I Managed to come up with a slight improvement on the existing Befunge answer by making the most of Befunge's two-dimensional nature and having the code path run vertically in two of the orientations.
```
[[email protected]](/cdn-cgi/l/email-protection)
[[email protected]](/cdn-cgi/l/email-protection)
```
Try it online: [Starting 0](http://befunge.tryitonline.net/#code=MC5ALjF2CnYzLkAuMg&input=),
[Rotation 1](http://befunge.tryitonline.net/#code=djIKMS4KLkAKQC4KLjMKMHY&input=),
[Rotation 2](http://befunge.tryitonline.net/#code=Mi5ALjN2CnYxLkAuMA&input=),
[Rotation 3](http://befunge.tryitonline.net/#code=djAKMy4KLkAKQC4KLjEKMnY&input=).
[Answer]
# JavaScript, 3
```
2
1
4
```
It works... in base 7.
Base 9 version:
```
2
7
0
```
---
**Explanation**
When run interactively, e.g. from a debugging console, the value of the last statement/expression will be output.
*47* = *410* ≣ *0* (mod *4*)
*4127* = *20510* ≣ *1* (mod *4*)
*27* = *210* ≣ *2* (mod *4*)
*2147* = *10910* ≣ *3* (mod *4*)
Similar solutions could be found for any odd base.
[Answer]
# Marbelous, 7\*14 = 98
```
.. \/ \/ .. ..
.. 31 \\ 32 \/
\/ \\ \/ \\ \/
\/ 30 \\ 33 ..
.. .. \/ \/ ..
```
[Answer]
# [brainfuck](https://github.com/TryItOnline/brainfuck), 12x10 = 120
Outputs 0, 1, 2, and 3, respectively.
```
++ >
++++++++++++
++++++++++++
++++++++++++
++++++++++++
.+++++
++++++++++++
++++++ +++++
++++++ +++++
++++++ +++++
```
[Try it online!](https://tio.run/##SypKzMxLK03O/v9fW1sBBuy4tJEAsRyIXj2cyhQIcP7/BwA "brainfuck – Try It Online")
[One turn](https://tio.run/##SypKzMxLK03O/v/fThsGuBRIZeppKygoQJgKCFF8TG2szP//AQ "brainfuck – Try It Online")
[Two turns](https://tio.run/##SypKzMxLK03O/v9fGwQUwKQ2FwGONjJHTwEMsMgQ5tgpwACQ8/8/AA "brainfuck – Try It Online")
[Three turns](https://tio.run/##SypKzMxLK03O/v9fGwgUQIQ2FzamAmGmgoKCth5CVJtUph3X//8A "brainfuck – Try It Online")
[Answer]
# [Argh!/Aargh!](http://www.sha-bang.de/12_eso/Argh-Spec.txt) (4\*4=16)
What was that about using the right tool for the job? There are no comments (in the language in general).
The entire family of programs (generated in J: `((|.@:|:) ^: (i. 4)) >'hpqh';'q01p';'p32q';'hqph'` or `((|.@:|:) ^: (i. 4)) 4 4 $ 'hpqhq01pp32qhqph'`)
```
hpqh
q01p
p32q
hqph
```
rotated once:
```
hpqh
q12p
p03q
hqph
```
rotated twice:
```
hpqh
q23p
p10q
hqph
```
rotated three times:
```
hpqh
q30p
p21q
hqph
```
To explain this, it might be best to look at an "indented" version (That also works in all rotations):
```
hhpq h
0 h
q 1p
p3 q
h 2
h qphh
```
This version shows that the program consists of 4 separate parts, one for each individual rotation.
* `h` - set control flow left
* `p` - print item in data/code raster below it
* `q` - quit the program
[Answer]
# [Floater](http://esolangs.org/wiki/Floater) - 9×5=45
![enter image description here](https://i.stack.imgur.com/V0Pb8.png)
Prints 4, 1, 2, or 3 to console.
Note that 'Black' is a valid instruction (NOP), and is syntactic. Without it, it can't find the starting position. Thus, all positions in the rectangle are occupied.
[Answer]
# [Triangular](https://github.com/aaronryank/triangular), 2x3 => 6
```
%%3
i%i
```
[Try it online!](https://tio.run/##KynKTMxLL81JLPr/X1XVmCtTNfP/fwA "Triangular – Try It Online")
A "rectangular triangular program" - we certainly do live in a society.
The base version here prints the top value of the stack (initially 0), then the other two prints are missed due to triangular's execution order.
**Rotation 1**
```
i%
%%
i3
```
Increments the top value to 1, prints, misses the other two print commands.
**Rotation 2**
```
i%i
3%%
```
Increments twice, hits the last print command.
**Rotation 3**
```
3i
%%
%i
```
Pushes 3 onto the stack, hits a print statement, misses the other two.
[Answer]
# [Pip](https://github.com/dloscutoff/pip), 2x2 = 4
```
tv
oi
```
[Try it online!](https://tio.run/##K8gs@P@/pIwrP/P/fwA "Pip – Try It Online")
All four letters are preinitialized variables; whichever one comes last in the program is autoprinted.
* No rotation: `i = 0`
* One rotation: `o = 1`
* Two rotations: `t = 10`
* Three rotations: `v = -1`
[Answer]
# Python, 18x18 = 324
Uses escaping and mixed quotation marks to change how each string is parsed after rotation. Triple quotes allow the literals to span multiple lines and take up less space.
```
"""p ' "
r ' "
i ' "
n'\""",)2(tnirp
'''t '
( \
3 "
) "
, "
' ,
' )
' 1
\ (
" t"""
print(0),'''\"n
' " i
' " r
' " p'''
```
Test code (needs to be cleaned up) :
```
with open('./rotpy.py','r') as fh:
l=list(fh)
ll=max(len(x)for x in l)
l=[x[:-1]+' '*(ll-len(x)) for x in l]
def r(l):
return list(''.join(reversed(z)) for z in zip(*l))
for i in range(4):
exec('\n'+'\n'.join(l))
l=r(l)
```
[Answer]
# Element, 2x3 = 6
```
1*
`2
3
```
This is an improvement over the 3x3 naive solution, which has a ``` in the middle with a number on each side. The 0 case, shown above, is the most interesting, since the `*` is used to multiply the 3 by nothing to get 0. Other than that, it's not that complicated.
If you find the space awkward, you can replace it with pretty much any other character, excluding `[]{}`_`.
For reference, here are the other three rotations:
```
case 1
*2
1`3
case 2
3
2`
*1
case 3
3`1
2*
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 3 \* 1 = 3 bytes
```
5zB
```
Try it online: [as-is](https://ethproductions.github.io/japt/?v=2.0a0&code=NXpC&input=),
[rotated once](https://ethproductions.github.io/japt/?v=2.0a0&code=Qgp6CjU=&input=),
[twice](https://ethproductions.github.io/japt/?v=2.0a0&code=Qno1&input=),
[thrice](https://ethproductions.github.io/japt/?v=2.0a0&code=NQp6CkI=&input=).
Outputs 0, 5, 2, 11 respectively.
The variable `B` holds the value 11, and `Number.z(other)` is floor division (everyone looked for apparently :p). For multi-line code, the last line is passed to output, which is simply a constant here.
---
## 2 \* 2 = 4 bytes
```
2J
1T
```
Try it online: [as-is](https://ethproductions.github.io/japt/?v=2.0a0&code=MkoKMVQ=&input=),
[rotated once](https://ethproductions.github.io/japt/?v=2.0a0&code=SlQKMjE=&input=),
[twice](https://ethproductions.github.io/japt/?v=2.0a0&code=VDEKSjI=&input=),
[thrice](https://ethproductions.github.io/japt/?v=2.0a0&code=MTIKVEo=&input=).
Outputs 0, 21, 2, -1 respectively.
`T` holds 0, and `J` holds -1.
The trick is that, if two literals or variables are put side-by-side, a comma is inserted and the output is just the last one.
[2 \* 2 JS solution](https://codegolf.stackexchange.com/a/33182/78410) works in Japt too.
[Answer]
# [MAWP](https://esolangs.org/wiki/MAWP), 2x2 = 4
```
0:
23
```
-2 characters from Bubbler.
The position of the `:` operator determines when things are output, so we can abuse that and position the numbers around it.
Bubbler's modification pops the existing 1 from the stack, saving two bytes.
[Try it!](https://8dion8.github.io/MAWP/?code=0%3A%0A23%0A%0A%25%25%20stack%20cleanup%0A%0A%3A3%0A02%0A%0A32%0A%3A0%0A%0A20%0A3%3A&input=)
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 4 (2x2) [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
YX
3¾
```
To-the-point approach.
[Try it online](https://tio.run/##yy9OTMpM/f8/MoLL@NC@//8B) or [verify all four rotations](https://tio.run/##yy9OTMpM/a/0PzKCy/jQvv9Kh7YdnmXixqWgFFCUn16UmGuloKRjC@T6l5YUlJYAefYuemE6mhf2Bh/admjh4R2H13od2n1om/1/AA).
**Explanation:**
* `Y` is a variable with default value \$2\$
* `X` is a variable with default value \$1\$
* `¾` is a counter variable with default value \$0\$
So in all four rotations they are all three pushed to the stack, and then output the last integer on the stack is output implicitly as result.
An alternative 2x2 is a port of the [*@DLosc*'s Pip answer](https://codegolf.stackexchange.com/a/209398/52210), where `T` = \$10\$ and `®` = \$-1\$:
```
TX
®¾
```
[Try it online](https://tio.run/##yy9OTMpM/f8/JILr0LpD@/7/BwA) or [verify all four rotations](https://tio.run/##yy9OTMpM/a/0PySC69C6Q/v@Kx3adniWiRuXglJAUX56UWKulYKSji2Q619aUlBaAuTZu@iFudgrKWjk5qfomoAETFTt1TV1NC/sDT607dDCwzsOr/U6tPvQNvv/AA).
[Answer]
# [Zsh](https://www.zsh.org/), 36 (6x6)
```
<<<0
3 <
< <
< <
< 1
2<<<
```
[Try it online!](https://tio.run/##qyrO@P9fwcbGxkCBy1gBCGy4bDApQy4FI6Aahf//AQ "Zsh – Try It Online").
#### Alternative, (10x10):
```
printf 0 p
r
3 i
n
f t
t f
n
i 1
r
p 2 ftnirp
```
Exploits the fact that `printf` only prints the first word, if there are no quotes.
] |
[Question]
[
Every digital clock contains a small creature that has to advance the time every minute [citation needed]. Due to the popularty of digital clocks and the popularity of catching them in the wild, they are nearly extinct in nature which is why in this challenge we try to automate this task:
Given your string of a given time in the 24h format, the task is to advance this time by one minute.
## Details
* Both the input and output must be strings.
* The time is given as a five character string.
* Both the hour and the minutes are given as a two digit number: if the number is below 10, there will be a leading zero.
* The two numbers are separated by a colon.
## Examples
```
Input Output
00:00 00:01
00:02 00:03
05:55 05:56
09:59 10:00
12:49 12:50
20:05 20:06
23:59 00:00
```
[Answer]
# Microsoft Excel, 9 bytes
```
=A1+"0:1"
```
Input is in cell `A1`.
Tested on my Mac (Excel for Mac version 16.53) and online at Office.com.
[![enter image description here](https://i.stack.imgur.com/0xtdx.png)](https://i.stack.imgur.com/0xtdx.png)
[Answer]
# [Bash](https://www.gnu.org/software/bash/) + [coreutils date](https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html), 17
```
date -d$1+min +%R
```
[Try it online!](https://tio.run/##NYlLCoAwDAX3OUUWupJCrGbRegtvUE1AwQ/YgsevVvAtZmDeFOKS72XdFC8NgkljmkPUAfCdnJ@iJjQGq//MEpKikapt9vXAph6znIdmIk8EhRaIPTOQ8@ygtb53YN/OYLtSHg "Bash – Try It Online")
This assumes everything is in UTC (such as how TIO appears to be set up). If this is not OK, then 4 bytes must be added:
---
# [Bash](https://www.gnu.org/software/bash/) + [coreutils date](https://www.gnu.org/software/coreutils/manual/html_node/date-invocation.html), 21
```
date -ud$1UTC+min +%R
```
[Try it online!](https://tio.run/##S0oszvhfnpGZk6pQlJqYolCSWlySnFicas2lAAQp@WCqOLVEQVdXQQUm@T8lsSRVQbc0RcUwNMRZOzczT0FbNeh/Sn5e6n8DAysDAy4QacRlYGplasplYGllasllaGRlYsllBBQ35TIyBokAAA "Bash – Try It Online")
[Answer]
# x86-16 machine code, ~~61~~ ~~55~~ 54 bytes
```
00000000: be82 008b fe8b d6ad 86c4 9346 56ad 86c4 ...........FV...
00000010: 4037 0430 3d30 367c 1293 4037 0430 3d34 @7.0=06|[[email protected]](/cdn-cgi/l/email-protection)=4
00000020: 327c 03b8 3030 86c4 abb0 305f 86c4 abb8 2|..00....0_....
00000030: 2409 aacd 21c3 $...!.
```
Listing:
```
BE 0082 MOV SI, 82H ; SI point to DOS command line tail
8B FE MOV DI, SI ; save pointer to beginning of string for later
8B D6 MOV DX, SI ; save pointer to beginning of string for output
AD LODSW ; load hours digits into AX
86 C4 XCHG AL, AH ; endian convert
93 XCHG AX, BX ; save hours in BX
46 INC SI ; skip colon
56 PUSH SI ; save string offset to minutes
AD LODSW ; load minutes digits into AX
86 C4 XCHG AL, AH ; endian convert
40 INC AX ; add one minute
37 AAA ; BCD Adjust After Addition!
04 30 ADD AL, '0' ; ASCII fix low digit
3D 3630 CMP AX, '60' ; is minutes wrap around?
7C 13 JL NO_CARRY_HOUR ; if not, skip hours
93 XCHG AX, BX ; move hours into AX
40 INC AX ; increment hours
37 AAA ; BCD Adjust After Addition!
04 30 ADD AL, '0' ; ASCII fix low digit
3D 3234 CMP AX, '24' ; rolled over to 24 hours?
7C 03 JL NO_CARRY_DAY ; if not, skip to convert
B8 3030 MOV AX, '00' ; reset hours to '00'
NO_CARRY_DAY:
86 C4 XCHG AL, AH ; endian convert
AB STOSW ; write hours string
B0 30 MOV AL, '0' ; reset minutes to '00'
NO_CARRY_HOUR:
5F POP DI ; minutes string offset to DI
86 C4 XCHG AL, AH ; endian convert
AB STOSW ; write minutes to output string
B8 0924 MOV AX, 0924H ; AL = '$', AH = write string function
AA STOSB ; write DOS string terminator to end of string
CD 21 INT 21H ; write output to console
C3 RET ; return to DOS
```
Thought it would be a more straightforward use of BCD operations, though it gave me a use for the `AAA` instruction so there's that.
Standalone DOS executable. Input via command line, output to console.
[![enter image description here](https://i.stack.imgur.com/Rh9TI.png)](https://i.stack.imgur.com/Rh9TI.png)
### OR...
**21 bytes** if I could take I/O as a packed BCD hex word (`12:59` == `0x1259`), and get to use `AAA`'s bastard step-sibling `DAA`!
```
40 INC AX ; increment the time
27 DAA ; decimal adjust packed BCD
3C 60 CMP AL, 60H ; did minutes reach 60?
7C 0E JL DONE ; if not, do nothing else
32 C0 XOR AL, AL ; otherwise, reset minutes to 0
86 E0 XCHG AH, AL ; swap hours and minutes in AL
40 INC AX ; increment the hours
27 DAA ; decimal adjust packed BCD
3C 24 CMP AL, 24H ; did hours reach 24?
86 E0 XCHG AH, AL ; real quick, swap hours and minutes back
7C 02 JL DONE ; if less than 24, do nothing else
32 E4 XOR AH, AH ; otherwise, reset hour to 0
DONE:
C3 RET
```
[Answer]
# [PHP](https://php.net/), 35 bytes
```
<?=date("H:i",strtotime($argn)+60);
```
[Try it online!](https://tio.run/##K8go@P/fxt42JbEkVUPJwypTSae4pKgkvyQzN1VDJbEoPU9T28xA0/r/fwMDKwODf/kFJZn5ecX/dd0A)
[Answer]
# [Python 2](https://docs.python.org/2/), 68 bytes
```
def f(s):v=int(s[:2])*60-~int(s[3:]);print'%02d:%02d'%(v/60%24,v%60)
```
[Try it online!](https://tio.run/##JcxBCsIwEAXQvafoJiQjitNpE@iIJ5Hu2tKAxGBjxI1XjxndzOP/DxPfab0HKmWal2YxG3C@@JDMdmUaYe/w@PnHjkc4x0cNWiFNLEcrk08OFfWHrBxCea3@Njct108@xGcyAEUjMqLe/STRsrXiwHaotsS9SHWXnjrpvw "Python 2 – Try It Online")
# [Python 3.8](https://docs.python.org/3.8/), ~~65~~ 64 bytes
*-1 byte thanks to @Matthew Willcockson*
```
lambda s:f"{(v:=int(s[:2])*60-~int(s[3:]))//60%24:02}:{v%60:02}"
```
[Try it online!](https://tio.run/##JYpRC4IwFEbf9ytEELYgvN65kRf8JeWDUUNB19BlhNRfXxu9fJzvcNzbDw8rT24Jpr2EqZ@vtz5byeQ736gdrefrmbATBw3H7/9K6oQoSw0F1gT4oX0rNCTKw2sYp3tWUeaWFBs@Wvf0XAgRICbA0iIDRUoxaEg1rEKqG4bRK4Yymh8 "Python 3.8 (pre-release) – Try It Online")
[Answer]
# [brainfuck](https://github.com/TryItOnline/brainfuck), 216 bytes
```
,++++++++>,>>,>+>,++++>,+<<<[-<<-<-<+>>>>>>->-<<<]>>>[<<-]<<[>>----------<+[<-]<[->------<<<+<+[++++++[>-]>[<<[>>-]>>[<----<-->>->>]<]<<------>]>[<----------<+>>->]]<]<<<[->+>+>>+>>+>+<<<<<<<]>--------.>.>>.>>----.>.
```
[Try it online!](https://tio.run/##PU5BCgJBDHtQt3tQPLiUfKT0oIIgCx4E3z8mM7O2hbZpEnr/3F7v5/ext7bYDCxgsY3FIiI9wpmGHg7uUZySePFO7B9hKTB9YqQasWGe8JJKipK@M9xligp6DRFq3g5PEaoT5GzMUXov@jcHd8UK1ZxbO523y/UH "brainfuck – Try It Online")
The character `:` is the ASCII character after `9`, so the program uses the one provided to it in the input to check if digits need to be carried, allowing it to avoid creating any large constants.
```
[
Read in the string and set up for the comparisons later. Increment minutes.
Subtract ':' from all characters and copy it elsewhere.
Layout: Cell # -1 0 1 2 3 4 5 6
Cell contents ':' A B _ _ 1 C D
The central 0 and 1 cells allow all of the conditionals to land near each other,
reducing the amount of travel needed in the worst case.
]
,++++++++>,>>,>+>,++++>,+
<<<[-<<-<-<+>>>>>>->-<<<]
# If minutes are 10: Carry
>>>[<<-]<<[
>>----------<+
# If tenminutes are 6: Carry
[<-]<[
->------<<<+<+
# If hours are not 10: Check for 24:00 rollover
[
++++++
[>-]>[
<<[>>-]>>[
<----<--
>>->>]
<]
<<------
# If hours are 10: Carry
>]>[
<----------<+
>>->]
]
<]
# Undo modifications from the start and print
<<<[->+>+>>+>>+>+<<<<<<<]
>--------.>.>>.>>----.>.
```
[Answer]
# [Java (JDK)](http://jdk.java.net/), ~~83~~ 49 bytes
```
i->java.time.LocalTime.parse(i).plusMinutes(1)+""
```
[Try it online!](https://tio.run/##nZA/T8MwEMX3fopTpkSobgpioBXslehUNsRwda7hgmNH8TkSQvnswSnpH0a4xfLzPb3fc4UdzqviY9AGvYctsoWv2QziLBag39GWhHtDwFaoPaCm41vTcodypcIm2mCanbRsS8CiQ6vphWuCdNIkXrL1cbP/iWnC3rAGLyjx6BwXUI8Uk@P1DbAtfXaimsg8SWjOwga8M0HYWXg8i5ft0pkDFaBdQQPPn6rYWY0g6tlpNCOfarD1lHKmGhP8lm0Q8ukyu0mSYX0J3n16oVq5ICr@gBVj01OwumqbJst8ledJNjX9k/X2bnX/8D9r/iu1n/XDNw "Java (JDK) – Try It Online")
Huge cut-off thanks to Olivier Grégoire
[Answer]
# [MATL](https://github.com/lmendo/MATL), 12 bytes
```
YOl13L/+15XO
```
Beaten by Excel... :-D
[Try it online!](https://tio.run/##y00syfn/P9I/x9DYR1/b0DTC//9/dQNTK1NTdQA) Or [verify all test cases](https://tio.run/##y00syfmf8D/SP8fQ2Edf29A0wv@/S8h/dQMDKwMDdS4wbQSiTa1MTUG0pZWpJZA2NLIyAdFGQHmQuJExSBwA).
### Explanation
```
YO % Implicit input. Convert to date number. The integer part represents date,
% the fractional part represents time of day
l % Push 1
13L % Push 1440 (predefined literal)
/ % Divide. Gives 1/1440, which is 1 minute expressed as fraction of a day
+ % Add
15XO % Convert to date string with format 15, which is 'HH:MM'
% Implicit display
```
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), ~~ 20 ~~ 19 [bytes](https://github.com/DennisMitchell/jelly)
```
ØDṗ2ḣ“ð<‘Œpj€”:ðṙiḢ
```
A monadic Link that accepts a list of characters and yields a list of characters.
**[Try it online!](https://tio.run/##ATYAyf9qZWxsef//w5hE4bmXMuG4o@KAnMOwPOKAmMWScGrigqzigJ06w7DhuZlp4bii////MjM6NTk "Jelly – Try It Online")**
### How?
Surprisingly tricky to get anything below 22 in Jelly, no time-based functionality while parsing, evaluating and then adding leading zeros where needed is expensive, so I went with constructing all strings as a list and getting the next string cyclically.
```
ØDṗ2ḣ“ð<‘Œpj€”:ðṙiḢ - Link: characters, S
√òD - digit characters -> "0123456789"
·πó2 - Cartesian power 2 -> ["00",...,"99"]
“ð<‘ - list of code-page indices -> [24, 60]
·∏£ - head to -> [["00",..."23"],["00",...,"59"]]
Œp - Cartesan product -> [["00","00"],...,["23","59"]]
j€”: - join each with colons -> ["00:00",...,"23:59"]
√∞ - start a new dyadic chain, f(Times, S)
i - first 1-indexed index of S in Times
·πô - rotate Times left by that
·∏¢ - head
```
[Answer]
**Powershell**, **82** or **153** bytes
`get-date ((get-date ($Time=read-host "Enter the time")).addminutes(1)) -uformat %R`
Or, if you want to show the input as well as the output;
```
do {$Time=read-host "Enter the time"
write-host -nonewline $time `t
get-date ((get-date $Time).addminutes(1)) -uformat %R
} while ($Time)
```
[Answer]
# [Retina 0.8.2](https://github.com/m-ender/retina/wiki/The-Language/a950ad7d925ec9316e3e2fb2cf5d49fd15d23e3d), 32 bytes
```
T`_d`d0`.9?(:59)?$
T`d`0`(24)?:6
```
[Try it online!](https://tio.run/##FcohDoAwDEZh33NAshnyU1aS1UxygXlKMgQGQbh/GeaJL@853@s@fAybebW9WYNNuQSVHMtA1ZrBAqdYdHUHFKC/TBAVIeR@0syaMnF3IV66fA "Retina 0.8.2 – Try It Online") Link includes test cases. Explanation:
```
T`_d`d0`.9?(:59)?$
```
Increment all the digits in `09:59`, `19:59`, `X:59`, `:X9` or just the last digit if nothing else matches. Incrementing `9` automatically rolls over to `0`.
```
T`d`0`(24)?:6
```
Zero out `24:60` and the seconds of `X:60` (X will already have been incremented above so it is correct).
[Answer]
# JavaScript (Chrome / Edge / Node), 50 bytes
Very hackish.
```
s=>(new Date(+new Date([1,s])+6e4)+s).slice(16,21)
```
[Try it online!](https://tio.run/##bc9BC8IgGMbxe59CdlJcm7opTFinvkV0EHOxEI0c9fFtRluR3Z7D7@XPe1F3FfRtvE5b508mDn0M/Q468wB7NRmI13WgZTgiLEyLcEBVsKM2kIqSURS1d8FbU1l/hgMsCJGEFAiBugZp080fwL5AkwEuOV/AvEUGOsm7N6Ap9wsok@0KmOQZYPPVkkg7S7Dmk3h9FJ8 "JavaScript (Node.js) – Try It Online")
### Commented
```
s => // s = "HH:MM"
( new Date( // generate a date:
+new Date( // generate a timestamp corresponding to:
[1, s] // "1,HH:MM" which is interpreted as
// Mon Jan 01 2001 HH:MM:00
) // end of Date()
+ 6e4 // add 60000 milliseconds (1 minute)
) // end of Date()
+ s // coerce to a string
).slice(16, 21) // extract the updated "HH:MM"
```
[Answer]
# [C#](https://docs.microsoft.com/en-us/dotnet/csharp/), ~~64~~ ~~62~~ 55 bytes
-7 bytes thanks to asherber
```
(x)=>$"{System.DateTime.Parse(x).AddMinutes(1):HH:mm}";
```
[dotnetfiddle!](https://dotnetfiddle.net/ZHEdxy)
## Old version (62 Bytes)
```
(x)=>System.DateTime.Parse(x).AddMinutes(1).ToString("HH:mm");
```
[Answer]
# [Ruby](https://www.ruby-lang.org/) `-pl`, 40 bytes
```
$_="#{Time.gm(1,1,~/:/,$`,$')+60}"[11,5]
```
[Try it online!](https://tio.run/##KypNqvz/XyXeVkm5OiQzN1UvPVfDUMdQp07fSl9HJUFHRV1T28ygVina0FDHNPb/fwMDKwMDLhBpxGVgamVqymVgaWVqyWVoZGViyWUEFDflMjIGivzLLyjJzM8r/q9bkAMA "Ruby – Try It Online")
`~/:/` matches the colon in the input (yielding its index, `2`), setting the pre- and post-match regexes `$`` and `$'` to the hour and minute, respectively.
---
# [Ruby](https://www.ruby-lang.org/) `-plaF:`, 35 bytes
*Suggested by @dingledooper*
```
$_="#{Time.gm(1,1,1,*$F)+60}"[11,5]
```
[Try it online!](https://tio.run/##KypNqvz/XyXeVkm5OiQzN1UvPVfDUAcEtVTcNLXNDGqVog0NdUxj//83MLAyMOACkUZcBqZWpqZcBpZWppZchkZWJpZcRkBxUy4jY6DIv/yCksz8vOL/ugU5iW5WAA "Ruby – Try It Online")
The array `$F` is formed by automatically splitting the input at the colon.
---
Both versions perform the following operations:
* convert input to a `Time` object,
* add 60 seconds,
* convert to a string of the form `0001-01-dd hh:mm:00 UTC`, where for the 40 byte version `dd` is either `02` or `03` (the latter only when the input is `23:59`); for the 35 byte version it is `01`,
* extract the 11th to 15th characters.
It's somewhat noteworthy that `Time#gm` internally coerces string arguments to integers.
[Answer]
# [C (gcc)](https://gcc.gnu.org/), ~~71~~ 69 bytes
Thanks to dingledooper for the -2.
The only sneaky things were to reuse the input parameter and cache the format string.
```
i,z;f(s){sscanf(s,z="%02d:%02d",&i,&s);printf(z,(i+s/60)%24,++s%60);}
```
[Try it online!](https://tio.run/##RZDBboMwDIbvPIWViTYp2ZbSgtRk9Amq3XbqeqChDEsMJtLuAOLZWcLSLYf8jv37i2X9@KH1NCHvVUkNG4zReWMj3mckFHEh3UX4AvnCMPXVYXMtac8pRuY5FSyMtzyKTGhDNU4P2Oj6VlzgxVyLGs9P1T4IbAd85tjQ7xYLBkMAoKu8g5U5nrKBCCGFIHzW2Gkik8TpTiY7q@tYbp3Gtu7y8WbOv74dDiO3rPmsuj/W2rM2npU6hv/DshLhWan3Cc9SluVGRRXYqGw7iplQYI54UoBR9Ds5gF8BCQ1keyB8djA11@ze/h93I1BTtbe6gPNFwjI0S/be2Lbu7hyDcfoB "C (gcc) – Try It Online")
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), 18 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
23Ý59ÝâT‰J':ýDIk>è
```
[Try it online](https://tio.run/##yy9OTMpM/f/fyPjwXFPLw3MPLwp51LDBS93q8F4Xz2y7wytAUlamlgA) or [verify all test cases](https://tio.run/##yy9OTMpM/V9TVmmvpPCobZKCkv1/I@PDc00tD889vCjkUcMGL3Wrw3tdKrPtDq/4r/PfwMDKwIALRBpxGZhamZpyGVhamVpyGRpZmVhyGQHFTbmMjIEiAA).
**Explanation:**
```
23√ù # Push a list in the range [0,23]
59√ù # Push a list in the range [0,59]
√¢ # Get the cartesian product of these two lists
T‰J # Format each integer to a string with potentially leading 0:
T‰ # Take the divmod-10: [n//10,n%10]
J # And join these pairs of digits together
':√Ω '# Join each inner pair together with ":" delimiter
D # Duplicate this list
Ik # Get the index of the input in this duplicated list
> # Increase it by 1
è # And use it to index into the list
# (after which the result is output implicitly)
```
[Answer]
# [Python 3](https://docs.python.org/3/), ~~100~~ 95 bytes
```
from datetime import*
f='%H:%M'
t=lambda s:(datetime.strptime(s,f)+timedelta(0,60)).strftime(f)
```
[Try it online!](https://tio.run/##RYpBCsMgEADvvsJL0G1C2VJaiJB7Ln2ERZcKMYrupa@3sVB6G2Ymv/mV9mtrVFKUzrLnEL0MMafCJ0GLGlYzPJTgZbPx6aysRv@2c@WSO@g6EYydnN/YapzuCNAzfTNByyXsrFkrRIMXBSD@Zja3@TDtAw "Python 3 – Try It Online")
-5 thanks to @pandubear
Python is terrible at this...
[Answer]
# [PHP](https://php.net/), 40 bytes
```
fn($s)=>date('H:i',strtotime("$s+1min"))
```
[Try it online!](https://tio.run/##Zc9PD4IgGMfxu6/iGWMT1h8Bo03MurVeRJdWOjkILHj9kXoJ7frbh30fXO/i6eJ6l@EOGoidIdjT5vx6hJbkN6XzrQ/vYIMeWoKw3/BBG0RprLOsffYWcEcQY4oxRGEP6G5QDUUB08SXQvyLMhFSSbkS43RMRKVktRR8Cv8EF@qwFkLJRIjxwaoyTUlFlH@V@XtxvvdjXdDW@Li7fgE "PHP – Try It Online")
PHP relative date formatting at its finest, trying to compress it to the max. Should take in account the DST following the locale
[Answer]
# [MathGolf](https://github.com/maxbergmark/mathgolf/blob/master/math_golf.txt), 24 [bytes](https://github.com/maxbergmark/mathgolf/blob/master/code_page.py)
```
╟r■gæ├M<Þmò♀+░m╞':u_l=)§
```
[Try it online.](https://tio.run/##y00syUjPz0n7///R1PlFj6YtSD@87NGUOb42h@flHt70aGaD9qNpE3MfTZ2nblUan2OreWj5//9KBgZWBgZKXGDaCESbWpmagmhLK1NLIG1oZGUCoo2A8iBxI2OQOAA)
**Explanation:**
```
‚ïür # Push a list in the range [0,60)
■ # Take the cartesian product with itself
g # Filter this list of pairs by,
æ # using the following four characters as inner code-block:
‚îú √û # Where the first value of the pair
M< # Is smaller than 24
m # Then map each remaining pair to,
ò # using the following eight characters as inner code-block:
‚ôÄ+ # Add 100 to both integers
‚ñë # Convert both to a string
m‚ïû # Remove the first character (the "1") from both strings
':u '# Join this pair with ":" delimiter
_ # After the map, duplicate the list of all possible times
l= # Get the index of the string-input in this duplicated list
) # Increase it by 1
§ # And use it to (0-based modulair) index into the list
# (after which the entire stack is output implicitly as result)
```
[Answer]
# SQL Server, 36 bytes
```
select left(dateadd(n,1,a),5) from t
```
[Try it online (using all of the input values given in the question).](http://sqlfiddle.com/#!18/236eac/2)
[Answer]
# [R](https://www.r-project.org/), ~~46~~ 43 bytes
*-3 bytes thanks to [Jonathan Carroll](https://codegolf.stackexchange.com/users/26763/jonathan-carroll)*
Or **[R](https://www.r-project.org/)>=4.1, 36 bytes** by replacing the word `function` with `\`.
```
function(t)format(strptime(t,h<-"%R")+60,h)
```
[Try it online!](https://tio.run/##K/qfZvs/rTQvuSQzP0@jRDMtvyg3sUSjuKSooCQzN1WjRCfDRldJNUhJU9vMQCdD83@ahpKBgZWBgZKmsgIQgNiGXFBBIyRBY7CgqZWpKUwQyDYDC1pamVpCBQ1BRoEEDY2sTOCCRlamYEEjoCxMO4gN1m5kjNAOdsl/AA "R – Try It Online")
---
Without datetime functions:
### [R](https://www.r-project.org/), ~~89~~ 85 bytes
```
function(t,`[`=substr,m=el(t[4,5]:0+1)%%60)sprintf("%02d:%02d",el(t[1,2]:0+!m)%%24,m)
```
[Try it online!](https://tio.run/##TY7LCsMgEEX3/YrWIih1MU5iIAN@SSiEPgKBmpRovt@qJG1nMVyO5w4ucbBxWKd7GOdJBNV3vfXrzYdFOft8idDVylwJLlpy3oD072WcwiAYB3xQXkwVTSvM2sklD2vlZEwSAAEweT6myVkfNoh/sCrQkDE7TLkpsCXTblDnUxlqpPoLkUyBmF73es6ljtWvXn4SPw "R – Try It Online")
[Answer]
# [PowerShell](https://github.com/PowerShell/PowerShell), 33 bytes
```
%{'{0:HH:mm}'-f((Date $_)+'0:1')}
```
Input comes from the pipeline.
[Try it online!](https://tio.run/##K8gvTy0qzkjNyfmvbmBgZWCgrqMAZhiBGaZWpqZghqWVqSWIYWhkZQJmGAHVgKWMjEFSNf9Vq9WrDaw8PKxyc2vVddM0NFwSS1IVVOI1tdUNrAzVNWv//wcA "PowerShell – Try It Online")
Try it in a PS console (Windows or Core):
```
'00:00', '00:02', '05:55', '09:59', '12:49', '20:05', '23:59'|%{'{0:HH:mm}'-f((Date $_)+'0:1')}
```
## Explanation
**%** is an Alias for the Cmdlet "ForEach-Object", which accepts input from the pipeline and processes each incoming object inside the ScriptBlock {...}
**'{0:HH:mm}'** is the output string; {0:HH:mm} is a placeholder for the first argument of the following **-f** format operator. It contains formatting information to print a DateTime object in 24 hour format.
**-f** is the format operator, which will replace the placeholder with the actual time. Using -f is shorter than calling the .ToString('HH:mm') method.
**((Date $\_)+'0:1')** does the heavy lifting: It first turns the current string coming in from the pipeline ($\_) into a DateTime object by passing it to the Cmdlet **Get-Date**. The 'Get-' is implicit in PS, so leaving it out saves 4 bytes (Disclaimer: **never** use that in a regular script; it slows things down, because PS will search the path for a matching command as well - each time it's called!).
Now that there's a DateTime object on the left side, and PS sees an Add operation, it interpretes the '0:1' as timespan of 1 minute (try `[TimeSpan]'0:1'` in a PS console); this is shorter than using the DateTime's object AddMinutes() method.
The result of the addition is then inserted into the string, output is implicit.
[Answer]
# [Scala](http://www.scala-lang.org/), 52 bytes
```
java.time.LocalTime.parse(_).plusMinutes(1).toString
```
[Try it online!](https://tio.run/##VY7LCoMwEADvfsXiyVyCiU2hAQveW3po7yXVUBQfwUQplH57qvVRcxuY3dnVqSiFbR6FTA0kWXap5TmvOyNBvoysMw2JUvD2AHpRQsXhatq8fkJ8XMkWohfY5JXEp2bI3UZSotUyuCOsyk5PRR0QhE0zrVmhtWxNUAV@GPIw9BHEMfyY@MhzLd3YyLWMM7bYgfeuPXB2mC2ZrmwsoXy3WsqZa@kwv5RHdss0@pfn/72P/QI "Scala – Try It Online")
Straightforward approach: parse string as time information via built-in functionality, add one minute to it, output as string
[Answer]
# [Factor](https://factorcode.org/), 56 bytes
```
[ ":"without hhmm>duration 1 minutes time+ duration>hm ]
```
This doesn't run on TIO because the `calendar.parser` vocabulary postdates Factor build 1525 (the one TIO uses) by just a bit. Here's a screenshot of running it in build 1889, the official 0.98 stable release:
[![A screenshot of running the above code in the Factor Listener](https://i.stack.imgur.com/RfXRp.png)](https://i.stack.imgur.com/RfXRp.png)
## Explanation
It's a quotation that takes a string from the data stack as input and leaves a string on the data stack as output. Assuming `"23:59"` is on top of the data stack when this quotation is called...
| Snippet | Comment | Data stack (the bottom is the top) |
| --- | --- | --- |
|
```
":"without
```
| Remove the colon |
```
"2359"
```
|
|
```
hhmm>duration
```
| Parse a 4-digit string into a duration with hours and minutes |
```
T{ duration f 0 0 0 23 59 0 }
```
|
|
```
1 minutes
```
| Create a duration of one minute |
```
T{ duration f 0 0 0 23 59 0 }T{ duration f 0 0 0 0 1 0 }
```
|
|
```
time+
```
| Add two durations and/or timestamps |
```
T{ duration f 0 0 0 23 60 0 }
```
|
|
```
duration>hm
```
| Convert a duration or timestamp to a HH:MM string |
```
"00:00"
```
|
[Answer]
## Batch, 83 bytes
```
@set/ps=
@set/am=6%s::=*60+1%-99,h=m/60%%24+100,m=m%%60+100
@echo %h:~-2%:%m:~-2%
```
Takes input on STDIN. Explanation:
```
@set/ps=
```
Read in the time.
```
@set/am=6%s::=*60+1%-99,h=m/60%%24+100,m=m%%60+100
```
Batch parses leading `0`s as octal, so to allow hours and minutes to be `08` or `09`, `6` is prefixed to the hours and `1` to the minutes. Additionally, the `:` is changed to `*60+` and the resulting string evaluated. The `6` prefix does not change the overall result because `600` hours is exactly `25` days, while the `1` adds `100` minutes so `99` minutes are subtracted to obtain the desired total number of minutes. The total minutes are then divided back into hours and minutes, but with 100 added so that the last two digits can be extracted.
```
@echo %h:~-2%:%m:~-2%
```
Print the last two digits to get the real hours and minutes again.
[Answer]
# [Japt](https://github.com/ETHproductions/japt), 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
```
Ð6e4°ÐNi1¹¤¯5
```
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=0DZlNLDQTmkxuaSvNQ&input=IjAwOjAwIg)
[Answer]
# [C (clang)](http://clang.llvm.org/), 63 bytes
```
f(*s){strptime(s,"%R",s);*s=84;mktime(s);strftime(s,8,"%R",s);}
```
[Try it online!](https://tio.run/##VZBNboMwEIX3nGJkCcUmRHJIiAgWPUS3lAUhcWKVP9kkUYW4eqlt3Kj15o3ePH8zdrWp6rK9zjPHgSKjGmQ/iOaCVYj8dxQqwgKVJXvWfC42YTrCXSR5haZZtAM0pWjxoxNnAqMHUN1KCYHKi2xElKaUotBqZDRO49joMY2PWrdRujca6b7xo5316RRqkD2BfIG2DrRzoIMBuAEaFFMHOrgcNSCmQWZJwTxd8U5ikVEGKhcFA7FeLzsD9FKnOEa@guwNUGgThNmefdHpzvOEFoujf6Pqv7D2/gW5cVz9B4jVrbvXZzhdUlj5akU@Wj3AXpa/lydvmr8rXpdXNW@ePw "C (clang) – Try It Online")
Thanks to @AZTECCO for the "%R" format!!
[Answer]
# [Julia 1.0](http://julialang.org/), 66 bytes
```
using Dates;f="HH:MM";g(s)=Dates.format(DateTime(s,f)+Minute(1),f)
```
[Try it online!](https://tio.run/##HY6xDsIgFEVn/YoX0uERq6EoQ2nq5NClmz9AIjSYFk2BxL9HYDv3njvcd1yt6n4pRW/dAg8VtB/MSKZJzjMZFvR0rOXFfPZNBSzhaTeNvjX0NFsXg8aO5pDyAjxYB0gYk4yRFirwCkIKUaGXoi/QcXmrwPOmKn4tih4P3926sDokjYfzHRosP2g22r0g/QE "Julia 1.0 – Try It Online")
Using libraries because why not and it's still shorter than Python.
[Answer]
# [Julia 1.0](http://julialang.org/), ~~43~~ 42 bytes
```
using Dates
~t="$(Time(t)+Minute(1))"[1:5]
```
[Try it online!](https://tio.run/##LYyxCgIxEAX7/YoQLBIE2US3uMCJha2dnVhcEWQlhsNswOp@PcbD5jEMw3vWxJP7tFYL54c6TxILLDLqjbnyKxqx2wvnKtE4a/XNBbq3nkhRoypzYjFaa0AMiOt6QApEgEOgAZwPhwF89wR@/zO9tgCnnZrfnCVl8z87qmUl274 "Julia 1.0 – Try It Online")
[Answer]
# [C (gcc)](https://gcc.gnu.org/), 101 bytes
I was hoping this would be shorter, but I am posting it despite the length because I think it's an interesting way to compute the answer.
This function modifies the input string so the output is the input. I'm not too familiar with the C golfing rules on this but since it's so long I'm neglecting that issue.
This function treats the input as individual characters, where each column has a 'max' value (the first 5 characters in `u`) and a 'reset' value (last 5 characters in `u`). First the last character of the input string is incremented, then from right to left each character is compared to the max. If any character is greater than its max, it is set to the 'reset' value of that column and the column to the left is incremented.
As described so far, this function will reset after 29:59. To make it reset after 23:59 I used `short *a` to check the first two characters at once to see if they equal `"24"` and if they do, set them to `"00"`.
Also note that I had to modify the test code in order to copy input strings into writable memory.
Improvements are welcome, I think I'm out of ideas on this one.
Thanks to att for -22 bytes, a bugfix, and some awesome golfing!
```
c;f(char*x){for(x[c=4]++;~c;)x[--c]+=x[c]>"29:59"[c]&&(x[c]=c-2?48:58);*x<49&&x[1]==52?*x=x[1]=48:0;}
```
[Try it online!](https://tio.run/##rZHNbsIwDMfvfQqrE9Cm7ZaGFkFD4AXQbjuxHoqBEal8qC1TJ@henSWhbJwmTVqkyI7t/PxPjMEb4uWJWOVmX1Qk48jXDm6ygtTuab0vnHqOIko9j38iz0Tt1vMgwNQTKp5ObDZK4pGt3G5XV6YCAzaNhkk8dDnJAqF22O8P2JQmIWUD3li/8f8Cd66C3fra4Hx2SK3uhamIVLqxyNPlv1rV42jU7Rq2iNn0p09CeXN5kDvMj8sVjMtqmcvF42ZiWXJXwTaTO@d9L5cunCwArQRIOU/FyaY0odT2jWXaxkkca2tk@HbIkkhbpvI6zvom/vwymzW@YplFim9W2LL6LWugGW0PxYppyxq0dbRlccXSUkHyViEBROOLbZbne3RiVx/190lBOZRzmXKQnnd9FMChUIC1YxtJnRLEBGzflJmLAGVV4OHDQfTvgmow2LqHY1XenW44Pd9jvoTFKoFep@y5rzvFLW6IxmouXw "C (gcc) – Try It Online")
] |
[Question]
[
Basing on [this SO question](https://stackoverflow.com/questions/37964715/convert-yyyymm-to-mmmyy).
Challenge is rather simple: given a date period in the format `YYYYMM` output it in the format `MMMYY`.
### Rules:
* The input will be a number or a string exactly 6 characters long, consisting only of digits.
* Last two digits will be between `01` and `12`.
* Output must be in the form `MMMYY`, where `MMM` represents uppercase three-letter code for the month (below) and `YY` represents **two** last digits of the `YYYY` part of the input.
List of months with corresponding code:
```
MM MMM
01 JAN
02 FEB
03 MAR
04 APR
05 MAY
06 JUN
07 JUL
08 AUG
09 SEP
10 OCT
11 NOV
12 DEC
```
### Examples:
```
Input Output
201604 APR16
200001 JAN00
000112 DEC01
123405 MAY34
```
[Answer]
# Python 3, 70 bytes
```
from time import*
lambda s:strftime("%b%y",strptime(s,"%Y%m")).upper()
```
This uses the built-in `strftime` and `strptime` functions.
For 1 byte more, here's a version which parses the string manually:
```
lambda s:" JFMAMJJASONDAEAPAUUUECOENBRRYNLGPTVC"[int(s[4:])::12]+s[2:4]
```
This encodes the month names in an interesting way (thanks to Henry Gomersall for saving a byte).
[Answer]
# MATL, ~~18~~ ~~14~~ 13 bytes
```
4e!Z{Zc12XOXk
```
Input is provided as a string (enclosed in single quotes).
This version only runs in MATL on MATLAB since MATLAB is able to automatically parse `datestr('2016 04')`.
**Explanation**
```
% Implicitly grab input as a string
4e! % Reshape input to be 2 x 4 (puts the year in row 1 and month in row 2)
Z{ % Place each row in a separate cell
Zc % Join them together using a space to create 'yyyy mm' format
12 % Number literal, pre-defined datestring of 'mmmyy'
XO % Convert from serial date number to string using this format
Xk % Convert to uppercase
% Implicitly display
```
---
Here is an **18 byte** version which works on Octave (and therefore the online interpreter)
```
'yyyymm'2$YO12XOXk
```
[**Try it Online**](http://matl.tryitonline.net/#code=J3l5eXltbScyJFlPMTJYT1hr&input=JzIwMTYwNCc)
[Modified version for all test cases](http://matl.tryitonline.net/#code=YCd5eXl5bW0nMiRZTzEyWE9Ya0RU&input=JzIwMTYwNCcKJzIwMDAwMScKJzAwMDExMicKJzEyMzQwNSc)
**Explanation**
```
% Implicitly grab input as a string
'yyyymm' % Push the format string as a string literal
2$YO % Convert to a serial date number
12 % Number literal, pre-defined datestring of 'mmmyy'
XO % Convert from serial date number to string using this format
Xk % Convert to uppercase
% Implicitly display
```
[Answer]
# [PowerShell](https://github.com/TryItOnline/TioSetup/wiki/Powershell), ~~49~~ ~~46~~ 40 bytes
```
date "$args".insert(4,'-')-U %b%y|% *per
```
[Try it online!](https://tio.run/##K8gvTy0qzkjNyfn/PyWxJFVBSSWxKL1YSS8zrzi1qETDREddV11TN1RBNUm1skZVQasgtej////qRgaGZgYm6gA "PowerShell – Try It Online")
*Thanks to @Joey for saving 3 bytes!*
Takes input `$args` as an explicit string (e.g., `'201604'`) via command-line input. Uses the `string.Insert()` function to put a `-` in the appropriate space, and that resultant string forms input to the [`Get-Date` cmdlet](https://technet.microsoft.com/en-us/library/hh849887.aspx) with the `-U`format parameter specifying the three-month shorthand plus two-digit year. We then tack on a `.ToUpper()` to make the output string capitalized. That string is left on the pipeline and printing is implicit.
Also, as pointed out, this is locale-sensitive. Here's the locale information that I'm using where this works correctly.
```
PS C:\Tools\Scripts\golfing> get-culture
LCID Name DisplayName
---- ---- -----------
1033 en-US English (United States)
```
[Answer]
# Bash + coreutils, 18
Requires 64-bit version of `date` for the given testcases, [which recognises dates earlier than 14th December 1901](https://unix.stackexchange.com/questions/7688/date-years-prior-to-1901-are-treated-as-invalid).
```
date -d$101 +%^b%y
```
[Answer]
## [Retina](https://github.com/m-ender/retina), ~~71~~ 70 bytes
*Thanks to Sp3000 for saving 1 byte.*
Byte count assumes ISO 8859-1 encoding. The trailing linefeed is significant.
```
(..)(..)$
DECNOVOCTSEPAUGJULJUNMAYAPRMARFEBJANXXX$2$*¶$1
+`...¶
R-6`.
```
[Try it online!](http://retina.tryitonline.net/#code=JShHYAooLi4pKC4uKSQKREVDTk9WT0NUU0VQQVVHSlVMSlVOTUFZQVBSTUFSRkVCSkFOWFhYJDIkKsK2JDEKK2AuLi7CtgoKUi02YC4&input=MjAxNjA0CjIwMDAwMQowMDAxMTIKMTIzNDA1)
### Explanation
Taking `201604` as an example:
```
(..)(..)$
DECNOVOCTSEPAUGJULJUNMAYAPRMARFEBJANXXX$2$*¶$1
```
This swaps the last two digits of the year with the month while also expanding the month in unary using linefeeds, and prepending the list of months in reverse so we'd get:
```
20DECNOVOCTSEPAUGJULJUNMAYAPRMARFEBJANXXX¶¶¶¶16
```
Where the `¶` represent linefeeds (0x0A).
```
+`...¶
```
Now we repeatedly remove three non-linefeed characters followed by a linefeed. That is we eat up the list of months from the end for each linefeed representing a month:
```
20DECNOVOCTSEPAUGJULJUNMAYAPRMARFEBJANXXX¶¶¶¶16
20DECNOVOCTSEPAUGJULJUNMAYAPRMARFEBJAN¶¶¶16
20DECNOVOCTSEPAUGJULJUNMAYAPRMARFEB¶¶16
20DECNOVOCTSEPAUGJULJUNMAYAPRMAR¶16
20DECNOVOCTSEPAUGJULJUNMAYAPR16
```
This is why we've inserted that `XXX`: since the months start counting from `1`, we'll always remove at least three characters, even for January.
```
R-6`.
```
Finally, we remove everything up to the 6th character from the end. In other words we only keep the last five characters.
[Answer]
# CJam, ~~50~~ 46 bytes
```
q2/1>~i("4H~0ë~³!ò²×¶7Ö"256b25b'Af+3/=\
```
[Try it online.](http://cjam.aditsu.net/#code=q2%2F1%3E~i%28%224H~0%C3%AB%C2%99~%C2%B3%C2%90!%C3%B2%C2%B2%C3%97%C2%8C%C2%9D%C2%B6%C2%90%1F%1F7%C3%96%22256b25b'Af%2B3%2F%3D%5C&input=201604) Thanks to Martin Ender for compressing the string to save a few bytes.
### Explanation
```
q2/ e# Get input and divide it into groups of 2, like ["20" "16" "04"]
1>~ e# Discard the first item and dump the remaining array to the stack
i( e# Convert the top value (month) to an integer and decrement it, because
e# arrays are zero-indexed
"..."256b25b e# Convert this string from base-256 to base-25
'Af+ e# "Add" a capital A to each number to get the letters
3/ e# Divide into groups of 3 to make an array of month names
=\ e# Get the requested month and swap the elements to put the year on
e# top, so it is printed last
```
[Answer]
# MATLAB / Octave, 42 bytes
```
@(x)upper(datestr(datenum(x,'yyyymm'),12))
```
Creates an anonymous function named `ans` that is called with a string representing the date: `ans('201604')`.
[**Online Demo**](http://ideone.com/a2ND79)
This solution uses `datenum` to convert the input date to a serial date number, and then `datestr` with the predefined output spec of `mmmyy` (`12`) to yield the string representation in the required format. Finally, we use `upper` to change it to `MMMYY` since the uppercase month is not an output option.
[Answer]
## Bash, ~~39~~ 28 bytes
```
date -d$101 +%b%y|tr a-z A-Z
```
Thanks [Digital Trauma](https://codegolf.stackexchange.com/users/11259/digital-trauma)!
[Answer]
# Java 7, 137 characters (161 bytes)
```
String d(String i){return Integer.toString("憯䷳烣㘿烪摿摽㛨近筍矯䏔".charAt(Integer.parseInt(i.substring(4))-1),36).toUpperCase()+i.substring(2,4);}
```
Consider each month name (JAN, FEB etc...) is a number in base 36 and encode it into corresponding Unicode symbol. Then get corresponding symbol from the string encode it back again in base 36 and after that some plain string manipulations.
Slightly ungolfed:
```
String d(String input){
return
Integer.toString("憯䷳烣㘿烪摿摽㛨近筍矯䏔" // encoded month names
.charAt(Integer.parseInt(input.substring(4))-1),36) // get a symbol from encoded names at position input[4:], decode it to base 36 value
.toUpperCase()+input.substring(2,4); // get it to upper case and add year
}
```
You can see it running here: <https://ideone.com/IKlnPY>
[Answer]
## Python, 83 bytes
```
from datetime import*
lambda x:datetime.strptime(x,'%Y%m').strftime('%b%y').upper()
```
[Answer]
## Kotlin, 100 bytes
```
fun f(d:String)=SimpleDateFormat("MMMyy").format(SimpleDateFormat("yyyyMM").parse(d)).toUpperCase()
```
Pretty straight forward use of Java SimpleDateFormat
[Answer]
## 05AB1E, ~~51~~ ~~42~~ 41 bytes
```
2ô¦`ï<•r–ºþ¯Bê€õaPù£—^5AºüLwÇ–è•35B3ôsèsJ
```
**Explanation**
```
# implicit input, 123405
2ô # split input into pieces of 2, ['12','34','05']
¦` # push last 2 elements to stack, '05', '34'
ï< # convert month to its int index, 4
•r–ºþ¯Bê€õaPù£—^5AºüLwÇ–è•35B # get compressed string containing 3-letter months,
JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC
3ô # split into pieces of 3
['JAN', 'FEB', 'MAR', 'APR', 'MAY', 'JUN', 'JUL', 'AUG', 'SEP', 'OCT', 'NOV', 'DEC']
sè # get month at index retrieved earlier, MAY
sJ # join with 2-digit year and implicitly print, MAY34
```
[Try it online](http://05ab1e.tryitonline.net/#code=MsO0wqTDrzzigKJy4oCTwrrDvsKvQsOq4oKsw7VhUMO5wqPigJReNUHCusO8THfDh-KAk8Oo4oCiMzVCM8O0c8OoczHDqEo&input=MTIzNDA1)
9 bytes saved thanks to string compression, courtesy of @Adnan
[Answer]
# JavaScript, ~~87~~ ~~84~~ ~~80~~ 79 bytes
```
x=>(new Date(x.replace(/.{4}/,'$&-'))+'').slice(4,7).toUpperCase()+x.slice(2,4)
```
To get the month, gets the date (which is formed of "YYYYMM" converted to "YYYY-MM") and retrieves the characters 5 to 8, that are exactly the first three letters of the month. But it costs much to convert it to upper case.
Demo:
```
function s(x) {
return (new Date(x.replace(/.{4}/, '$&-')) + '').slice(4,7)
.toUpperCase() + x.slice(2, 4)
}
console.log(s('201604'));
console.log(s('200001'));
console.log(s('000112'));
console.log(s('123405'));
```
[Answer]
# Julia, ~~57~~ ~~56~~ 53 bytes
```
s->uppercase(Dates.format(DateTime(s,"yyyym"),"uyy"))
```
This is an anonymous function that accepts a string and returns a string. To call it, assign it to a variable.
First we construct a `DateTime` object using the type constructor and a format string. Note that the single `m` in the format string will get both one- and two-digit months, though the former case is irrelevant here. Since no days are specified, the first of the month is assumed.
We can then format the value as a string using the `Dates.format` function from the `Base.Dates` submodule. The string `uyy` gets the three-letter month name and two-digit year, but the result is in title case, e.g. Apr16 instead of the desired APR16, so we need to `uppercase` it.
[Try it online!](http://julia.tryitonline.net/#code=Zj1zLT51cHBlcmNhc2UoRGF0ZXMuZm9ybWF0KERhdGVUaW1lKHMsInl5eXltIiksInV5eSIpKQoKZm9yIHRlc3QgaW4gWygiMjAxNjA0IiwiQVBSMTYiKSwgKCIyMDAwMDEiLCJKQU4wMCIpLCAoIjAwMDExMiIsIkRFQzAxIiksICgiMTIzNDA1IiwiTUFZMzQiKV0KICAgIHByaW50bG4oZih0ZXN0WzFdKSA9PSB0ZXN0WzJdKQplbmQ&input=) (includes all test cases)
[Answer]
# JavaScript ES6, ~~77~~ 66 bytes
Saved 11 bytes thanks to @B√°lint!
```
a=>(new Date(0,a[4]+a[5]-1)+"").slice(4,7).toUpperCase()+a[2]+a[3]
```
Get's the date by extracting the string returned by the `Date` class. then capitalizes and adds the year.
ES5 version:
```
var a = prompt("Enter YYYYMM: ");
result = (new Date(0,a[4]+a[5]-1)+"").slice(4,7).toUpperCase()+a[2]+a[3]
alert(result);
```
[Answer]
## C, ~~147~~ ~~145~~ 112 bytes
```
main(m){char a[99]="JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC";scanf("%4s%d",a+50,&m);printf("%.3s%s",a+--m*3,a+52);}
```
[Online demo](http://ideone.com/T0JSWL)
Thanks [ugoren](https://codegolf.stackexchange.com/users/3544/ugoren)!
[Answer]
# C#, ~~94~~ 87 bytes
```
string C(string s)=>System.DateTime.Parse(s.Insert(4,"-")).ToString("MMMyy").ToUpper();
```
Saved 7 bytes by using C#6 Syntax.
[Try Online](http://csharppad.com/gist/1bf6575ea6e22e58e3bdcc79e205d905)
[Answer]
# Japt, ~~35~~ 34 bytes
```
ÐUr$/..../$,"$&-")+P s4,7 u +Us2,4
```
[Link.](http://ethproductions.github.io/japt/?v=master&code=0FVyJC8uLi4uLyQsIiQmLSIpK1AgczQsNyB1ICtVczIsNA==&input=IjIwMTUwNCI=)
Uses the same technique as my [JavaScript answer](https://codegolf.stackexchange.com/a/83597).
[Answer]
# Java 8, ~~154~~ 113 bytes
```
import java.text.*;s->new SimpleDateFormat("MMMyy").format(new SimpleDateFormat("yyyyMM").parse(s)).toUpperCase()
```
**Explanation:**
[Try it online.](https://tio.run/##jZAxT8MwEIX3/opTJnuolYTCEsFCYXOXigkxHK5L3Sa2ZV9boiq/PTgk6oREbzjdkz7p3Xt7POF8vzn0qsYYQaKxlxmAsaTDFpWG1SAB1hSM/QLFpiNyoF1w5wgv30p7Ms5WCexmaUVCMgpWYOER@jh/svoMa9P4Wi@R9KsLDRLLpJRtm3GxHfXfUJtGykR5DFGzyLkg9@a9Ds@YNO@rwdEfP@vkOBmfnNlAk5JMz75/APIxBoV2PFKiNpJuhDuS8Imi2jIrFMvKvHjIFxnn1b9gmuIGcMCK8gawKO8W@f0V7BSS2rFrwaD5pfstuet/AA)
```
import java.text.*; // Required import for SimpleDateFormat
s-> // Method with String as both parameter and return-type
new SimpleDateFormat("MMMyy") // Create a formatter with format "MMMyy"
.format( // Format the following:
new SimpleDateFormat("yyyyMM") // Create another formatter with format "yyyyMM"
.parse(s)) // Parse the input with this format
.toUpperCase() // Convert everything to Uppercase and return
```
[Answer]
# Oracle SQL, 49 Bytes
```
select to_char(to_date(n,'yyyymm'),'MONyy')from t
```
The data must be inserted in a table called `T` with a column `N` of type `VARCHAR2(6)`, `CHAR(6)` or , only if all the years are > 1000, `NUMBER`
Usage:
```
drop table t;
create table t (n VARCHAR2(6));
insert into t values ('201604');
insert into t values ('200001');
insert into t values ('000112');
insert into t values ('123405');
select to_char(to_date(n,'yyyymm'),'MONyy')from t;
```
[Answer]
# Microsoft SQL Server, 57 Bytes
```
SELECT UPPER(FORMAT(CAST('201601'+'01' AS DATE),'MMMyy'))
```
The `Upper` function is required as format does not produce Upper case months as would be expected with the *MMM* format pattern.
**Usage:**
```
drop table t;
create table t (n VARCHAR(6));
insert into t values ('201604');
insert into t values ('200001');
insert into t values ('000112');
insert into t values ('123405');
SELECT UPPER(FORMAT(CAST(n+'01' AS DATE),'MMMyy')) FROM t
```
[Answer]
# MediaWiki Template (with ParserFunctions), 29 bytes
```
{{uc:{{#time:My|{{{1}}}01}}}}
```
Only works if English locale is chosen.
[Try Sandbox](https://www.mediawiki.org/w/index.php?title=Project:Sandbox&action=edit)
[Answer]
# Pyth, 45 bytes
```
+:."AYw2ûDÈëKH§È¼DYÉx\E±oË"J*3sgz5+3J:z2 4
```
[Try it online!](https://tio.run/##AUQAu/9weXRo//8rOi4iQVkMdzLDu0TDiMOrS0jCp8OIwrwCRFnDiXhcRcKxb8OLHCJKKjNzZ3o1KzNKOnoyIDT//zIwMTgwNA)
Explanation:
```
+:."AYw2ûDÈëKH§È¼DYÉx\E±oË"J*3sgz5+3J:z2 4
z Take the input
g 5 Slice inclusively from index 5 to the end
s Parse as an int
*3 Multiply by 3
J Store in variable J, this also returns J
: Take a slice
."AYw2ûDÈëKH§È¼DYÉx\E±oË" Of this packed string
J*3sgz5 From the J we defined before
+3J To J+3
+ To this string, append
:z A slice of the index
2 4 From [2,4).
```
The packed string contains `"JANJANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC"`. The two `JAN`s are so that I can index it pseudo-one-indexed.
EDIT: Fixed bug that was messing with TIO
[Answer]
# [R](https://www.r-project.org/), 65 bytes
```
function(A)paste0(toupper(month.abb[el(A:1)%%100]),substr(A,3,4))
```
[Try it online!](https://tio.run/##LchBC8IgFADge78iFoMnSLyntkPQQapLUES3iA5zbBSUk6m/32b4Hb8pDbs0RNuF92hBM9f60COEMTrXT/AdbXitW2Me/Qf0llhdE@KTcR@NDxNoLrliLA1QCaQGVcVWy5m@3qhZ/HdGZU/6gpg3H4myh@MeKS8JqXBT9qzvUqUf "R – Try It Online")
Takes input as a string, leverages the constant `month.abb`. Uses modulus and `substr` to extract relevant values.
[Answer]
# [JavaScript (Node.js)](https://nodejs.org), 78 bytes
```
i=>'JANFEBMARAPRMAYJUNJULAUGSEPOCTNOVDEC'.match(/.../g)[i[4]+i[5]-1]+i[2]+i[3]
```
[Try it online!](https://tio.run/##y0osSyxOLsosKNHNy09J/Z@cn1ecn5Oql5OfrqHxP9PWTt3L0c/N1cnXMcgxIMjXMdIr1M8r1Mcx1D3YNcDfOcTPP8zF1VldLzexJDlDQ19PT08/XTM6M9okVjsz2jRW1xBEG4EI49j/mhrqRgZGhgbm6pqa1v8B "JavaScript (Node.js) – Try It Online")
[Answer]
# [Headascii](https://esolangs.org/wiki/Headass#Headascii), 331 bytes
```
UUU^U[UOUODOD]ONE.++++[]]]][]]]]+O[---[]]]][]]]][U]^U]OUOUOD++E.+++^^^U[U-()D]^P(]PD++++P:-()+++++]P-P---P:-()D+++]^P(]PD+++++P:-()]PD++++++]P++P:-()D^^^+++]P(]PD---]P:-()D^^]PD^++]PD-----]P:-()D^^]PD++]P(++^^^^^D+]P:-()]PD^^D++]P(++++++]P:D^^D^]P(++++]PD---]P;UPUP!.++^^^^^U[U)D^^++++]P(++]PD-]P:R-)D^^+++]P+PD+]P:+++]P+P--P;UPUP!
```
[Try it here!](https://replit.com/@thejonymyster/HA23) Code will need to be pasted in and executed like this:
```
erun("UUU^U[UOUODOD]ONE.++++[]]]][]]]]+O[---[]]]][]]]][U]^U]OUOUOD++E.+++^^^U[U-()D]^P(]PD++++P:-()+++++]P-P---P:-()D+++]^P(]PD+++++P:-()]PD++++++]P++P:-()D^^^+++]P(]PD---]P:-()D^^]PD^++]PD-----]P:-()D^^]PD++]P(++^^^^^D+]P:-()]PD^^D++]P(++++++]P:D^^D^]P(++++]PD---]P;UPUP!.++^^^^^U[U)D^^++++]P(++]PD-]P:R-)D^^+++]P+PD+]P:+++]P+P--P;UPUP!","your input here")
```
Headass/ascii is not particularly good at strings.
```
UUU^U[UOUODOD]ONE. Block 0
UU Discard the first two chars of input lol
U^U[ Hold onto the last two digits of the year
UOUODOD]O ready MMYY for the next code block
NE Go to block 1
. Block separator
++++[]]]][]]]]+O[---[]]]][]]]][U]^U]OUOUOD++E. Block 1
++++[]]]][]]]]+O Save 65 for later ease of access
[---[]]]][]]]][ -48
U]^ Add to first month digit and hold
U]O Add to second month digit and save
UOUO Save year digits
D++E Go to either block 1 or block 2,
depending on whether the first
digit of the month was 0 or 1
. Block separator
+++^^^U[U-()...;UPUP!. Block 2 (JAN-SEP)
+++^^^ Store 9 on the accumulator
U[ Restore 65 from earlier
U-() If the second digit of the month is 1,
D]^P(]PD++++P Concatenate "JAN" to the string register
:-() Else if it's 2
+++++]P-P---P Concatenate "FEB" to the string register
:-() Else if it's 3
D+++]^P(]PD+++++P Concatenate "MAR" to the string register
:-() Else if it's 4
]PD++++++]P++P Concatenate "APR" to the string register
:-() Else if it's 5
D^^^+++]P(]PD---]P Concatenate "MAY" to the string register
:-() Else if it's 6
D^^]PD^++]PD-----]P Concatenate "JUN" to the string register
:-() Else if it's 7
D^^]PD++]P(++^^^^^D+]P Concatenate "JUL" to the string register
:-() Else if it's 8
]PD^^D++]P(++++++]P Concatenate "AUG" to the string register
: Else
D^^D^]P(++++]PD---]P Concatenate "SEP" to the string register
;UPUP! Then concatenate the year digits from earlier and print!
. Block separator, end of execution
++^^^^^U[U)D^...;UPUP! Block 3 (OCT-DEC)
++^^^^^ Store 10 on the accumulator
U[ Restore 65 from earlier
U) If the second digit of the month is 0,
D^^++++]P(++]PD-]P Concatenate "OCT" to the string register
:R-) Else if it's 1
D^^+++]P+PD+]P Concatenate "NOV" to the string register
: Else
+++]P+P--P Concatenate "DEC" to the string register
;UPUP! Then concatenate the year digits from earlier and print!
```
[Answer]
# Microsoft Excel VBA, 47 Bytes
Anonymous VBE immediate window function that takes input from range `[A1]` and outputs to the VBE immediate window
```
?UCase(MonthName([Right(A1,2)],1))[Mid(A1,3,2)]
```
Current version thanks to [@Engineer Toast](https://codegolf.stackexchange.com/users/38183/engineer-toast), for pointing out the abbreviate option of the `MonthName` function.
### Previous Version
```
?UCase(Format(DateSerial([Left(A1,4)],[Right(A1,2)],1),"MMMYY"))
```
[Answer]
# [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), ~~14~~ 13 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
```
ÐUò4)Åu ¸o¤Åë
```
[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=0FXyNCnFdSC4b6TF6w&input=IjIwMTYwNCI)
```
ÐUò4)Åu ¸o¤Åë :Implicit input of string U > "201604"
Ð :Create Date object from
Uò4 : Partitions of U of length 4 > ["2016","04"]
) :End Date
√Ö :To date string > "Fri Apr 01 2016"
u :Uppercase > "FRI APR 01 2016"
¸ :Split on spaces > ["FRI","APR","01","2016"]
o :Modify the last element
¤ : Slice off the first 2 characters > ["FRI","APR","01","16"]
√Ö :Slice off the first element > ["APR","01","16"]]
ë :Get every second element > ["APR","16"]
:Implicitly join and output > "APR16"
```
[Answer]
# x86-16 machine code, 64 bytes
```
00000000: fcad ad50 ad2d 3030 86e0 d50a be19 0103 ...P.-00........
00000010: f003 f003 f02e a52e a458 abc3 4a41 4e46 .........X..JANF
00000020: 4542 4d41 5241 5052 4d41 594a 554e 4a55 EBMARAPRMAYJUNJU
00000030: 4c41 5547 5345 504f 4354 4e4f 5644 4543 LAUGSEPOCTNOVDEC
```
Callable function, input at `DS:SI`, output buffer at `ES:DI`.
Listing:
```
FC CLD ; string direction forward
AD LODSW ; skip first two chars
AD LODSW ; load YY string
50 PUSH AX ; save YY string
AD LODSW ; load month string
2D 3030 SUB AX, '00' ; ASCII convert month
86 E0 XCHG AH, AL ; endian convert
D5 0A AAD ; word convert to index (1-12)
BE 0116 MOV SI, OFFSET MTBL[-3] ; month table (1-indexed)
03 F0 ADD SI, AX ; add month offset * 3 chars
03 F0 ADD SI, AX
03 F0 ADD SI, AX
2E A5 CS: MOVSW ; copy first two bytes of month
2E A4 CS: MOVSB ; copy third byte of month to output
58 POP AX ; restore YY string
AB STOSW ; write YY to output
C3 RET
MTBL:
4A 41 4E DB 'JAN'
46 45 42 DB 'FEB'
4D 41 52 DB 'MAR'
41 50 52 DB 'APR'
4D 41 59 DB 'MAY'
4A 55 4E DB 'JUN'
4A 55 4C DB 'JUL'
41 55 47 DB 'AUG'
53 45 50 DB 'SEP'
4F 43 54 DB 'OCT'
4E 4F 56 DB 'NOV'
44 45 43 DB 'DEC'
```
Sample runs:
[![enter image description here](https://i.stack.imgur.com/g8c2s.png)](https://i.stack.imgur.com/g8c2s.png)
[Answer]
# [Perl 5](https://www.perl.org/) `-p`, 75 bytes
```
$_=(1,JAN,FEB,MAR,APR,MAY,JUN,JUL,AUG,SEP,OCT,NOV,DEC)[/..$/g].substr$`,2,2
```
[Try it online!](https://tio.run/##K0gtyjH9/18l3lbDUMfL0U/HzdVJx9cxSMcxIAhIR@p4hfoBsY@OY6i7TrBrgI6/c4iOn3@Yjours2a0vp6ein56rF5xaVJxSZFKgo6RjtH//4bGBhYGlv/yC0oy8/OK/@sWAAA "Perl 5 – Try It Online")
] |
[Question]
[
I got the spontaneous idea of making a series of challenges of users that have helped and continue to help the PPCG community be an enjoyable place for everyone, or maybe just specifically for me. :P
If you convert Dennis's name to an array of `1`s and `0`s where each consonant is `1` and each vowel is `0`, the array is `[1, 0, 1, 1, 0, 1]`, which is symmetrical. Thus, your challenge is to determine what other names are like this.
# Challenge
Given an ASCII string, remove all characters that aren't letters and determine if the configuration of vowels and consonants are symmetrical. `y` is not a vowel.
Please note that your program does not have to be this type of string itself.
# Test Cases
```
Dennis -> truthy
Martin -> truthy
Martin Ender -> truthy
Alex -> falsy
Alex A. -> truthy
Doorknob -> falsy
Mego -> falsy
```
# Reference Implementation
This Python 3 code will give the correct output given a test case. It is as ungolfed as I could make it without being ridiculous.
# [Python 3](https://docs.python.org/3/)
```
s = input()
l = []
for c in s:
if c in 'AEIOUaeiou':
l.append(0)
elif c in 'BCDFGHJKLMNPQRSTVWXYZbcdfghjklmnpqrstvwxyz':
l.append(1)
print(l == list(reversed(l)), end = '')
```
[Try it online!](https://tio.run/nexus/python3#VY7JCsIwFEXXzVdklwREdCt0odZ5nidcVPuq0ZjGJK3Dz9eAILg7HA6XmxvsYy5VailDwvFuj@JE46OT2FSQx@Mvk2qjM1qEwJOUOO2JYqgUyIiWGPJA/LJaPWi22t1efzAcT6az@XK13mwPEcSn8@UqblLdtbHZ4/l6/8@UGVKaS0vdCR8LbizVkIE2EFHBWAG7yN0jhOV5AFJy8wE "Python 3 - Try It Online")
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 11 bytes
```
ŒufØAe€ØCŒḂ
```
[Try it online!](https://tio.run/##ASUA2v9qZWxsef//xZJ1ZsOYQWXigqzDmEPFkuG4gv///yJEZW5uaXMi "Jelly – Try It Online")
Alternate versions:
```
ŒlfØae€ØCŒḂ
```
```
ŒufØAe€ØcŒḂ
```
```
ŒlfØae€ØcŒḂ
```
Of course a challenge appreciating Dennis must have an answer in a language of his.
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E), 9 bytes
```
žM¹álSåÂQ
```
[Try it online!](https://tio.run/##MzBNTDJM/f//6D7fQzsPL8wJPrz0cFPg//8uqXl5mcUA "05AB1E – Try It Online")
-2 thanks to [Adnan](https://codegolf.stackexchange.com/users/34388/adnan).
This attacks Jelly's pain point exactly. It uses `l` and `A`, 1-byte equivalents for Jelly's `Œl` and `Øa` respectively.
[Answer]
## x86 32-bit machine-code function, ~~42~~ 41 bytes
Currently the shortest non-golfing-language answer, 1B shorter than [@streetster's q/kdb+](https://codegolf.stackexchange.com/questions/123194/user-appreciation-challenge-1-dennis/123222#123222).
**With 0 for truthy and non-zero for falsy: ~~41~~ 40 bytes.** (in general, saves 1 byte for 32-bit, 2 bytes for 64-bit).
**With implicit-length strings (C-style 0-terminated): ~~45~~ 44 bytes**
**x86-64 machine-code (with 32-bit pointers, like the x32 ABI): ~~44~~ 43 bytes**.
**x86-64 with implicit-length strings, still 46 bytes (the shift/mask bitmap strategy is break-even now).**
This is a function with C signature `_Bool dennis_like(size_t ecx, const char *esi)`. The calling convention is slightly non-standard, close to MS vectorcall/fastcall but with different arg registers: string in ESI and the length in ECX. It only clobbers its arg-regs and EDX. AL holds the return value, with the higher bytes of EAX holding garbage (as allowed by the SysV i386 and x32 ABIs, and the Windows x64 calling convention.)
---
**Explanation of the algorithm**:
Loop over the input string, filtering and classifying into a boolean array on the stack: For each byte, check if it's an alphabetic character (if not, continue to next char), and transform it to an integer from 0-25 (A-Z). Use that 0-25 integer to check a bitmap of vowel=0/consonant=1. (The bitmap is loaded into a register as a 32-bit immediate constant). Push 0 or 0xFF onto the stack according to the bitmap result (actually in the low byte of a 32-bit element, which may have garbage in the top 3 bytes).
The first loop produces an array of 0 or 0xFF (in dword elements padded with garbage). Do the usual palindrome check with a second loop that stops when pointers cross in the middle (or when they both point to the same element if there were an odd number of alphabetic characters). The upward-moving pointer is the stack pointer, and we use POP to load+increment. Instead of compare / setcc in this loop, we can just use XOR to detect same/different since there are only two possible values. We could accumulate (with OR) whether we found any non-matching elements, but an early-out branch on flags set by XOR is at least as good.
Notice that the second loop uses `byte` operand-size, so it doesn't care what garbage the first loop leaves outside the low byte of each array element.
---
It uses the [undocumented `salc` instruction](https://courses.engr.illinois.edu/ece390/archive/spr2002/books/labmanual/inst-ref-salc.html) to set AL from CF, in the same way that `sbb al,al` would. It's supported on every Intel CPU (except in 64-bit mode), even Knight's Landing! [Agner Fog lists timings for it](http://agner.org/optimize/) on all AMD CPUs as well (including Ryzen), so if x86 vendors insist on tying up that byte of opcode space ever since 8086, we might as well take advantage of it.
Interesting tricks:
* [unsigned-compare trick](https://stackoverflow.com/questions/35932273/how-to-access-a-char-array-and-change-lower-case-letters-to-upper-case-and-vice/35936844#35936844) for a combined isalpha() and toupper(), and zero-extends the byte to fill eax, setting up for:
* immediate bitmap in a register for `bt`, [inspired by some nice compiler output for `switch`](https://stackoverflow.com/questions/97987/advantage-of-switch-over-if-else-statement/32356125#32356125).
* Creating a variable-sized array on the stack with push in a loop. (Standard for asm, but not something you can do with C for the implicit-length string version). It uses 4 bytes of stack space for every input character, but saves at least 1 byte vs. optimal golfing around `stosb`.
* Instead of cmp/setne on the boolean array, XOR booleans together to get a truth value directly. (`cmp`/`salc` isn't an option, because `salc` only works for CF, and 0xFF-0 doesn't set CF. `sete` is 3 bytes, but would avoid the `inc` outside the loop, for a net cost of 2 bytes (1 in 64-bit mode)) vs. xor in the loop and fixing it with inc.
```
; explicit-length version: input string in ESI, byte count in ECX
08048060 <dennis_like>:
8048060: 55 push ebp
8048061: 89 e5 mov ebp,esp ; a stack frame lets us restore esp with LEAVE (1B)
8048063: ba ee be ef 03 mov edx,0x3efbeee ; consonant bitmap
08048068 <dennis_like.filter_loop>:
8048068: ac lods al,BYTE PTR ds:[esi]
8048069: 24 5f and al,0x5f ; uppercase
804806b: 2c 41 sub al,0x41 ; range-shift to 0..25
804806d: 3c 19 cmp al,0x19 ; reject non-letters
804806f: 77 05 ja 8048076 <dennis_like.non_alpha>
8048071: 0f a3 c2 bt edx,eax # AL = 0..25 = position in alphabet
8048074: d6 SALC ; set AL=0 or 0xFF from carry. Undocumented insn, but widely supported
8048075: 50 push eax
08048076 <dennis_like.non_alpha>:
8048076: e2 f0 loop 8048068 <dennis_like.filter_loop> # ecx = remaining string bytes
; end of first loop
8048078: 89 ee mov esi,ebp ; ebp = one-past-the-top of the bool array
0804807a <dennis_like.palindrome_loop>:
804807a: 58 pop eax ; read from the bottom
804807b: 83 ee 04 sub esi,0x4
804807e: 32 06 xor al,BYTE PTR [esi]
8048080: 75 04 jne 8048086 <dennis_like.non_palindrome>
8048082: 39 e6 cmp esi,esp ; until the pointers meet or cross in the middle
8048084: 77 f4 ja 804807a <dennis_like.palindrome_loop>
08048086 <dennis_like.non_palindrome>:
; jump or fall-through to here with al holding an inverted boolean
8048086: 40 inc eax
8048087: c9 leave
8048088: c3 ret
;; 0x89 - 0x60 = 41 bytes
```
This is probably also one of the fastest answers, since none of the golfing really hurts too badly, at least for strings under a few thousand characters where the 4x memory usage doesn't cause a lot of cache-misses. (It might also lose to answers that take an early-out for non-Dennis-like strings before looping over all the characters.) `salc` is slower than `setcc` on many CPUs (e.g. 3 uops vs. 1 on Skylake), but a bitmap check with `bt/salc` is still faster than a string-search or regex-match. And there's no startup overhead, so it's extremely cheap for short strings.
Doing it in one pass on the fly would mean repeating the classification code for the up and down directions. That would be faster but larger code-size. (Of course if you want fast, you can do 16 or 32 chars at a time with SSE2 or AVX2, still using the compare trick by range-shifting to the bottom of the signed range).
---
**Test program (for ia32 or x32 Linux)** to call this function with a cmdline arg, and exit with status = return value. `strlen` implementation from [int80h.org](http://www.int80h.org/strlen/).
```
; build with the same %define macros as the source below (so this uses 32-bit regs in 32-bit mode)
global _start
_start:
;%define PTRSIZE 4 ; true for x32 and 32-bit mode.
mov esi, [rsp+4 + 4*1] ; esi = argv[1]
;mov rsi, [rsp+8 + 8*1] ; rsi = argv[1] ; For regular x86-64 (not x32)
%if IMPLICIT_LENGTH == 0
; strlen(esi)
mov rdi, rsi
mov rcx, -1
xor eax, eax
repne scasb ; rcx = -strlen - 2
not rcx
dec rcx
%endif
mov eax, 0xFFFFAEBB ; make sure the function works with garbage in EAX
call dennis_like
;; use the 32-bit ABI _exit syscall, even in x32 code for simplicity
mov ebx, eax
mov eax, 1
int 0x80 ; _exit( dennis_like(argv[1]) )
;; movzx edi, al ; actually mov edi,eax is fine here, too
;; mov eax,231 ; 64-bit ABI exit_group( same thing )
;; syscall
```
---
A 64-bit version of this function could use `sbb eax,eax`, which is only 2 bytes instead of 3 for `setc al`. It would also need an extra byte for `dec` or `not` at the end (because only 32-bit has 1-byte inc/dec r32). Using the x32 ABI (32-bit pointers in long mode), we can still avoid REX prefixes even though we copy and compare pointers.
`setc [rdi]` can write directly to memory, but reserving ECX bytes of stack space costs more code-size than that saves. (And we need to move through the output array. `[rdi+rcx]` takes one extra byte for the addressing mode, but really we need a counter that doesn't update for filtered characters so it's going to be worse than that.)
---
**This is the YASM/NASM source with `%if` conditionals. It can be built with `-felf32` (32-bit code) or `-felfx32` (64-bit code with the x32 ABI), and with implicit or explicit length**. I've tested all 4 versions. See [this answer](https://stackoverflow.com/a/36901649/224132) for a script to build a static binary from NASM/YASM source.
To test the 64-bit version on a machine without support for the x32 ABI, you can change the pointer regs to 64-bit. (Then simply subtract the number of REX.W=1 prefixes (0x48 bytes) from the count. In this case, 4 instructions need REX prefixes to operate on 64-bit regs). Or simply call it with the `rsp` and the input pointer in the low 4G of address space.
```
%define IMPLICIT_LENGTH 0
; This source can be built as x32, or as plain old 32-bit mode
; x32 needs to push 64-bit regs, and using them in addressing modes avoids address-size prefixes
; 32-bit code needs to use the 32-bit names everywhere
;%if __BITS__ != 32 ; NASM-only
%ifidn __OUTPUT_FORMAT__, elfx32
%define CPUMODE 64
%define STACKWIDTH 8 ; push / pop 8 bytes
%else
%define CPUMODE 32
%define STACKWIDTH 4 ; push / pop 4 bytes
%define rax eax
%define rcx ecx
%define rsi esi
%define rdi edi
%define rbp ebp
%define rsp esp
%endif
; A regular x86-64 version needs 4 REX prefixes to handle 64-bit pointers
; I haven't cluttered the source with that, but I guess stuff like %define ebp rbp would do the trick.
;; Calling convention similar to SysV x32, or to MS vectorcall, but with different arg regs
;; _Bool dennis_like_implicit(const char *esi)
;; _Bool dennis_like_explicit(size_t ecx, const char *esi)
global dennis_like
dennis_like:
; We want to restore esp later, so make a stack frame for LEAVE
push rbp
mov ebp, esp ; enter 0,0 is 4 bytes. Only saves bytes if we had a fixed-size allocation to do.
; ZYXWVUTSRQPONMLKJIHGFEDCBA
mov edx, 11111011111011111011101110b ; consonant/vowel bitmap for use with bt
;;; assume that len >= 1
%if IMPLICIT_LENGTH
lodsb ; pipelining the loop is 1B shorter than jmp .non_alpha
.filter_loop:
%else
.filter_loop:
lodsb
%endif
and al, 0x7F ^ 0x20 ; force ASCII to uppercase.
sub al, 'A' ; range-shift to 'A' = 0
cmp al, 'Z'-'A' ; if al was less than 'A', it will be a large unsigned number
ja .non_alpha
;; AL = position in alphabet (0-25)
bt edx, eax ; 3B
%if CPUMODE == 32
salc ; 1B only sets AL = 0 or 0xFF. Not available in 64-bit mode
%else
sbb eax, eax ; 2B eax = 0 or -1, according to CF.
%endif
push rax
.non_alpha:
%if IMPLICIT_LENGTH
lodsb
test al,al
jnz .filter_loop
%else
loop .filter_loop
%endif
; al = potentially garbage if the last char was non-alpha
; esp = bottom of bool array
mov esi, ebp ; ebp = one-past-the-top of the bool array
.palindrome_loop:
pop rax
sub esi, STACKWIDTH
xor al, [rsi] ; al = (arr[up] != arr[--down]). 8-bit operand-size so flags are set from the non-garbage
jnz .non_palindrome
cmp esi, esp
ja .palindrome_loop
.non_palindrome: ; we jump here with al=1 if we found a difference, or drop out of the loop with al=0 for no diff
inc eax ;; AL transforms 0 -> 1 or 0xFF -> 0.
leave
ret ; return value in AL. high bytes of EAX are allowed to contain garbage.
```
I looked at messing around with DF (the direction flag that controls `lodsd` / `scasd` and so on), but it just didn't seem to be a win. The usual ABIs require that DF is cleared on function entry and exit. Assuming cleared on entry but leaving it set on exit would be cheating, IMO. It would be nice to use LODSD / SCASD to avoid the 3-byte `sub esi, 4`, especially in the case where there's no high-garbage.
---
### Alternate bitmap strategy (for x86-64 implicit-length strings)
It turns out this doesn't save any bytes, because `bt r32,r32` still works with high garbage in the bit-index. It's just not documented the way `shr` is.
Instead of `bt / sbb` to get the bit into / out of CF, use a shift / mask to isolate the bit we want from the bitmap.
```
%if IMPLICIT_LENGTH && CPUMODE == 64
; incompatible with LOOP for explicit-length, both need ECX. In that case, bt/sbb is best
xchg eax, ecx
mov eax, 11111011111011111011101110b ; not hoisted out of the loop
shr eax, cl
and al, 1
%else
bt edx, eax
sbb eax, eax
%endif
push rax
```
Since this produces 0/1 in AL at the end (instead of 0/0xFF), we can do the necessary inversion of the return value at the end of the function with `xor al, 1` (2B) instead of `dec eax` (also 2B in x86-64) to still produce a proper [`bool` / `_Bool`](http://en.cppreference.com/w/c/language/arithmetic_types#Boolean_type) return value.
This used to save 1B for x86-64 with implicit-length strings, by avoiding the need to zero the high bytes of EAX. (I had been using `and eax, 0x7F ^ 0x20` to force to upper-case and zero the rest of eax with a 3-byte `and r32,imm8`. But now I'm using the 2-byte immediate-with-AL encoding that most 8086 instructions have, like I was already doing for the `sub` and `cmp`.)
It loses to `bt`/`salc` in 32-bit mode, and explicit-length strings need ECX for the count so this doesn't work there either.
But then I realized that I was wrong: `bt edx, eax` still works with high garbage in eax. It masks the shift count [the same way `shr r32, cl` does](http://felixcloutier.com/x86/SAL:SAR:SHL:SHR.html) (looking only at the low 5 bits of cl). This is different from `bt [mem], reg`, which can access outside the memory referenced by the addressing-mode/size, treating it as a bitstring. (Crazy CISC...)
Intel's insn set ref [manual entry for `bt`](https://www.felixcloutier.com/x86/bt) does document the masking in the description section: *If the bit base operand specifies a register, the instruction takes the modulo 16, 32, or 64 of the bit offset operand (modulo size depends on the mode and register size).* Apparently I missed it when writing this answer originally; I checked a Jan 2015 version of the PDF and it was already there.
A neat trick here is using `xchg eax,ecx` (1 byte) to get the count into CL. Unfortunately, BMI2 `shrx eax, edx, eax` is 5 bytes, vs. only 2 bytes for `shr eax, cl`. Using `bextr` needs a 2-byte `mov ah,1` (for the number of bits to extract), so it's again 5 + 2 bytes like SHRX + AND.
---
The source code has gotten pretty messy after adding `%if` conditionals. **Here's disassembly of x32 implicit-length strings** (using the alternate strategy for the bitmap, so it's still 46 bytes).
The main difference from the explicit-length version is in the first loop. Notice how there's a `lods` before it, and at the bottom, instead of just one at the top of the loop.
```
; 64-bit implicit-length version using the alternate bitmap strategy
00400060 <dennis_like>:
400060: 55 push rbp
400061: 89 e5 mov ebp,esp
400063: ac lods al,BYTE PTR ds:[rsi]
00400064 <dennis_like.filter_loop>:
400064: 24 5f and al,0x5f
400066: 2c 41 sub al,0x41
400068: 3c 19 cmp al,0x19
40006a: 77 0b ja 400077 <dennis_like.non_alpha>
40006c: 91 xchg ecx,eax
40006d: b8 ee be ef 03 mov eax,0x3efbeee ; inside the loop since SHR destroys it
400072: d3 e8 shr eax,cl
400074: 24 01 and al,0x1
400076: 50 push rax
00400077 <dennis_like.non_alpha>:
400077: ac lods al,BYTE PTR ds:[rsi]
400078: 84 c0 test al,al
40007a: 75 e8 jne 400064 <dennis_like.filter_loop>
40007c: 89 ee mov esi,ebp
0040007e <dennis_like.palindrome_loop>:
40007e: 58 pop rax
40007f: 83 ee 08 sub esi,0x8
400082: 32 06 xor al,BYTE PTR [rsi]
400084: 75 04 jne 40008a <dennis_like.non_palindrome>
400086: 39 e6 cmp esi,esp
400088: 77 f4 ja 40007e <dennis_like.palindrome_loop>
0040008a <dennis_like.non_palindrome>:
40008a: ff c8 dec eax ; invert the 0 / non-zero status of AL. xor al,1 works too, and produces a proper bool.
40008c: c9 leave
40008d: c3 ret
0x8e - 0x60 = 0x2e = 46 bytes
```
Update: instead of using 32-bit pointers, I could have used `push rsp` / `pop rbp` to copy a 64-bit register in 2 bytes of code. ([Tips for golfing in x86/x64 machine code](https://codegolf.stackexchange.com/questions/132981/tips-for-golfing-in-x86-x64-machine-code/190636#190636)). But `sub rsi,0x8` and `cmp rsi,rsp` would need REX prefixes which I'm avoiding here by using 32-bit pointers. Perhaps comparing the low 32 could work if the stack doesn't cross a 4GiB boundary, so just the `sub`.
I wonder if `pop rdx` / `std` / `lodsq` / `cld` / `xor al, dl` could work? No, that's 7 bytes, break-even with just using `sub rsi, 8` in the loop body.
[Answer]
# [Retina](https://github.com/m-ender/retina), ~~49 47~~ 45 bytes
```
\P{L}
i`[aeiou]
1
\D
2
+`^(.)(.*)\1$
$2
^.?$
```
[Try it online!](https://tio.run/##LcxZd8FAGIDh@@9XpAQJ7ZBo6WYJsYutOxEJBmOZYVBa1b8ePU5v3ufu5XhDqOP6pILtmo1D9QhA7I6DCdt2QQFTBxVCtiUhWUJB2VREEFWwUEp0XR1TStZgOPxv8Y@Qo0PMQZvj/TmChkBnjM8o64OBxwyEC49X9PkDkhwMXV6hcERRo9c3sfjt3f3DYyKZSmuZrJ7LF4qlcqVq1OqNZuvp@eX17f2j3TG7Vs92@oMhHo0nZDqbLyhbrvh6s/3c7b@@Dz/H3xM "Retina – Try It Online")
Saved 2 bytes thanks to Neil.
Saved another 2 bytes thanks to Martin.
Removes non-letters then replaces vowels with 1 and consonants with 2, to get consistent values. Then repeatedly removes the first and last character if they are the same. Once they aren't, the word was symmetric if there are one or zero characters remaining.
[Answer]
# PHP, 82 Bytes
```
<?=strrev($s=preg_replace(["#[^a-z]#i","#[aeiou]#i","#\pL#"],["",0,1],$argn))==$s;
```
[Try it online!](https://tio.run/nexus/php#s7EvyCjgUkksSs@zVfJNLCrJzFNwzUtJLVKy5rK3@29jb1tcUlSUWqahUmxbUJSaHl@UWpCTmJyqEa2kHB2XqFsVq5yppANkJ6Zm5pdCOTEFPspKsTrRSko6BjqGsTpg4zU1bW1Viq3//wcA "PHP – TIO Nexus")
[Answer]
# MATL, 14 bytes
```
t3Y2m)13Y2mtP=
```
Try it at [MATL Online](https://matl.io/?code=t3Y2m%2913Y2mtP%3D&inputs=%27Martin+Ender%27&version=20.0.0).
[Here](https://matl.io/?code=%60i%0A++++t3Y2m%2913Y2mtP%3D%0A%3F%27TRUE%27D%7D%27FALSE%27D%5DT&inputs=%27Dennis%27%0A%27Martin%27%0A%27Martin+Ender%27%0A%27Alex%27%0A%27Alex+A.%27%0A%27Doorknob%27%0A%27Mego%27&version=20.0.0) is a slightly modified version to check all test cases.
**Explanation**
```
% Implicitly grab the input as a string
% STACK: {'Martin Ender'}
t % Duplicate the input
% STACK: {'Martin Ender', 'Martin Ender'}
3Y2 % Push the string 'ABC...XYZabc...xyz'
% STACK: {'Martin Ender', 'Martin Ender', 'ABC...XYZabc...xyz'}
m % Find which characters of the input are letters using this string
% STACK: {'Martin Ender', [1 1 1 1 1 1 0 1 1 1 1]}
) % Use this boolean array to select only the letters
% STACK: {'MartinEnder'}
13Y2 % Push the string literal 'aeiouAEIOU' to the stack
% STACK: {'MartinEnder', 'aeiouAEIOU'}
m % Check for membership of each letter of the input in this string.
% STACK: {[0 1 0 0 1 0 1 0 0 1 0]}
tP % Create a reversed copy
% STACK: {[0 1 0 0 1 0 1 0 0 1 0], [0 1 0 0 1 0 1 0 0 1 0]}
= % Perform an element-wise comparison yielding a truthy (all 1's) or
% falsey (any 0's) result
% STACK: {[1 1 1 1 1 1 1 1 1 1 1]}
% Implicitly display the result
```
[Answer]
# Haskell, 84 75 74 69 bytes
-10 thanks to @nimi
-5 thanks to @Zgarb
```
f x=(==)<*>reverse$[elem c"aeiouAEIOU"|c<-x,'@'<c,c<'{','`'<c||c<'[']
```
The list comprehension replaces each letter with a boolean and removes all other characters. The first part checks whether or not the resulting list is a palindrome.
[Try it online!](https://tio.run/nexus/haskell#@5@mUGGrYWuraaNlV5RallpUnKoSnZqTmquQrJSYmplf6ujq6R@qVJNso1uho@6gbpOsk2yjXq2uo54AZNcAxdWj1WO5uHITM/MUbBVS8rkUFAqKMvNKFDTSFJQyUnNy8pU0UcRS8tPRRBJNTCz0rPXTdQ0sLcxLUtFkDU3QBAwsE4Em/P8PAA "Haskell – TIO Nexus")
[Answer]
# Pyth, ~~18~~ 15 bytes
```
_I/L"aeiou"@Gr0
```
[Try it here.](http://pyth.herokuapp.com/?code=_I%2FL%22aeiou%22%40Gr0&test_suite=1&test_suite_input=%22Dennis%22%0A%22Martin%22%0A%22Martin+Ender%22%0A%22Alex%22%0A%22Alex+A.%22%0A%22Doorknob%22%0A%22Mego%22&debug=0)
-2 thanks to [KarlKastor](https://codegolf.stackexchange.com/users/56557/karlkastor), and subsequently -1.
[Answer]
# [Brachylog](https://github.com/JCumin/Brachylog), 13 bytes
```
ḷ{∈Ṿg|∈Ḅg}ˢ.↔
```
[Try it online!](https://tio.run/nexus/brachylog2#@/9wx/bqRx0dD3fuS68B0Tta0mtPL9J71Dbl/38lx5zUCgVHPaX/AA "Brachylog – TIO Nexus")
### Explanation
```
ḷ Lowercase the input
{ }ˢ. Select each char if:
∈Ṿg it's a vowel, and replace it with ["aeiou"]
| Or
∈Ḅg it's a consonant, and replace it with ["bcdfghjklkmnpqrstvwxyz"]
.↔ The resulting list is a palindrome
```
[Answer]
# [Alice](https://github.com/m-ender/alice), 28 bytes
```
/uia.QN."-e@
\1"lyuy.Ra$i1/o
```
[Try it online!](https://tio.run/##S8zJTE79/1@/NDNRL9BPT0k31YErxlApp7K0Ui8oUSXTUD///3@X1Ly8zGIA "Alice – Try It Online")
Outputs `1` as truthy and nothing as falsy.
### Explanation
Every command in this program executes in ordinal mode, but with a slight twist in the template that allows me to save a byte. If a newline is an acceptable truthy value, I can save one more byte by the same method.
Linearized, the program is as follows:
```
1il.uN."aei ou"ayQy.R-$@1o1@
1 % Append "1" to top of stack
% STACK: ["1"]
i % Push input to stack
% STACK: ["1", "Dennis"]
l % Convert to lowercase
% STACK: ["1", "dennis"]
. % Duplicate
% STACK: ["1", "dennis", "dennis"]
u % Convert to uppercase
% STACK: ["1", "dennis", "DENNIS"]
N % Take multiset difference; this removes all non-alphabetic characters
% STACK: ["1", "dennis"]
. % Duplicate
% STACK: ["1", "dennis", "dennis"]
"aei ou" % Push "aei ou"
% STACK: ["1", "dennis", "dennis", "aei ou"]
a % Push newline
% STACK: ["1", "dennis", "dennis", "aeiou", "\n"]
y % Transliterate: replace all vowels with newlines
% STACK: ["1", "dennis", "d\nnn\ns"]
Q % Reverse stack
% STACK: ["d\nnn\ns", "dennis", "1"]
y % Transliterate: replace remaining characters with "1"
% STACK: ["1\n11\n1"]
. % Duplicate
% STACK: ["1\n11\n1", "1\n11\n1"]
R % Reverse top of stack
% STACK: ["1\n11\n1", "1\n11\n1"]
- % Remove occurrences: for same-length strings, result is "" iff strings are equal.
% STACK: [""]
$ % Pop stack, and skip next command if ""
@ % Terminate (skipped if c/v pattern is palindromic)
1o % Output "1"
1 % Push "1" (useless)
@ % Terminate
```
[Answer]
# [Python 3](https://docs.python.org/3/), ~~72~~ 71 bytes
-1 byte thanks to @ovs
```
def f(s):s=[c in'AEIOU'for c in s.upper()if'@'<c<'['];return s==s[::-1]
```
[Try it online!](https://tio.run/nexus/python3#@5@SmqaQplGsaVVsG52skJmn7ujq6R@qnpZfpADiKhTrlRYUpBZpaGamqTuo2yTbqEerx1oXpZaUFgElbW2Lo62sdA1j//8HAA "Python 3 – TIO Nexus")
[Answer]
## JavaScript (ES6), ~~72~~ 69 bytes
*Saved 3 bytes thanks to Neil*
Returns a boolean.
```
s=>(a=s.match(/[a-z]/gi).map(c=>!/[aeiou]/i.exec(c)))+''==a.reverse()
```
### Test cases
```
let f =
s=>(a=s.match(/[a-z]/gi).map(c=>!/[aeiou]/i.exec(c)))+''==a.reverse()
console.log(f("Dennis")) // -> truthy
console.log(f("Martin")) // -> truthy
console.log(f("Martin Ender")) // -> truthy
console.log(f("Alex")) // -> falsy
console.log(f("Alex A.")) // -> truthy
console.log(f("Doorknob")) // -> falsy
console.log(f("Mego")) // -> falsy
```
[Answer]
# Braingolf, ~~4~~ 3 bytes
```
&JP
```
*-1 byte thanks to Erik the Outgolfer*
Turns out I had `P` all along, even before this challenge.
~~`J` however, despite being created before this challenge, wasn't pushed to github before the challenge, thus is still non-competing.~~
### Explanation:
```
&JP Implicit input, push ASCII value of each char in string to stack
&J Replace each item in stack with 1 if vowel, otherwise 0
P Pop entire stack, push 1 if stack is palindromic, 0 otherwise
Implicit output of last item on stack
```
[Answer]
# [Vyxal](https://github.com/Vyxal/Vyxal), 4 bytes
```
ǍAḂ⁼
```
[Try it Online!](https://vyxal.pythonanywhere.com/#WyIiLCIiLCLHjUHhuILigbwiLCIiLCJEZW5uaXMiXQ==)
```
Ǎ # Non-alphabet chars removed
A # Vowel mask (1 for vowel, 0 for not)
Ḃ⁼ # Is equal to its reverse?
```
# [Vyxal 2.4.1](https://github.com/Vyxal/Vyxal/releases/tag/v2.4.1), 7 bytes
```
Ǎk∨vcḂ⁼
```
[Try it Online!](https://lyxal.pythonanywhere.com?flags=&code=%C7%8Dk%E2%88%A8vc%E1%B8%82%E2%81%BC&inputs=eoiurhejweiei&header=&footer=)
-6 thanks to lyxal
-1 thanks to Underslash
[Answer]
# [Python 3](https://docs.python.org/3/), ~~92~~ ~~87~~ ~~74~~ ~~72~~ ~~69~~ 68 bytes
```
l=[c in'aeouiAEOUI'for c in input()if c.isalpha()]
print(l==l[::-1])
```
[Try it online!](https://tio.run/##K6gsycjPM/7/P8c2OlkhM089MTW/NNPR1T/UUz0tv0gBJAZEBaUlGpqZaQrJepnFiTkFGYkamrFcBUWZeSUaOba2OdFWVrqGsZr//7uk5uVlFgMA "Python 3 – Try It Online")
[Answer]
# Mathematica, 113 bytes
```
PalindromeQ@StringCases[StringReplace[#,{Characters["aeiouAEIOU"]->"1",CharacterRange["A","z"]->"0"}],{"0","1"}]&
```
[Answer]
# [GolfScript](http://www.golfscript.com/golfscript/), 42 bytes
```
{123,65>.26>6<-?)},{"AEIOUaeiou"?)!}%.-1%=
```
[Try it online!](https://tio.run/##S8/PSStOLsosKPn/v9rQyFjHzNROz8jMzsxG116zVqdaydHV0z80MTUzv1TJXlOxVlVP11DV9v9/x5zUCgVHPQA "GolfScript – Try It Online")
The hard part is generating both the uppercase and lowercase alphabet in one string, which we'll use in a filter function to filter the letters out of the input. Luckily, since strings in GolfScript are just codepoint arrays with a special property, so we can just generate the codepoints in an efficient way. Here's how we generate them:
First, we generate range [0..122], 122 being the codepoint for `z`. Then, we take the elements from the element at index 65 onwards. 65 is the codepoint for `A`. Right now, we have [65..122]. All fine, except we have some unwanted codepoints ([91..96]) in there. So, we first make a duplicate of that range. Then, we take the elements from index 26 onwards, and we have [91..122]. After that, we get the elements up to and including index 5. Now we have [91..96]. Finally, we remove those elements from our [65..122], leaving us wil [65..90, 97..122]. Those are the codepoints we want.
Now that we made the upper/lower alphabet codepoint list, we continue our filtering function. The function gets mapped to each character on the input string, which, as I initially said, gets parsed as its codepoint instead. So now we essentially have `[codepoint, [65..90, 97..122]]`. To find out if char `codepoint` is a letter, we simply take its index in the list we made. If it isn't there, we'll get `-1` as the index instead.
Right now, we get a falsey value only if `codepoint == 65`, i.e. the first index of our list, since only then would the index be 0. But a single increment will fix this problem, and, now, if `codepoint` is in our list, we'll get its index + 1, which is always a positive number, thus always truthy, while if it's not there we'll get -1 + 1 = 0, i.e. falsey.
We finally apply the function I described to every char of the input, and we only take the chars for which the function returned a truthy result.
Next up we have to determine if each char is a vowel or consonant. Since the vowels are fewer than the consonants, creating a string of vowels so that we check for that condition is shorter than creating a string of consonants, so we check if each char is a vowel. But, to check if the boolean list is palindromic, we need booleans, which we don't get just by taking the index + 1, since that can result in any number of [1..10] if the char is a vowel. And, as most golfing languages, this one, doesn't have a `bool` function either. So, we simply use `not not x`, since `not` always returns a boolean. But wait; do we really need to have specific booleans? Since `not` always returns a boolean, why don't we just remove the second `not`, and actually check if each char is a consonant? Yeah, that's exactly what we'll do!
After the check, which returns a list of booleans, we check if this boolean list we got is a palindrome, which is what this challenge asks us to do. Well, what is the definition of a palindrome? Yes, a palindrome is a list or string which is equal to its reverse. So, how do we check? Simple, we duplicate it, take its reverse, and check against the original list. The result we get is, *finally*, what our code should return.
[Answer]
# [PHP](https://php.net/), 87 bytes
Regex free PHP version. Added a "vowel" since stripos can return 0 which is false in PHP.
Flaw fixed by Jörg.
```
for(;a&$c=$argn[$p++];)!ctype_alpha($c)?:$s.=stripos(_aeiou,$c)?0:1;echo$s==strrev($s);
```
[Try it online!](https://tio.run/nexus/php#HclRCoMwDADQ/91CCdLiGO7XrHgCTyBDQqlrYdiQdANP3@F@33tMHPkCJK/dtTNJSXuLdctikDrw7j8LcN8/0Ta@HBxWenMkA95OI@jNaZHEWc1KIeXP9fRhvGPwMYO6syV8DajFWn8 "PHP – TIO Nexus")
[Answer]
# q/kdb+, ~~42~~ 38 bytes
**Solution:**
```
{x~|:[x]}{inter[x;.Q.a]in"aeiou"}lower
```
**Example:**
```
q){x~|:[x]}{inter[x;.Q.a]in"aeiou"}lower"Dennis"
1b
q){x~|:[x]}{inter[x;.Q.a]in"aeiou"}lower"Adam"
0b
q){x~|:[x]}{inter[x;.Q.a]in"aeiou"}lower"Alex A."
1b
```
**Explanation:**
```
lower // converts argument on the right to lowercase
.Q.a // lowercase alphabet "abc..xyz"
inter[x;y] // intersection of x and y (thus only return a-z)
x in "aeiou" // returns boolean list whether x is a vowel; "dennis" = 010010b
|: // k shorthand for 'reverse'
```
**Edits:**
* -4 bytes; switching out `reverse` for k equivalent `|:`
[Answer]
# [CJam](https://sourceforge.net/p/cjam), 26 bytes
```
lel_'{,97>--"aeiou"fe=_W%=
```
[Try it online!](https://tio.run/##S85KzP3/Pyc1J169WsfS3E5XVykxNTO/VCkt1TY@XNX2/3/HnNQKBUc9AA "CJam – Try It Online")
-1 thanks to [Esolanging Fruit](https://codegolf.stackexchange.com/users/61384/esolanging-fruit).
[Answer]
# [Stax](https://github.com/tomtheisen/stax), 18 [bytes](https://github.com/tomtheisen/stax/blob/master/docs/packed.md#packed-stax)
```
⌠╟%╜«¥│▒g♦°pC₧╤WsV
```
[Run and debug it](https://staxlang.xyz/#c=%5E%22%5B%5EA-Z%5D%22zR%7BVVI0%3CFLcr%3D&i=Dennis%0AMartin%0AMartin+Ender%0AAlex%0AAlex+A.%0ADoorknob%0AMego&m=2)
## Explanation
```
^"[^A-Z]"zR{VVI0<FLcr=
^ capitalize input
"[^A-Z]"zR remove all non alphabet characters
{ F loop over modified string
VV "AEIOU"
I Index of character (-1 if not present)
0< less than 0
push the result to stack
L wrap the stack in an array
c duplicate it
r reverse it
= are they equal?
```
[Answer]
# Python 2, 83 bytes
```
def f(x):k=map(lambda y:y.lower()in"aeiou",filter(str.isalpha,x));return k==k[::-1]
```
Defines a function that either gives `True` or `False`
[Answer]
# [CJam](https://sourceforge.net/p/cjam), 79 bytes
First-timer! (I did what I could)
```
r{:X"AEIOUaeiou"#W>{X"BCDFGHJKLMNPQRSTVWXYZbdfghjklmnpqrstvwxyz"#W={'0}&}'1?~}%
```
[Try it online!](https://tio.run/nexus/cjam#@19UbRWh5Ojq6R@amJqZX6qkHG5XHaHk5Ozi5u7h5e3j6xcQGBQcEhYeERmVlJKWnpGVnZObV1BYVFxSVl5RWQVUb1utblCrVqtuaF9Xq/r/v0tqXl5mMQA "CJam – TIO Nexus")
[Answer]
# Ruby, 57 bytes
```
->s{x=s.scan(/\p{L}/).map{|c|c=~/[aeiou]/i};x==x.reverse}
```
[Try it online!](https://tio.run/nexus/ruby#S7P9r2tXXF1hW6xXnJyYp6EfU1DtU6uvqZebWFBdk1yTbFunH52YmplfGqufWWtdYWtboVeUWpZaVJxa@79AIS1aySU1Ly@zWCmWC8zzTSwqycxD5Sm45qWkFsHEHHNSK5DZCo56MK5Lfn5Rdl5@Elx7anq@Uux/AA "Ruby – TIO Nexus")
[Answer]
# [Bash](https://www.gnu.org/software/bash/), 82 bytes
```
i=${1//[^a-zA-Z]};a=aeouiAEOUI;b=${i//[$a]/0};c=${b//[!0$a]/1};[ $c = `rev<<<$c` ]
```
[Try it online!](https://tio.run/nexus/bash#LY27DoJAEEV7v@JKNnYIti7EkEBhQaxsJBgWGHWj2UnWR3zx7bgSmjv3nElmDmyhoQ1SMkZfkSt7c@SNMzMtWQ/JhZ7whkzmHlJmezZcI6cjQ6LlCTUnhm8g9FL2OhYfHQTFXvnvxN@VnVSxIr7rJNts17Ie10KVQdjJxmHtcBr@xaKTBUSDGJWlRxRFoqlQ9s6t3H1CiHI2G76Z7xdDeclJy4b6Hw "Bash – TIO Nexus")
Recives name as parameter, removes non-leters, replaces vowels with 0, non-vowels nor 0 with 1 and compares with same reversed.
Could golf some more if can get to work [double or triple substitution](https://unix.stackexchange.com/questions/68042/double-and-triple-substitution-in-bash-and-zsh)
Exit status is 0 for true and 1 for no.
[Answer]
## Perl, 42 bytes
```
s!(.)\PL*!1+aeiou=~lc$1!ge;$_=$_==reverse
```
Run with `perl -p`.
[Answer]
# [Japt](https://github.com/ETHproductions/japt) v2.0a0, ~~19~~ 11 bytes
```
k\L mè\v ê¬
```
[Try it online](https://ethproductions.github.io/japt/?v=2.0a0&code=a1xMIG3oXHYg6qw=&input=IkRlbm5pcyI=)
---
## Explanation
```
:Implicit input of string U.
k\L :Remove all non-letter characters from U.
m :Map over resulting string, replacing each character ...
è\v :with the count of the number of vowels in each single character substring.
ê¬ :Is the above a palindrome?
:Implicit output of boolean result.
```
[Answer]
# 64-bit machine code, 89 bytes.
A function of following signature: `eax = f(char * edi)`
```
48 89 F8 48 89 FE 41 B8 22 82 20 00 8A 0E 84 C9
74 23 89 CA 83 E2 DF 0F BE D2 83 EA 41 83 FA 19
77 0E 44 89 C2 48 FF C0 D3 FA 83 E2 01 88 50 FF
48 FF C6 EB D7 C6 00 02 48 FF C7 48 FF C8 8A 17
40 8A 30 40 38 77 FF 75 05 80 FA 02 75 EA 31 C0
80 FA 02 0F 94 C0 C3
```
Assembled using NASM, from such assembly code:
```
; edi => input string.
; eax <= 1 or 0.
; notes:
; the string needs to be null terminated and located in a
; writable memory location, as it will be mutated.
BITS 64
DENNIS: MOV RAX, RDI
MOV RSI, RDI
MOV R8D, 0x208222
.CTOR: MOV CL, BYTE [RSI]
TEST CL, CL
JE .SP
MOV EDX, ECX
AND EDX, -33
MOVSX EDX, DL
SUB EDX, 65
CMP EDX, 25
JA .LI
MOV EDX, R8D
INC RAX
SAR EDX, CL
AND EDX, 1
MOV BYTE [RAX-1], DL
.LI: INC RSI
JMP .CTOR
.SP: MOV BYTE [RAX], 2
.EQL: INC RDI
DEC RAX
MOV DL, BYTE [RDI]
MOV SIL, BYTE [RAX]
CMP BYTE [RDI-1], SIL
JNE .EQE
CMP DL, 2
JNE .EQL
.EQE: XOR EAX, EAX
CMP DL, 2
SETE AL
RET
```
Not a killer, not even close, but it has a couple of advantages over the 41-byte answer:
* Requires no memory (not even stack).
* Doesn't require to check the length of a string - it uses null-termination instead.
* Doesn't use undocumented CPU instructions.
Just my $0.02 :).
[Answer]
# [APL (Dyalog Unicode)](https://www.dyalog.com/), ~~34~~ ~~33~~ 24 bytes
Saved bytes thanks to [Adám](https://codegolf.stackexchange.com/users/43319)
```
≡∘⌽⍨'AEIOU'∊⍨⎕a∩⍨819⌶⍨∘1
```
[Try it online!](https://tio.run/##SyzI0U2pTMzJT///3/FR24RHnQsfdcx41LP3Ue8KdUdXT/9Q9UcdXUDOo76piY86VgJZFoaWj3q2gYQ6ZhgCdR1aoe6SmpeXWayuoO6bWFSSmQdnKLjmpaQWAbmOOakVUErBUQ/IcsnPL8rOy08CKU1Nz1cHAA "APL (Dyalog Unicode) – Try It Online")
`819⌶⍨∘1` uppercase argument
`⎕a∩⍨` intersection with uppercase alphabet
`'AEIOU'∊⍨` belongs-to-`'AEIOU'`? resulting in a boolean vector
`≡∘⌽⍨` reversed equivalent to self?
[Answer]
# [C (gcc)](https://gcc.gnu.org/), 130 bytes
```
d(a,l)char*a,*l;{char*y=alloca(*l),*z=y;for(*l=1;*a;a++)if(isalpha(*a))*y++=!strchr("aeiou",*a|32);for(a=y-z;a--;*l*=*z++==*--y);}
```
[Try it online!](https://tio.run/##ZY/BTsMwEETPzVcYS0W2EyNRblg@VCpH/oDL4jiJxWJXdhAkJb9OiNNLBLeZp5nRrpGtMfNcM6iQmw6igEqguqxy0IAYDDCBvBKjHlQT4mL0vRKgoCy5a5hLgOduyQDnYihLfZP6aLrIKFgXPmgl4PvhwNcq6EGOCqRUAoUW45LWQsqBq2nuberZ9QJ@KXZZESSaLGtoPQOuil0@8xazOkfn@4bRfXok@/rF0yo/oIqpeAfnWV5YB@nJeu8SzZ0reIbYO/8PkCdf27jBR7Rffyw53m3IKYT45sPrdsq2Idtp/jENQptm@fkL "C (gcc) – Try It Online")
Takes input as the string and its length, with the length passed by reference (`d(str, &len)`), and outputs by modifying `len`.
] |
[Question]
[
Consider these seven ASCII train cars.
**Engine (E)**
```
__
====== \/
| [] |=========
| )
================
O-O-O O-O-O \\
```
**Passenger car (P)**
```
===============
| [] [] [] [] |
===============
O-O O-O
```
**Boxcar (B)**
```
===============
|-|-| | |-|-|
===============
O-O O-O
```
**Tanker (T)**
```
_____---_____
( )
===============
O-O O-O
```
**Hopper (H)**
```
_______________
\ | | | | | | /
===============
O-O O-O
```
**Flatbed (F)**
```
===============
O-O O-O
```
**Caboose (C)**
```
=====
====| |====
| [] [] |
=============
O-O O-O
```
Write a program that when given a sequence of the characters `EPBTHFC`, outputs its ASCII train representation, using `--` for the car couplings. The leftmost input characters become the rightmost train cars. The train is always facing right.
For example, an input of `EEHTBPFC` should produce
```
__ __
===== ====== \/ ====== \/
====| |==== =============== =============== _____---_____ _______________ | [] |========= | [] |=========
| [] [] | | [] [] [] [] | |-|-| | |-|-| ( ) \ | | | | | | / | ) | )
=============--===============--===============--===============--===============--===============--================--================
O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O-O O-O-O \\ O-O-O O-O-O \\
```
## Details
* This is code golf; the shortest program in bytes wins.
* Any sequence of one or more of the letters `EPBTHFC` is valid input.
* Your program must be able to output all 7 car types exactly as they appear above.
* Take input from the command line or directly from the user (e.g. message box). Output to stdout. (Quotes around input are fine.)
* The height of the output should either be 6 or the maximum height needed for the train cars being drawn.
* Do not put couplings (`--`) at the front of the first car or the back of the last car.
[Answer]
### Python, 464
```
from curses import*
E,P,B,T,H,F,C='eJyNkM0NgDAIhe9MwVEPpBN0AxMHsKaLdHgfpVr7E+NHUyCQR4C5EiP5jKXBUeLj5ORvkDes5DtEiHeBoWo+hI36NtN9XurrRaVMQTSTEBizPo3+SGBBICLZ0/K9y0whtlDA/Gruj8SwyaRJA9tSPz16qmdTxqO9VeAvC5VloQ=='.decode('base64').decode('zlib').split('L')
i=[s.split('\n')for s in map(eval,raw_input()[::-1])]
h=max(sum(map(bool,s))for s in i)
w=initscr()
x=0
for t in i:[w.addstr(y,x,t[y+6-h])for y in range(h)];x+=len(t[-2])
w.addstr(h-2,x-2,' ')
w.getch()
endwin()
```
I went for an approach using curses. It can't really compete, but I had some fun with it (~630 bytes):
![train](https://i.stack.imgur.com/M5AY6.gif)
```
from curses import*
E,P,B,T,H,F,C='eJyFkMENwCAIRe9M8Y/tgTiBGzTpALVxEYcvSFqiNO2DCAb8BgCnVsodu5ZEDceJlm/kPrBSniDsLCY1i6VsNDeZ6uMt1GEKMJU3ARYD1DX7F5DRBGbukZbvKeL7OkJF/nZL/wJxhrlFE6vooYtuviwlrso1JF745GMr'.decode('base64').decode('zlib').split('L')
i=[s.split('\n')for s in map(eval,raw_input()[::-1])]
h=max(sum(map(bool,s))for s in i)
w=initscr()
m=w.getmaxyx()[1]
for o in range(-sum(2+len(t[-2])for t in i),m):
x=o
for t in i:
if m>x>o:w.addnstr(h-2,max(x,0),'--'[max(0,-x):],m-x);x+=2
[w.addnstr(y,max(x,0),t[y+6-h][max(0,-x):],m-x)for y in range(h)if x<m];x+=len(t[-2])
w.move(h,0);w.refresh();w.clear();napms(90)
endwin()
```
[Answer]
# Perl, 265 bytes
Since this entry contains bytes that do not correspond to printable ASCII characters, it cannot be copy-pasted here directly. Instead, I am providing it as a hex dump. Users on Unix-ish systems can reconstruct the script by feeding the following hex dump to the `xxd -r` command:
```
0000000: 7573 6520 436f 6d70 7265 7373 275a 6c69 use Compress'Zli
0000010: 623b 6576 616c 2075 6e63 6f6d 7072 6573 b;eval uncompres
0000020: 7320 2778 daad 9241 6b83 3014 c7ef f914 s 'x...Ak.0.....
0000030: ef10 6add f67c 5ed6 8b06 c646 476f dda1 ..j..|^....FGo..
0000040: 3723 c183 1d85 8212 c740 087e f625 a6a3 7#.......@.~.%..
0000050: b1f6 24fd 3de1 3d7f e8fb e790 b74a 74ed ..$.=.=......Jt.
0000060: f9f4 c3e9 25cf a328 6310 a094 6b4c 8c78 ....%..(c...kL.x
0000070: 2569 5406 8a12 8cf8 c7ab 09b1 ff71 0222 %iT..........q."
0000080: 833d da02 b874 2981 c10d 3333 df74 39c1 .=...t)...33.t9.
0000090: f531 d6dc 0f03 8f9f 9666 a12d 7021 6e7a .1.......f.-p!nz
00000a0: 6416 2807 228e dd99 3584 c40f cc52 53ac d.(."...5....RS.
00000b0: 9160 82a2 4559 0bcd a22c ff2e 1cc1 0e63 .`..EY...,.....c
00000c0: 9d09 6f85 25b8 13b3 8470 3fe3 5c27 a1eb ..o.%....p?.\'..
00000d0: df5a 7735 b44d 2b86 9eb6 5fef 87dd e707 .Zw5.M+..._.....
00000e0: a5b8 219d b1ae eaed 3743 4709 f1aa d83c ..!.....7CG....<
00000f0: f1d5 3357 257d 6be7 1039 9186 63a3 214d ..3W%}k..9..c.!M
0000100: 9257 f607 1251 a1e7 27 .W...Q..'
```
The script uses the Perl 5.10 `say` feature, and so needs to be run with `perl -M5.010`. It takes a single command line argument consisting of the letters `EPBTHFC` and outputs the corresponding train car arrangement. For example, the input `FEH` produces the following output:
```
__
====== \/
_______________ | [] |=========
\ | | | | | | / | )
===============--================--===============
O-O O-O O-O-O O-O-O \\ O-O O-O
```
The readable code at the beginning of the script simply decompressed the zlib-compressed string containing the body of the script and evals it. The decompressed code, in turn, looks like this:
```
@a=split$/,<<'';
__
====== \/
| [] |=========
| )
================--
O-O-O O-O-O \\
===============
| [] [] [] [] |
===============--
O-O O-O
===============
|-|-| | |-|-|
===============--
O-O O-O
_____---_____
( )
===============--
O-O O-O
_______________
\ | | | | | | /
===============--
O-O O-O
===============--
O-O O-O
=====
====| |====
| [] [] |
=============--
O-O O-O
$i=reverse pop=~y/EPBTHFC/0-6/r;
say$i=~s/./$a[6*$&+$_]/gr=~s/--$//r for 0..5
```
Note that all the train cars have their lines padded with spaces to a uniform length, and include the coupling (which is stripped from the rightmost car by the output loop). The DEFLATE compression used by zlib is very good at compressing such repetitive data, so there's no need to try and compress it by hand.
Note that this is a quick first attempt. I'm sure it would be possible to shave several bytes off the length by playing with variations such as reordering the train cars in the source.
[Answer]
## Python (~~582~~ ~~488~~ ~~476~~ 450 Chars)
```
import sys
A=sys.argv[1]
h=0
c='eJyVkrEKAzEIhnef4h97g9x+kOVKS7d2uK0peZE8fNXQS3NCpb+BREU/YnIhfKkUgJKpBfIsgYrnCzV9pIFBE6WDCHcWk1zbMy0PGovg/GMPw+6rujwaAY0CWtb/ESwG6NJTjNhChMxQxMy2g06/R+URtxBRRlGWC3SbY8Q1vkXgh4gz+Qb7v7Jy/US1P7TKP3NvbG3fy/V/Cw=='.decode('base64').decode('zlib').split(':')
C={}
for x in c:X=x.split('\n');C[X[0]]=X[1:-1]
for c in A:h=max(h,1+('F..CE'.find(c)+1or 3))
for y in range(6-h,6):print(' -'[y==4]*2).join(C[c][y]for c in A[::-1])
```
The ascii-salad is a base64 encoded zlib-compressed string containing the figures...
[Answer]
# Python, ~~402~~ 369
```
import sys
for n in range(6):
l= sys.argv[1][::-1]
for x,y in zip("EPBTHFC",range(0,42,6)):
l=l.replace(x,'eJytktsNgCAMRVfpp340TMAHEziAGBZhePvgLYmGeGosXqQXSAEqIfDbWUElb0SKcF4QbUaljr0srCA6OJCC5jV7cDAyUYY6eQPlic9/kleqoKNVL6QANkmj37zohglElMzK9naJy16hhxRPR6ph/jzXB2XBS76bZpQa3Hex7Qpm1hOtg+Yb0a6PSA=='.decode('base64').decode('zlib').split('A')[y+n]).strip('-')
print l
```
Thanks you for the improvements, ugoren!
[Answer]
## [Java 10](https://developer.oracle.com/java/jdk-10-local-variable-type-inference.html), ~~637~~ ~~617~~ ~~600~~ ~~595~~ ~~593~~ 592 chars
```
interface T{static void main(String[]u){String g=" ",n=g+g,m=n+g,s=m+m,h=s+s,q=h+m,o=" O-O",w=o+s+o+n,y="=",d=y+y+y,p="_____",b=d+d,e=b+b,f=n+n,t=e+d,c="|",l=g+c,z=l+l+l,v="|-|-|",k=" []",x=k+k,r=k+l,a[]={h+"__"+n,b+s+"\\/"+n,c+r+b+d+g,c+h+n+")",t+y,o+"-O"+n+o+"-O \\\\",q,q,t,c+x+x+l,t,w,q,q,t,v+g+l+n+v,t,w,q,q,g+p+"---"+p+g,"("+h+" )",t,w,q,q,p+p+p,"\\"+z+z+" /",t,w,q,q,q,q,t,w,h+g,f+d+y+y+f,d+y+c+m+c+d+y,c+k+f+r,e+y,o+f+o+n,n,n,n,n,"--",g};var O=System.out;for(int i=-1,j;i++<5;O.println())for(j=u[1].length();j-->0;O.print(a["EPBTHFC".indexOf(u[1].charAt(j))*6+i]+(j>0?a[42+i]:"")));}}
```
[Try it online!](https://tio.run/##RVFdb5tAEPwraJ@guzhJ1fahdFM1kaO8ESl@wyg6vsFwEDhjO47/eunifPRG3A17c7Oju0qNyq2SzTSV2qR9puLUWh0Ho0wZW2NbJlajSm0/mr7UeRBuneMbtXIGC0hzjjk1rGUeuMGGCh5woGcuhLei8V0faMctDtiipgMDAyV8QAF1DE/zAIo4wYRSjjCiTOw0GU6lEjO8AtXSJqYXrlFAo9RcAdBGGgQh0J43uKFe5ppUEPKxQDEGcYmkL6zXFzOPsccIE4kaY4EawQEykqJFkJBSOBNrLQPoWWBEuBfUwnbvlRFzCaFx/Kzl2Mk51wVZcwIbxBys2ftd0MlGR5IC8EUA1sX/vTfTHRVyNJNs871kNK8xNvIJkxAbzLCn9Jw1O9/jB6QxUH7yRtVbPj8eBpM2i3ZrvKztbXlSq2T3iiqvRPz13fMXnTyeqbXtOLOg4m1wFS7qVOemsB2vct3ryw@VrQJYPtys7u9uYVHqJN37mX3Wx4Xq/xi7cpwvP7AM0a6uL3@r4NtX@fkJ4DiOdzpN07Rc3q9uHu5u/7adKVs9TKt/ "Java (JDK) – Try It Online")
Readable:
```
interface T{
static void main(String[]u){
// constants - carriages' parts, a[] - array of carriages
String g=" ",n=g+g,m=n+g,s=m+m,h=s+s,q=h+m,o=" O-O",w=o+s+o+n,y="=",d=
y+y+y,p="_____",b=d+d,e=b+b,f=n+n,t=e+d,c="|",l=g+c,z=l+l+l,v=
"|-|-|",k=" []",x=k+k,r=k+l,a[]={h+"__"+n,b+s+"\\/"+n,c+r+b+d+
g,c+h+n+")",t+y,o+"-O"+n+o+"-O \\\\",q,q,t,c+x+x+l,t,w,q,q,t,v
+g+l+n+v,t,w,q,q,g+p+"---"+p+g,"("+h+" )",t,w,q,q,p+p+p,"\\"+z
+z+" /",t,w,q,q,q,q,t,w,h+g,f+d+y+y+f,d+y+c+m+c+d+y,c+k+f+r,e+
y,o+f+o+n,n,n,n,n,"--",g};
// output ASCII train
var O=System.out;
for(int i=-1,j;i++<5;O.println())
for(j=u[1].length();j-->0;O.print(
a["EPBTHFC".indexOf(u[1].charAt(j))*6+i]+(j>0?a[42+i]:"")));
}
}
```
---
Train carriages. The lower line of each carriage is one character longer because of engine but the lower line of couplings is one character shorter. Double backslashes are *escaped characters*, they are interpreted as a single backslash:
```
String a[] = {
// Engine (E)
" __ ",
"====== \\/ ",
"| [] |========= ",
"| )",
"================",
" O-O-O O-O-O \\\\",
// Passenger car (P)
" ",
" ",
"===============",
"| [] [] [] [] |",
"===============",
" O-O O-O ",
// Boxcar (B)
" ",
" ",
"===============",
"|-|-| | |-|-|",
"===============",
" O-O O-O ",
// Tanker (T)
" ",
" ",
" _____---_____ ",
"( )",
"===============",
" O-O O-O ",
// Hopper (H)
" ",
" ",
"_______________",
"\\ | | | | | | /",
"===============",
" O-O O-O ",
// Flatbed (F)
" ",
" ",
" ",
" ",
"===============",
" O-O O-O ",
// Caboose (C)
" ",
" ===== ",
"====| |====",
"| [] [] |",
"=============",
" O-O O-O ",
// Car coupling
" ",
" ",
" ",
" ",
"--",
" "};
```
Train `EPBTHFC`:
```
__
===== ====== \/
====| |==== _______________ _____---_____ =============== =============== | [] |=========
| [] [] | \ | | | | | | / ( ) |-|-| | |-|-| | [] [] [] [] | | )
=============--===============--===============--===============--===============--===============--================
O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O O-O-O O-O-O \\
```
[Answer]
### C#, ~~758~~ ~~664~~ ~~603~~ 562bytes
Not a great score, 200 or so bytes in the poorly encoded string, and about 80 bytes devoted to decoding it. Frustrating amount of code spent sorting out the coupling on the engine! It now leaves white-space trailing at the front of the train, which is untidy but within the rules, and it also has the dimensions of the data-string hard coded, something I was reluctant to do initially.
```
using c=System.Console;class P{static void Main(){string d=c.ReadLine(),a="",z=@"99 1_5 4=78 5=5 \/1 3=|2 |3=14 29= 4_2-4_ 14_| [] |8= | []4 [] |14 | [] [] [] [] 1|-|-|1 |1 |-|-|(12 )\ | | | | | | /|13 )103= O-O4 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O-O2 O-O-O c";int j=0,e;foreach(var h in z)if(h>47&&h<58)j=j*10+h-48;else for(j++;j>0;j--)a+=h;int[]x={0,13,28,43,58,73,88,104};for(;j<6;j++){z="";foreach(var h in d)z=a.Substring(j*104+x[e="CFPBTHE".IndexOf(h)],x[e+1]-x[e])+(j==4?"--":" ")+z;c.WriteLine(z.Replace("c ",@"\\").Trim('-'));}}}
```
Formatted a bit:
```
using c=System.Console;
class P{static void Main(){
string d=c.ReadLine(),a="",z=@"99 1_5 4=78 5=5 \/1 3=|2 |3=14 29= 4_2-4_ 14_| [] |8= | []4 [] |14 | [] [] [] [] 1|-|-|1 |1 |-|-|(12 )\ | | | | | | /|13 )103= O-O4 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O6 O-O1 O-O-O2 O-O-O c";
int j=0,e;
foreach(var h in z)
if(h>47&&h<58)
j=j*10+h-48;
else
for(j++;j>0;j--)
a+=h;
int[]x={0,13,28,43,58,73,88,104};
for(;j<6;j++)
{
z="";
foreach(var h in d)
z=a.Substring(j*104+x[e="CFPBTHE".IndexOf(h)],x[e+1]-x[e])+(j==4?"--":" ")+z;
c.WriteLine(z.Replace("c ",@"\\").Trim('-'));
}
}}
```
The string is compressed very simply by replacing repeated character with a string representation of the number of characters followed by the character (minus 1), or just the character if there is only one of them (I wanted to stick with ASCII and avoid doing anything at the sub-char level). Encoder (not included in score):
```
string compress(string str)
{
str += (char)0; // too lazy to write a proper loop
string res = "";
char prev = str[0];
int count = 1;
for (int i = 1; i < str.Length; i++)
{
char cur = str[i];
if (cur != prev)
{
if (count != 1)
res += (count - 1).ToString();
res += prev;
prev = cur;
count = 1;
}
else
{
count++;
}
}
return res;
}
```
[Answer]
Here is my solution in PHP (v5.4 compatible), 512bytes. Could be shorter, but just made a quick build to try this out.
```
<?php $m=array_combine(str_split('EPBTHFC'),explode('$',gzinflate(base64_decode('jZDBDYAwCEXvfwoOHvRAnKAzOICYLtLhhVYlrY320RQI5BMgcmJEyJRUViTaD0rhRvOKBaEBtLGa1ooXmdA2FdXnJfQ0rgkW9RRYjcieRQMKupzCzNlj/t6jIxBrIDrdbR1QwH+PRaVkn107+cWM971cxPwJ'))));$t=['','','','','',''];$i=str_split(strrev(strtoupper($argv[1])));foreach($i as $w=>$n){$c=$m[$n];$c=explode("\n",$c);foreach($t as $j=>&$p){$p.=str_pad($c[$j],$n=='E'?18:($n=='C'?15:17),$j==4?'-':' ');if($w==count($i)-1)$p=rtrim($p,' -');}}echo implode("\n",$t)."\n";
```
This is a spread-out version for easy reading:
```
<?php
$m=array_combine(
str_split('EPBTHFC'),
explode('$',
gzinflate(
base64_decode(
'jZDBDYAwCEXvfwoOHvRAnKAzOICYLtLhhVYlrY320RQI5BMgcmJEyJRUViTaD0rhRvOKBaEBtLGa1ooXmdA2FdXnJfQ0rgkW9RRYjcieRQMKupzCzNlj/t6jIxBrIDrdbR1QwH+PRaVkn107+cWM971cxPwJ'
)
)
)
);
$t=['','','','','',''];
$i=str_split(strrev(strtoupper($argv[1])));
foreach($i as $w=>$n)
{
$c=$m[$n];
$c=explode("\n",$c);
foreach($t as $j=>&$p)
{
$p.=str_pad($c[$j],$n=='E'?18:($n=='C'?15:17),$j==4?'-':' ');
if($w==count($i)-1)$p=rtrim($p,' -');
}
}
echo implode("\n",$t)."\n";
```
[Answer]
## Java (583 characters)
With basic homemade compression - not sure it's so efficient though :-)
The train string (e.g. `EEHTBPFC`) must be passed as parameter.
```
class C{public static void main(String[]a){String s="",y="thAthA",x=" *!*h*!* A",q="vjA",r=q+x+y;String[]m=("hP78A^\\#$8A% &' %j.,A%hh) Ajj.A *!*!*8*!*!* /A"+y+q+"% &' &' &' &' %A"+r+q+"%!%!%,%,%!%!%A"+r+" [9[ A(tP)A"+r+"ss+A# % % % % % % $A"+r+y+q+x+"tPADRDAF%8%FA% &'P&' %AvRA *!*P*!* ").split("A");for(int l,z,i,j=0;j<6;j++){for(i=a[0].length()-1;i>=0;i--){z=a[0].charAt(i);r=m["EPBTHFC".indexOf(z)*6+j];for(int c:r.toCharArray()){c-=32;for(l=0;l<=c/12;l++)s+=" -=\\/|[]()O_".charAt(c%12);}if(i>0)for(l=0;l<(z=='E'&&j!=4?1:2);l++)s+=j==4?"-":" ";}s+="\n";}System.out.println(s);}}
```
Unfolded:
```
class C{
public static void main(String[]a){
String s="",y="thAthA",x=" *!*h*!* A",q="vjA",r=q+x+y;
String[]m=("hP78A^\\#$8A% &' %j.,A%hh) Ajj.A *!*!*8*!*!* /A"+y+q+"% &' &' &' &' %A"+r+q+"%!%!%,%,%!%!%A"+r+" [9[ A(tP)A"+r+"ss+A# % % % % % % $A"+r+y+q+x+"tPADRDAF%8%FA% &'P&' %AvRA *!*P*!* ").split("A");
for(int l,z,i,j=0;j<6;j++){
for(i=a[0].length()-1;i>=0;i--){
z=a[0].charAt(i);
r=m["EPBTHFC".indexOf(z)*6+j];
for(int c:r.toCharArray()) {
c-=32;
for(l=0;l<=c/12;l++)
s+=" -=\\/|[]()O_".charAt(c%12);
}
if(i>0)for(l=0;l<(z=='E'&&j!=4?1:2);l++)s+=j==4?"-":" ";
}
s+="\n";
}
System.out.println(s);
}
}
```
[Answer]
# Python, 491 bytes
```
import zlib as z,sys,base64 as d
y=eval(z.decompress(d.b64decode('eNqlksEOwiAMhl/lv1WTkd1NdtFovLmDt7HwIOK729LJmJDY6F8SyA/0g6YPOtNhIhQKAaCOhiS1fJ+siGlGHN5Sa6N9vriKLdwcB+/r7D3NHY2fYCRI7dT50kPyiM0zUCKUCiEe/yA6DkCGrKzEu5XIVWc559Iszu5bYdvEq5UYtmLH8/fW6K3Ei/mPP1W+QTxVxCVXbtklk3RnLHtG1OqYkqOU5wsfZZmx')))
w=sys.argv[1][::-1]
x=[""]*6
v=range
u=len(w)
for j in v(6):
for i in v(u):
if j==5 and w[i]=='E':k="\\ "
elif j==4 and i!=u-1:k="--"
else:k=" "
x[j]+=y[w[i]][j]+k
for q in x:print q
```
I like how it came out, even though it won't be a winner.
[Answer]
# [GNU sed](https://www.gnu.org/software/sed/), 491 bytes
```
s/./& #/g
s:E:0S__s%1esss\\/s%2|bpef %3|Ss)%4E=@5 o-Os o-O \\\\:g
s/P/zE%3|bbbbp%4E@5ut/g
s/B/zE%3|-|-|s|s|-|-|%4E@5ut/g
s/T/z l---l %3(S )%4E@5ut/g
s:H:zlll%3\\pppppp /%4E@5ut:g
s/F/zSs %3Ss %4E@5ut/g
s/C/0S %1ssf==ss%2f=|spf=%3|bssbp%4ee=@5 ts t/g
s/z/0Ss %1Ss %2/g
s/%/s%/g
s/@/--%/g
s/u/ tss /g
s/t/os/g
s/S/ssssss/g
s/s/ /g
s/E/eef/g
s/e/ff/g
s/f/===/g
s/b/ []/g
s/p/ |/g
s/o/O-O/g
s/l/_____/g
s/^/0123456;/
:
s/([0-6])(.*;)\1([^%#]+)[%#](.*)/\1\3!\2\4/
t
s/(--!)?[1-6]/\n/g
s/[0!;]//g
```
[Try it online!](https://tio.run/##TY9Ni8JADIbv/ooRmaXdZUw/1ENlWFEq3hTqrVMF2aksFFs29VL627ebSffgO5A@k7xJM2i/hgFhDm9iBvcJJmkSZNcrytAiojGAMupvjS2FjPsMfblI9WYpanVEF4QhJdQHJ@hSstxIDZk2y2fr5sF2zCs6SMd9X8tn6ESllKpovpcJ/6WWHJKuqioZG9OwBPxX@Yd76DKkLhdeBu4gyIQMEUutkZYvdY9Nqd1qiG41a90DWhSjvyM/TQhdiDgj6c0MG1BqpCdQAwrmFmpkyABZfEEQYzkFa0smC@UIJWitmW4g8oKpAdEz1HBUR6YKrk7MFwjCKF4sV2uYJHT38kCtCt@bv699E3r5Rc6KDz@nSCkfTGjiqYnMAiatcys19T/zkFrAPHhgHkzXBcB9GNL0cN6e9rvfumm/6wcO6ucP "sed 4.2.2 – Try It Online")
## Explanation
This is basically a super naïve custom compression scheme. The first line appends to each letter in the input a space and `#`, to mark the end of each part:
```
s/./& #/g
```
The next 7 lines replace each letter with a compressed representation of the corresponding ASCII image:
```
s:E:0S__s%1esss\\/s%2|bpef %3|Ss)%4E=@5 o-Os o-O \\\\:g
s/P/zE%3|bbbbp%4E@5ut/g
s/B/zE%3|-|-|s|s|-|-|%4E@5ut/g
s/T/z l---l %3(S )%4E@5ut/g
s:H:zlll%3\\pppppp /%4E@5ut:g
s/F/zSs %3Ss %4E@5ut/g
s/C/0S %1ssf==ss%2f=|spf=%3|bssbp%4ee=@5 ts t/g
```
The next 14 lines do the "decompression". For example, an `S` decompresses to six `s`es, and an `s` decompresses to two spaces, so `S` becomes 12 spaces.
```
s/z/0Ss %1Ss %2/g
s/%/s%/g
s/@/--%/g
s/u/ tss /g
s/t/os/g
s/S/ssssss/g
s/s/ /g
s/E/eef/g
s/e/ff/g
s/f/===/g
s/b/ []/g
s/p/ |/g
s/o/O-O/g
s/l/_____/g
```
Decompressed, the lines of each car are preceded by a line number, and each car is terminated by `#`. The rest of the code prepends `0123456;` (the line numbers and delimiter) to the pattern space and then, in a loop, replaces each digit with the corresponding line of each car.
```
s/^/0123456;/
:
s/([0-6])(.*;)\1([^%#]+)[%#](.*)/\1\3!\2\4/
t
```
Finally, it cuts the pattern space into lines by splitting on digits and cleans up extraneous characters:
```
s/(--!)?[1-6]/\n/g
s/[0!;]//g
```
There's a lot of room for improvement here. I wasn't rigorous at all about finding an optimal set of compressions, and using a lookup table instead of 14 separate `s///g`s would be an easy win. I may or may not noodle with this some more.
[Answer]
# [C (gcc)](https://gcc.gnu.org/), ~~501~~ ~~499~~ ~~490~~ ~~489~~ ~~484~~ ~~483~~ 481 bytes
-2 -9 -1 -5 -1 -2 bytes thanks to [ceilingcat](https://codegolf.stackexchange.com/users/52904/ceilingcat).
```
#define A": O-Og O-O:o=:"
char*p,*q,s[80];i=6,k,n;main(j,a)char**a;{for(;i--;puts(q))for(k=strlen(a[1]);k--;*q=0,printf("%-*s%s",j?j^6?15:13:16,s,k?i^1?!j*!i+" ":"--":q)){j=index(p="EPBTHFC",a[1][k])-p;for(n=j*6+i,p=" O-O-Oc O-O-O \\\\:p=:|n ):| [] |i=:f=f \\/:l __"A"| [] [] [] [] |:o=::"A"|-|-| | |-|-|:o=::"A"(m ): e_c-e_::"A"\\ | | | | | | /:o_::"A":::: O-Oe O-O:m=:| []e [] |:d=|c |d=:d e=::";n--;)for(;*p++-58;);for(q=s;*p^58;q+=n)memset(q,*p++,n=islower(*p)?*p++-96:1);}}
```
[Try it online!](https://tio.run/##RVDbSsQwEH33K2JESNIELWLRCaGssuLb@uDb3ihtuqbdZttmRcH67TXpos4MuZyZnMmcXOzyfBwvCl0aq9EMA1qIxS4scFCAz/K3rGctZx13y7vrtTQq4TW3ssmMJRXP6FTAMvlVHnoijRCyfT860lEagFq5Y7/XlmTLeE1l7dOsU9e87Y09lgRfCuYuHeZVWm2SNL6F@AbihDtep2YTp@cVOzcRRggDFgKDZ/2qlLGF/iStwvOXh9fnp0fMA/uyXlPRytDVqoolkeG@JEwiFvlpQytv0CoYLKIwoOUaDUZBqUqfuYI92m7xDE/4XwxBBwiw8I5QiHD6hUnjqZDe5kJvJ2C18jX/fgWHEw7ewjf0JG6jpv761KJQQ46GQkGBdKCV1gs1CShZG0Xi9k7SabJOOY9s/L2LlKWNbpw@ko6HKm6VcfvDh@4Ja2k6PbxPIKby@3scx/n8@fXh5enxBw "C (gcc) – Try It Online")
[Answer]
# [Python 3](https://docs.python.org/3/), 529 bytes
```
a=['']*6
T,R="EPBTHFC",{'S':' '*3,'E':'='*3,'W':'[] ','U':'_'*5,'P':'| ','H':'O-O'}
A=('SSSS__ ',)+('S'*5,)*5+('SSSS ',),('EESS\/ ',)+('S'*5,)*5+('S E==S ',),('PW|EEE ','E'*5,'E'*5,' U---U ','U'*3,'S'*5,'E=|S|E='),('P SSSS)','PWWWW|','|-|-P P |-|-|','(SSSS )','\ PPPPPP/','S'*5,'PWS W|'),('E'*5+'=--',)+('E'*5+'--',)*5+('EEEE=--',),(' H-OSH-O \\\\ ',)+(' HSS HS',)*5+(' HS HS',)
for C in input():
for I in range(6):
a[I]=A[I][T.index(C)]+' '*(I<4)+a[I]
for k in R:a[I]=a[I].replace(k,R[k])
a[4]=a[4][:-2]
[*map(print,a)]
```
[Try it online!](https://tio.run/##bVJNb4JAEL3zKyZeZoFdTerHgXQP1myDJ4mr8YDEkJa2xhYJsUmb0t9OZ3b11gkMb968YR4bmu/L27ke932pc8QimgUbudYDkz1s0sfFQP6gxQQBo7FEQ0g7tCOUF4ASt4QOGE0lZoQ6plICK7XC32CuBVqKwwGoEcZUsTSMprFvMCsFGmPtfvSfBozWN1W264wxvMG4hT7DVim19VbYmvU93dnOaHRzwKtCUmQ7io5ApzqVQQb85Fo4MyzZQ@ZihLdXZTsLNOR8EhGjVsob9aWrnFtyZ3yTtJCqlaUb9hTXL4OUtqT2picIvgxezi0s4FjT1XxeRJgEwNSSqbasXysxYw7KfFnoOaV8MzzWz9WXWIRFjHR0kVjeT8KYBaTj4RMPrxM3wmnYVs17@VSJk1znpyIMynzCnUmRJ@quCPLoo2xE0x7riyzDou@vP8Ef "Python 3 – Try It Online")
Figured I would post it because it does not use any compression, unlike most of the other answers here.
[Answer]
# Javascript (Node.js), 1216 bytes
```
var c={E:[' __ ','====== \\/ ','| [] |========= ','| )','================',' O-O-O O-O-O \\',],P:[' ',' ','===============','| [] [] [] [] |','===============',' O-O O-O'],B:[' ',' ','===============','|-|-| | |-|-|','===============',' O-O O-O'],T:[' ',' ',' _____---_____ ','( )','===============',' O-O O-O '],H:[' ',' ','_______________','\\ | | | | | | /','===============',' O-O O-O '],F:[' ',' ',' ',' ','===============',' O-O O-O '],C:[' ',' ===== ','====| |====','| [] [] |','=============',' O-O O-O ']};var o=[];for(var w=0;w<process.argv[2].length;w++){o.push(process.argv[2].charAt(w));}var arg=o.reverse().join('');var s=[' ',' ',' ',' ','--',' '];for(var x=0;x<6;x++){var k=[];for(var y=0;y<arg.length;y++){if(!['B','C','E','F','H','P','T'].includes(arg.charAt(y))){y++;}k.push(c[arg.charAt(y)][x]);}var v='';for(var q in k){v+=k[q]; if(arg.charAt(q)=='E'&&x== 5){v+='\\ ';}else if(q<k.length-1){v+=s[x];}}console.log(v);}
```
Uncompressed
```
var c = { // define cars
E: [
' __ ',
'====== \\/ ',
'| [] |========= ',
'| )',
'================',
' O-O-O O-O-O \\',
],
P: [
' ',
' ',
'===============',
'| [] [] [] [] |',
'===============',
' O-O O-O'
],
B: [
' ',
' ',
'===============',
'|-|-| | |-|-|',
'===============',
' O-O O-O'
],
T: [
' ',
' ',
' _____---_____ ',
'( )',
'===============',
' O-O O-O '
],
H: [
' ',
' ',
'_______________',
'\\ | | | | | | /',
'===============',
' O-O O-O '
],
F: [
' ',
' ',
' ',
' ',
'===============',
' O-O O-O '
],
C: [
' ',
' ===== ',
'====| |====',
'| [] [] |',
'=============',
' O-O O-O '
]
};
//reverse string - why is there no builtin for this?
var o = [];
for(var w = 0; w < process.argv[2].length; w++){
o.push(process.argv[2].charAt(w));
}
var arg = o.reverse().join('');
//train car seperators
var s = [' ',' ',' ',' ','--',' '];
// for each row
for(var x = 0; x < 6; x++){
var k = []; //empty array for each car string
for(var y = 0; y < arg.length; y++){
//ignore non-included characters
if(!['B','C','E','F','H','P','T'].includes(arg.charAt(y))){
y++;
}
// add car
k.push(c[arg.charAt(y)][x]);
}
var v = '';
for(var q in k){
v += k[q]; // append car
if(arg.charAt(q) == 'E' && x == 5){ // to deal with annoying engine thing, see below
v += '\\ ';
} else if(q < k.length - 1){ // if not last car
v += s[x]; // append separator
}
}
console.log(v); //output
}
```
The annoying thing about this challenge is the coupling near the engine.
All the other cars are just one solid block, but the \ on the front takes up the same vertical space as the coupling. See here:
```
__
====== \/
| [] |=========
| )
================--
O-O-O O-O-O \\
```
Note: Enter via the CLI e.g. node asciitrain.js EBCEFH. This was badly golfed.
] |
[Question]
[
## *Why was 6 afraid of 7? Because 7 8 9!*
Given a string apply the following transformations:
* If there is a 6 next to a 7 remove the 6 (6 is afraid of 7)
* If the sequence "789" appears remove the 8 and the 9 (7 ate 9)
(If I'm not mistaken it doesn't matter what order you do the transformations in)
Keep applying these transformations until you can no longer.
Example:
`78966`
First we see "789", so the string becomes "766". Then we see "76", so we take out the 6, and the string becomes "76". Then we see "76" again, so we are left with "7".
Test Cases:
* `987` => `987` (Not in the right order. Does nothing.)
* `6 7` => `6 7` (The whitespace acts as a buffer between 6 and 7. Nothing happens)
* `676` => `7`
* `7896789` => `77`
* `7689` => `7`
* `abcd` => `abcd`
[Answer]
# [Retina](https://github.com/mbuettner/retina), 12
Translation of the sed answer:
```
6*7(6|89)*
7
```
[Try it online](http://retina.tryitonline.net/#code=Nio3KDZ8ODkpKgo3&input=OTg3CjYgNwo2NzYKNzg5Njc4OQo3Njg5CmFiY2QKNjg5Nzg5NjY4OTc4OTYKNjc3ODk)
[Answer]
# Javascript ES6, 29 bytes
```
s=>s.replace(/6*7(89|6)*/g,7)
```
Test:
```
f=s=>s.replace(/6*7(89|6)*/g,7)
;`987 -> 987
6 7 -> 6 7
676 -> 7
7896789 -> 77
7689 -> 7
abcd -> abcd`
.split`\n`.every(t=>(t=t.split` -> `)&&f(t[0])==t[1])
```
[Answer]
# Java, ~~126~~ ~~81~~ ~~66~~ 58 bytes
Thanks to @GamrCorps for providing the lambda version of this code!
Thanks to @user902383 for pointing out an autoboxing trick!
...yup.
It's actually longer than I expected - Java replaces items in strings with `replaceAll()` once per match, not repeatedly until it stops changing. So I had to use a fancy for loop.
### Lambda form:
```
x->{for(;x!=(x=x.replaceAll("67|76|789","7")););return x;}
```
### Function form:
```
String s(String x){for(;x!=(x=x.replaceAll("67|76|789","7")););return x;}
```
### Testable Ungolfed Code:
```
class B{
public static void main(String[]a){
System.out.print(new B().s(a[0]));
}
String s(String x){for(;x!=(x=x.replaceAll("67|76|789","7")););return x;}
}
```
[Answer]
# GNU Sed, 17
Score includes +1 for `-r` option.
```
s/6*7(6|89)*/7/g
```
[Answer]
# [Perl 6](http://perl6.org), ~~19~~ 18 bytes
```
{S:g/6*7[6|89]*/7/} # 19 bytes
```
```
$ perl6 -pe 's:g/6*7[6|89]*/7/' # 17 + 1 = 18 bytes
```
( Note that `[6|89]` is the non-capturing version of `(6|89)` which is spelt as `(?:6|89)` in Perl 5. `<[6|89]>` is how you would write what's spelt as `[6|89]` in Perl 5)
usage:
```
$ perl6 -pe 's:g/6*7[6|89]*/7/' <<< '
987
6 7
6676689
7896789
7689
abcd
68978966897896
79|689
'
```
```
987
6 7
7
77
7
abcd
68977
79|689
```
[Answer]
# Pyth, 17 bytes
```
u:G"67|76|789"\7z
```
[Try it here.](http://pyth.herokuapp.com/?code=u%3AG%2267%7C76%7C789%22%5C7z&test_suite=1&test_suite_input=987%0A6+7%0A676%0A7896789%0A7689%0Aabcd)
Leaky Nun has outgolfed this by a byte in the comments.
[Answer]
# [Perl 5](http://perl.org), 17 bytes
```
perl -pe 's/6*7(6|89)*/7/g' # 16 + 1
```
usage:
```
$ perl -pe 's/6*7(6|89)*/7/g' <<< '
987
6 7
6676689
7896789
7689
abcd
68978966897896
'
```
```
987
6 7
7
77
7
abcd
68977
```
[Answer]
## Mathematica, 52 bytes
```
StringReplace[#,"67"|"76"|"789"->"7"]&~FixedPoint~#&
```
Explanation:
```
& A function returning
& a function returning
# its first argument
StringReplace[ , ] with
"67" "67"
| or
"76" "76"
| or
"789" "789"
-> replaced with
"7" "7"
~FixedPoint~ applied to
# its first argument
until it no longer changes.
```
[Answer]
## Rust, 96 bytes
```
fn f(mut s:String)->String{for _ in 0..s.len(){for r in&["67","76","789"]{s=s.replace(r,"7")}}s}
```
Hopelessly long, as per usual for Rust...
Ungolfed:
```
fn seven_ate_nine(mut str: String) -> String {
for _ in 0..str.len() {
for to_replace in &["67","76","789"] {
str = str.replace(to_replace, "7");
}
}
s
}
```
[Answer]
# Emacs Lisp, 59 bytes
```
(lambda(s)(replace-regexp-in-string"6*7\\(6\\|89\\)*""7"s))
```
It becomes a bit clearer with spaces:
```
(lambda (s) (replace-regexp-in-string "6*7\\(6\\|89\\)*" "7" s))
```
[Answer]
# Ruby, 27 bytes
This solution is from comments, credit to *Brad Gilbert b2gills*.
```
->s{s.gsub /6*7(6|89)*/,?7}
```
---
## Ruby, 37 bytes
***(old solution)***
This solution uses the fact that you will never need to replace more times than characters in the string.
```
->s{s.chars{s.sub! /67|76|789/,?7};s}
```
[Answer]
# [MATL](https://esolangs.org/wiki/MATL), 17 bytes
```
jt"'789|76'55cYX]
```
### Example
```
>> matl
> jt"'789|76'55cYX]
>
> 7896789
77
```
**EDIT**: [**Try it online!**](http://matl.tryitonline.net/#code=anQiJzc4OXw3Nic1NWNZWF0&input=Nzg5Njc4OQ)
### Explanation
```
j % input string
t % duplicate
" % for each character. Iterates as many times as the string length
'789|76' % regular expression for replacement
55c % string to insert instead: character '7'
YX % regexprep
] % end for
```
This works by applying a regular expresion replacement for *as many times as there are characters in the original string*. This is enough, since each substitution reduces the number of characters.
[Answer]
# [Japt](https://github.com/ETHproductions/Japt), 15 bytes
```
Ur"6*7(89|6)*"7
```
Simple RegEx solution
[Try it online](http://ethproductions.github.io/japt?v=master&code=VXIiNio3KDg5fDYpKiI3&input=Ijc4OTY3ODki)
[Answer]
# PowerShell, 27 bytes
```
$args-replace'6*7(89|6)*',7
e.g.
PS C:\temp> .\ate.ps1 "7689"
7
PS C:\temp> .\ate.ps1 "abcd"
abcd
PS C:\temp> .\ate.ps1 "68978966897896"
68977
```
Making use of:
* someone else's regex pattern
* the way `-replace` does a global replace by default in PowerShell
* loop unrolling, where it will apply the `-regex` operator to the array `$args` by applying it to all the elements individually, and there's only one element here because there's only one script parameter, so it works OK and we can avoid having to index element `[0]`.
---
Novelty previous attempt before realising a global replace would do it; 74 bytes of building a chain of "-replace -replace -replace" using string multiplication, as many times as the length of the string, then eval()ing it:
```
"'$($args)'"+("{0}6|6(?=7)'{0}89'"-f"-replace'(?<=7)")*$args[0].Length|iex
```
(With a bit of string substitution to shorten the number of replaces).
[Answer]
## Seriously, 29 bytes
```
,;l`'7;;"67"(Æ"76"(Æ"789"(Æ`n
```
Takes input as a double-quoted string, like `"6789"`. [Try it online](http://seriouslylang.herokuapp.com/link/code=2c3b6c6027373b3b22363722289222373622289222373839222892606e&input=6789) (you will need to manually quote the input).
Explanation:
```
,;l`'7;;"67"(Æ"76"(Æ"789"(Æ`n
,;l get input and push its length (we'll call it n)
` `n call the following function n times:
'7;;"67"(Æ replace all occurrences of "67" with "7"
"76"(Æ replace all occurrences of "76" with "7"
"789"(Æ replace all occurrences of "789" with "7"
```
[Answer]
## PHP, 36 bytes
```
preg_replace('/6*7(6|89)*/','7',$a);
```
regex solution, takes $a string and replaces via the expression.
[Answer]
# [Thue](https://en.wikipedia.org/wiki/Thue_%28programming_language%29), 26 bytes
```
67::=7
76::=7
789::=7
::=
```
including a trailing newline.
Input is appended to the program before starting it.
Output is read off the program state when it terminates, similarly to a Turing machine.
(Thue *does* have an output stream, but it's difficult to use correctly, so I'm not sure whether this is an acceptable output method)
[Answer]
## CJam, ~~70~~ 64 bytes
Thanks to @Peter Taylor for cutting `{"789":I}{"76:":I}?` to `"789""76"?:I`
`~~"67":Iq:A{AI#:B){AB<7+A{BI,+}~>+s:A];}{"76"I={"789":I}{"76":I}?];}?}/A~~`
`"67":Iq:A{AI#:B){AB<7+A{BI,+}~>+s:A];}{"76"I="789""76"?:I];}?}/A`
I know this could probably be golfed a lot further and your help would be greatly appreciated, but frankly I'm just happy I managed to get the answer. This was my first attempt at writing CJam.
Explanation:
```
"67":I e# Assign the value of 67 to I
q:A e# Read the input and assign to A
{ e# Opening brackets for loop
AI#:B) e# Get the index of I inside A and assign to B. The increment value by 1 to use for if condition (do not want to process if the index was -1)
{ e# Open brackets for true result of if statement
AB< e# Slice A to get everything before index B
7+ e# Append 7 to slice
A{BI,+}~> e# Slice A to get everything after index B plus the length of string I (this will remove I entirely)
+s:A e# Append both slices, convert to string, and assign back to A
]; e# Clear the stack
} e# Closing brackets for the if condition
{ e# Open brackets for false result of if statement
"76"I= e# Check if I is equal to 76
"789" e# If I is 76, make I 789
"76"?:I e# If I is not 76, make I 76
]; e# Clear the stack if I does not exist inside A
}? e# Closing brackets for false result of if statement
}/ e# Loop
A e# Output A
```
[Answer]
## R, 35 bytes
```
cat(gsub("6*7(6|89)*",7,scan(,"")))
```
I didn't know I could use `gsub` this way, a big thank you for every answer here that made me learn something new.
[Answer]
## Python 3, 46 bytes
```
import re
lambda s:re.sub(r'6*7(6|89)*','7',s)
```
[Answer]
# [Dyalog APL](https://dyalog.com), 17 bytes
```
'6*7(6|89)*'⎕R'7'
```
`'6*` any number of sixes
`7` followed by a seven
`(`…`)*'` followed by zero or more sequences of…
`6|89` a six or eight-nine
`⎕R` **R**eplace that with
`'7'` a seven
[Answer]
# [///](https://esolangs.org/wiki///), 19 bytes
```
/67/7//76/7//789/7/
```
You can't actually provide input in this language, so the supposed input goes to the right of the code, which is allowed by recent rules.
[Answer]
## **PHP 51 characters**
```
while($s!=$r=str_replace([789,67,76],7,$s)){$s=$r;}
```
**Test case written in long hand**
```
$s = '78966';
while ($s != $r = str_replace([789, 67, 76], 7, $s) )
{
$s = $r;
}
echo $s; // 7;
```
This does the string comparison and the string replace both in the while condition. If while condition is met, it updates the left hand of the comparison with the result. Let me know of any improvements.
[Answer]
# [Jolf](https://github.com/ConorOBrien-Foxx/Jolf/), 15 bytes
[Try it here!](http://conorobrien-foxx.github.io/Jolf/#code=cGkiNio3KDZ8ODkpKiI3) Do I really have to explain?
```
pi"6*7(6|89)*"7
p replace any entity in
i the input
"6*7(6|89)*" that matches this regex
7 with 7
implicit output
```
[Answer]
## Clojure, 71 bytes
Clojure is less-than-ideal for golfing due to its verbose nature - but nonetheless it's an interesting exercise:
Golfed version, using Java interop:
```
(defn f[s](let[x(.replaceAll s "67|76|789" "7")](if(= s x)s(recur x))))
```
Un-golfed version, using Java interop:
```
(defn six-fears-seven [s]
(let [x (.replaceAll s "67|76|789" "7")]
(if (= s x)
s
(recur x))))
```
Un-golfed "pure Clojure" version:
```
(defn six-fears-seven [s]
(let [x (clojure.string/replace s #"67|76|789" "7")]
(if (= s x)
s
(recur x))))
```
[Answer]
# Bash, 102 82 67 (+7)? bytes
### extglob version
```
x=$1
while v=${x/@(76|67|789)/7};[ $v != $x ];do x=$v;done
echo $v
```
This is meant to be put in a file and called with e.g. `bash -O extglob 789.sh 6567678989689789656`. The (+7)? bytes is for if the extglob option counts toward bytes.
Thanks to @BinaryZebra for pointing out extglob features!
---
### Non-extglob version (82 bytes)
```
x=$1
while v=${x/76/7};v=${v/67/7};v=${v/789/7};[ $v != $x ];do x=$v;done
echo $v
```
This is meant to be put in a file and called with e.g. `./789.sh 65678989656`.
It makes use of parameter expansion to search and replace in a loop. I involved a series of expansions to do the replacing since I'm not aware of a way to more effectively chain expansions.
[Answer]
# [Japt](https://github.com/ETHproductions/japt) v2.0a0, 12 bytes
```
e/6?7(6|89/7
```
[Try it online!](https://ethproductions.github.io/japt/?v=2.0a0&code=ZS82PzcoNnw4OS83&input=LW1SIFsKIjc4OTY2IiwKIjk4NyIsCiI2IDciLAoiNjc2IiwKIjc4OTY3ODkiLAoiNzY4OSIsCiJhYmNkIiwKIjY4OTc4OTY2ODk3ODk2Igpd)
### How it works
`String.e` is recursive replace function. Japt 2 has a new regex syntax and auto-completion of parentheses inside regex, which saves one byte here. (In Japt 1.x, we had to pass strings in place of regexes, which was kinda clunky.)
[Answer]
# [05AB1E](https://github.com/Adriandmen/05AB1E/wiki/Commands), ~~12~~ 11 [bytes](https://github.com/Adriandmen/05AB1E/wiki/Codepage)
```
Δ67‚789ª7:
```
[Try it online](https://tio.run/##yy9OTMpM/f//3BQz88NNjxpmmVtYHlplbvX/P5BhBkYA) or [verify all test cases](https://tio.run/##yy9OTMpM/V9TVulir6TwqG2SgpL9/3NTzMwPNz1qmGVuYXlolbnV/1qd/5YW5lxmCkBsbsYFFDYDYi5zMyCRmJScwmUI5BqbmxlBpMyBisyA2BzMBSMuIAZxoBQA).
**Explanation:**
```
Δ # Continue doing the following until it no longer changes:
67 # Push 67 to the stack
 # Bifurcate (short for Duplicate & Reverse copy): 76
‚ # Pair them together: [67,76]
789ª # Append 789 to this list: [67,76,789]
7: # Replace all occurrences of these three integers with 7
# i.e. 1789372 → 17372
# (after the loop, output the result after implicitly)
```
`67‚789ª` could alternatively be `•4BĆx•₄в` for the same byte-count.
[Answer]
# [K (ngn/k)](https://codeberg.org/ngn/k), 27 bytes
```
{x{"7"/y@x}/(\'$67 76 789)}
```
[Try it online!](https://ngn.codeberg.page/k#eJxFkVFrwyAQx9/9FIcUlsISBwNtEzb2sOc+7a0r1CYaQzvN1JKE0n32qU03UP78f96d3inLy3jBDJPpbbyS7PNhQRkwCmy1Xl4R8uVlsZ1+bCkBYKz25lhle8m7UzVWU2WXuyvy23AEeL1iuJp1d4ehToJR/yGjEcIjvkEc7qJhJ4jZXyRmdIb3yAj5oW4CvOkOIYKU970rCalNI1pzkoXzvD6KsVZct6KozRf5PgvnO6MdoZQ+PZNBTfnAXU5zLi3vmtzInCGE4vtCA/DymiTbGA+dBq8E2K5VHoxthC3g3QgH2njV6bZYprTQYkyLkn2E+EF1Xrie1wJ47R3wsOBwllJYOAg/CKFDMNcNsAI2t1KgeN8L7eaK4RtCRZbMPKMEZkJnm1wcR3RREfoFlgR8jQ==)
* `$67 76 789` shorthand for `("67";"76";"789")`
* `(\'...)` create list of splitter functions, i.e. `("67"\;"76"\";"789"\)`
* `x{...}/(...)` set up a reduce, seeded with `x` (the input), run over the list of splitter functions
+ `{"7"/y@x}` split the input (`x`) using the current splitter function (`y`), then join the result with `"7"`. feed this to the next iteration of the reduce
] |
[Question]
[
## The scenario
Lately you have been noticing some strange behavior with your favorite text editor. At first it seemed that it was ignoring random characters in your code when writing to disk. After a while you noticed a pattern; characters with odd ASCII values were being ignored. Under further inspection you discovered that you can only write to files properly if every eighth bit is zero. Now you need to know if your valuable files have been affected by this strange bug.
## The task
You must write a complete program that determines if a file contains any odd bytes (demonstrating it is uncorrupted). But because of your text editor **you cannot write any odd bytes in your source code.** You may assume any pre-existing encoding for input, however you must still check every individual byte, not just characters.
### Input
Your program will take the contents of or the path to a file from either stdin or command line.
### Output
Your program will output to stdout either a truthy value if the given file contains an odd byte or a falsy if every eighth bit is zero.
## Criteria
This is code golf, shortest program that completes the task wins. To be a valid submission every eighth bit in the files source code must be a zero. I would recommend including a copy of your source code's binaries in your submission.
[Standard loopholes](http://meta.codegolf.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default) apply.
## Test Cases
(In ASCII encoding)
Input:
```
"$&(*,.02468:<>@BDFHJLNPRTVXZ\^`bdfhjlnprtvxz|~
Output:
falsy
Input:
!#%')+-/13579;=?ACEGIKMOQSUWY[]_acegikmoqsuwy{}
Output:
truthy
Input:
LOREMIPSVMDOLORSITAMETCONSECTETVRADIPISCINGELITSEDDOEIVSMODTEMPORINCIDIDVNTVTLABOREETDOLOREMAGNAALIQVA
VTENIMADMINIMVENIAMQVISNOSTRVDEXERCITATIONVLLAMCOLABORISNISIVTALIQVIPEXEACOMMODOCONSEQVAT
DVISAVTEIRVREDOLORINREPREHENDERITINVOLVPTATEVELITESSECILLVMDOLOREEVFVGIATNVLLAPARIATVR
EXCEPTEVRSINTOCCAECATCVPIDATATNONPROIDENTSVNTINCVLPAQVIOFFICIADESERVNTMOLLITANIMIDESTLABORVM
Output:
truthy
```
## Tips
* Choose language wisely this challenge might not be possible in every language
* The Unix command `xxd -b <file name>` will print the binaries of a file to the console (along with some extra formatting stuff)
* You may use other encodings other than ASCII such as UTF-8 as long as all other rules are followed
[Answer]
# [GS2](http://github.com/nooodl/gs2), 4 [bytes](https://en.wikipedia.org/wiki/Code_page_437)
```
dΦ("
```
[Try it online!](http://gs2.tryitonline.net/#code=ZM6mKCI&input=ICIkJigqLC4wMjQ2ODo8PkBCREZISkxOUFJUVlhaXF5gYmRmaGpsbnBydHZ4enx-)
### Hexdump
```
0000000: 64 e8 28 22 d.("
```
### How it works
```
(implicit) Read all input and push it on the stack.
Φ Map the previous token over all characters in the string:
d Even; push 1 for even characters, 0 for odd ones.
( Take the minimum of the resulting list of Booleans.
" Negate the minimum.
```
[Answer]
## Befunge, 36 bytes
I know this is an old question, but I wanted to give it a try because I thought it would be an interesting challenge in Befunge.
```
>~:0`|
>20`:>$.@
|` " "<
*8*82<^p24*
```
[Try it online!](http://befunge.tryitonline.net/#code=Pn46MGB8Cj4yMGA6PiQuQAp8YCAiICI8Cio4KjgyPF5wMjQq&input=IiQmKCosLjAyNDY4Ojw-QEJERkhKTE5QUlRWWFpcXmBiZGZoamxucHJ0dnh6fH4)
It outputs `1` if the input is corrupted (i.e. contains an odd byte), and `0` if it's OK.
**Explanation**
The problem is how to determine odd bytes without having access to the `/` (divide) or `%` (modulo) commands. The solution was to multiply the value by 128 (the sequence `28*8**`), then write that result into the playfield. On a strictly standard interpreter, playfield cells are signed 8 bit values, so an odd number multiplied by 128 becomes truncated to -1 while an even number becomes 0.
The other trick was in reading the -1 or 0 back from the playfield without having access to the `g` (get) command. The workaround for this was to write the value into the middle of an existing string sequence (`" "`), then execute that sequence to push the enclosed value onto the stack. At that point, determining the oddness of the byte is a simple less-than-zero test.
One final aspect worth discussing is the output. In the false case, we reach the `>$.` sequence with just one value on the stack, so `$` clears the stack making the `.` output a zero. In the true case, we follow the path `20`:>$.`. Since two is greater than zero, the comparison pushes a one onto the stack, and the `:` makes a duplicate copy so the `$` won't drop it before it gets output.
[Answer]
## CJam (11 bytes)
```
"r2":(~f&2b
```
[Online demo](http://cjam.aditsu.net/#code=%22r2%22%3A(~f%262b&input=%22r2%22%3A(~f%262b)
Stripping away the tricks to avoid odd bytes, this reduces to
```
q1f&2b
```
which reads the input, maps a bitwise AND with `1`, and then performs a base conversion, giving zero iff all of the ANDs were zero.
[Answer]
# Printable .COM file, 100 bytes
```
^FZjfDXVL\,LPXD$$4"PXD,lHPXDjJXDRDX@PXDjtXDH,nPXDj@XD4`@PXD,ZHPXD4,@PXD4:4"PXDH,\PXD4"PXD,hPXDRDX@P\
```
Hexdump:
```
00000000 5e 46 5a 6a 66 44 58 56 4c 5c 2c 4c 50 58 44 24 |^FZjfDXVL\,LPXD$|
00000010 24 34 22 50 58 44 2c 6c 48 50 58 44 6a 4a 58 44 |$4"PXD,lHPXDjJXD|
00000020 52 44 58 40 50 58 44 6a 74 58 44 48 2c 6e 50 58 |RDX@PXDjtXDH,nPX|
00000030 44 6a 40 58 44 34 60 40 50 58 44 2c 5a 48 50 58 |Dj@XD4`@PXD,ZHPX|
00000040 44 34 2c 40 50 58 44 34 3a 34 22 50 58 44 48 2c |D4,@PXD4:4"PXDH,|
00000050 5c 50 58 44 34 22 50 58 44 2c 68 50 58 44 52 44 |\PXD4"PXD,hPXDRD|
00000060 58 40 50 5c |X@P\|
00000064
```
Using a *very loose* definition of source as something that can be reasonably typed by a human, and inspired by [EICAR Standard Antivirus Test File](http://www.eicar.org/86-0-Intended-use.html) (more info at [*"Let's have fun with EICAR test file"*](http://archive.cert.uni-stuttgart.de/bugtraq/2003/06/msg00251.html) at Bugtraq).
Using only printable non-odd ASCII bytes (side note: opcodes affecting words tend to be odd, the W bit is the lsb of some opcodes), it constructs a fragment of code at SP (which we conveniently set just past our generating code), and execution ends up falling through to the generated code.
It uses the fact that the stack initially contains a near pointer to the start of the PSP, and that the start of the PSP contains the `INT 20h` instruction (more info on this at [https://stackoverflow.com/questions/12591673/](https://stackoverflow.com/questions/12591673/whats-the-difference-between-using-int-0x20-and-int-0x21-ah-0x4c-to-exit-a-16)).
Real source:
```
; we want to generate the following fragment of code
; 5E pop si ; zero SI (pop near pointer to start of PSP)
; 46 inc si ; set SI to 1
; loop:
; B406 mov ah,0x6 ; \
; 99 cwd ; >
; 4A dec dx ; > D-2106--DLFF
; CD21 int 0x21 ; > DIRECT CONSOLE INPUT
; 7405 jz end ; > jump if no more input
; 40 inc ax ; > lsb 0/1 odd/even
; 21C6 and si,ax ; > zero SI on first odd byte
; EBF3 jmp short loop ; /
; end:
; 96 xchg ax,si ; return code
; B44C mov ah,0x4c ; D-214C
; CD21 int 0x21 ; TERMINATE WITH RETURN CODE
pop si ; this two opcodes don't need to be encoded
inc si
pop dx ; DX = 20CD (int 0x20 at start of PSP)
push byte +0x66
inc sp
pop ax
push si
dec sp
pop sp ; SP = 0x0166
sub al,0x4c ; B4
push ax
pop ax
inc sp
and al,0x24
xor al,0x22 ; 06
push ax
pop ax
inc sp
sub al,0x6c
dec ax ; 99
push ax
pop ax
inc sp
push byte +0x4a ; 4A
pop ax
inc sp
push dx ; [20]CD
inc sp
pop ax
inc ax ; 21
push ax
pop ax
inc sp
push byte +0x74 ; 74
pop ax
inc sp
dec ax
sub al,0x6e ; 05
push ax
pop ax
inc sp
push byte +0x40 ; 40
pop ax
inc sp
xor al,0x60
inc ax ; 21
push ax
pop ax
inc sp
sub al,0x5a
dec ax ; C6
push ax
pop ax
inc sp
xor al,0x2c
inc ax ; EB
push ax
pop ax
inc sp
xor al,0x3a
xor al,0x22 ; F3
push ax
pop ax
inc sp
dec ax
sub al,0x5c ; 96
push ax
pop ax
inc sp
xor al,0x22 ; B4
push ax
pop ax
inc sp
sub al,0x68 ; 4C
push ax
pop ax
inc sp
push dx ; [20]CD
inc sp
pop ax
inc ax
push ax ; 21
pop sp ; now get the stack out of the way
```
[Answer]
# [MATL](https://github.com/lmendo/MATL), 7 bytes
```
l$Z$2\z
```
The source code uses UTF-8 encoding. So the source bytes are (in decimal)
```
108 36 90 36 50 92 122
```
The input is a file name, taken as a string enclosed in single quotes. The output is the number of odd bytes in the file, which is truthy iff nonzero.
### Explanation
```
l % Push a 1. We use `l` instead of `1` to have an even value
$ % Input specificication. This indicates that the next function takes 1 input
Z$ % Input file name implicitly, read its raw bytes and push them as an array of chars
2\ % Modulo 2
z % Number of nonzero values. This gives the number of odd bytes. Implicitly display
```
[Answer]
# CJam, ~~18~~ ~~17~~ 15 bytes
```
"<rj":(((*~:|X&
```
Assumes that the locale is set to Latin-1. [Try it online!](http://cjam.tryitonline.net/#code=IjxyaiI6KCgoKn46fFgm&input=IjxyaiI6KCgoKn46fFgm)
### How it works
The straightforward solution goes as follows.
```
q e# Read all input from STDIN and push it as a string on the stack.
:i e# Cast each character to its code point.
:| e# Take the bitwise OR of all code points.
X e# Push 1.
& e# Take the bitwise AND of the logical OR and 1.
```
Unfortunately, the characters `q` and `i` cannot appear in the source code. To work around this issue, we are going to create part of the above source code dynamically, then evaluate the string.
```
"<rj" e# Push that string on the stack.
:( e# Decrement all characters, pushing ";qi".
( e# Shift out the first character, pushing "qi" and ';'.
( e# Decrement ';' to push ':'.
* e# Join "qi" with separator ':', pushing "q:i".
~ e# Evaluate the string "q:i", which behaves as explained before.
```
[Answer]
# Pyth, ~~20~~ 13 bytes
```
vj0>LhZ.BRj.z
```
Or in binary:
```
00000000: 01110110 01101010 00110000 00111110 01001100 01101000 vj0>Lh
00000006: 01011010 00101110 01000010 01010010 01101010 00101110 Z.BRj.
0000000c: 01111010 z
```
[Try it online](https://pyth.herokuapp.com/?code=vj0%3ELhZ.BRj.z&input=+%22%24%26%28%2a%2C.02468%3A%3C%3E%40BDFHJLNPRTVXZ%5C%5E%60bdfhjlnprtvxz%7C~)
### How it works
```
.z all lines of input
j join on newline
.BR convert each character to binary
>LhZ take the last (0 + 1) characters of each binary string
j0 join on 0
v evaluate as an integer
```
The resulting integer is truthy (nonzero) iff any of the bytes were odd.
[Answer]
# [Jelly](https://github.com/DennisMitchell/jelly), 13 [bytes](https://github.com/DennisMitchell/jelly/wiki/Code-page)
```
24‘ịØBvF|\ṪBṪ
```
Expects the input as a quoted command-line argument. [Try it online!](http://jelly.tryitonline.net/#code=MjTigJjhu4vDmEJ2Rnxc4bmqQuG5qg&input=&args=JycnTE9SRU1JUFNWTURPTE9SU0lUQU1FVENPTlNFQ1RFVFZSQURJUElTQ0lOR0VMSVRTRURET0VJVlNNT0RURU1QT1JJTkNJRElEVk5UVlRMQUJPUkVFVERPTE9SRU1BR05BQUxJUVZBCiBWVEVOSU1BRE1JTklNVkVOSUFNUVZJU05PU1RSVkRFWEVSQ0lUQVRJT05WTExBTUNPTEFCT1JJU05JU0lWVEFMSVFWSVBFWEVBQ09NTU9ET0NPTlNFUVZBVAogRFZJU0FWVEVJUlZSRURPTE9SSU5SRVBSRUhFTkRFUklUSU5WT0xWUFRBVEVWRUxJVEVTU0VDSUxMVk1ET0xPUkVFVkZWR0lBVE5WTExBUEFSSUFUVlIKIEVYQ0VQVEVWUlNJTlRPQ0NBRUNBVENWUElEQVRBVE5PTlBST0lERU5UU1ZOVElOQ1ZMUEFRVklPRkZJQ0lBREVTRVJWTlRNT0xMSVRBTklNSURFU1RMQUJPUlZNJycn)
### Hexdump
```
0000000: 32 34 fc d8 12 42 76 46 7c 5c ce 42 ce 24...BvF|\.B.
```
[Answer]
# [Retina](https://github.com/m-ender/retina), 106 bytes
Removes every allowed character, then matches any remaining characters. Truthy values will be the number of characters found. Falsey values will be `0`.
```
`"| |\$|&|\(|\*|,|\.|0|2|4|6|8|:|<|>|@|B|D|F|H|J|L|N|P|R|T|V|X|Z|\\|\^|`|b|d|f|h|j|l|n|p|r|t|v|x|z|\||~
.
```
[**Try it online**](http://retina.tryitonline.net/#code=YCJ8IHxcJHwmfFwofFwqfCx8XC58MHwyfDR8Nnw4fDp8PHw-fEB8QnxEfEZ8SHxKfEx8TnxQfFJ8VHxWfFh8WnxcXHxcXnxgfGJ8ZHxmfGh8anxsfG58cHxyfHR8dnx4fHp8XHx8fgoKLg&input=YCJ8IHxcJHwmfFwofFwqfCx8XC58MHwyfDR8Nnw4fDp8PHw-fEB8QnxEfEZ8SHxKfEx8TnxQfFJ8VHxWfFh8WnxcXHxcXnxgfGJ8ZHxmfGh8anxsfG58cHxyfHR8dnx4fHp8XHx8fgoKLg)
Since `.` doesn't match newlines by default, I don't have to remove them.
[Answer]
## [Perl 5](https://www.perl.org/) + `-p0`, 136 bytes
Similar to other answers, this removes all even bytes and leaves any odd bytes (which is truthy).
```
tr< |