Oct 25, 2018 13:49
@PeterTaylor The OP scheduled a YouTube Video containing the test data or something. I´d be surprised if someone would hack it to win this challenge.
Oct 25, 2018 13:49
@PeterTaylor Smallest average value of the output of program A over a fixed collection of random test cases wins. That´s pretty objective I think; as long as the collection is guaranteed to be fixed.
Oct 25, 2018 13:49
Ok, guess I understood. As I see it, the optimal approach is to A) find out what gcc rand() does without randomize() and B) what´s the common factor in your data generators, which I can only guess. Would you please clarify what you mean with with a different random source? A different definition of rnddgt()?
Oct 25, 2018 13:49
As I see it, program A has to compress the pairs given in its input and program B has to decompress. The score is what? size of program A´s output for the pre-test and/or test data?
 
Sep 3, 2017 13:35
Yes please, fixed length! hint: rephrase the tenth index is 10 to there is 10 at index 10 and somehow mention that only the digits count (but then: why not just take a non-negative integer or list of digits as input?)
 

 The Nineteenth Byte

The Nineteenth Byte: General discussion for codegolf.stackexc...
Aug 3, 2017 17:18
I´d say that deserves some more answers.
Aug 3, 2017 17:18
7
Q: Trivial Brainf**k Substitution Interpreter

MD XFBrainf**k is the most famous esoteric programming language and is the inspiration for hundreds of other esoteric languages. In fact, there are quite a few languages that are so heavily based off of Brainf**k that the only difference is the characters used. Your challenge is to interpret one of th...

Jul 28, 2017 08:23
@ASCII-only his own language
Jul 28, 2017 07:21
I´d say something unidirectional for replace ... like ➡️ or →
Jul 28, 2017 07:19
how about ☕ for delay?
Jul 28, 2017 05:52
^^
Jul 28, 2017 05:42
Maybe if I´d learned Java in time, I wouldn´t be paying a rent but a mortgage instead. hehe.
Jul 28, 2017 05:41
I know C, I just don´t work a lot with it. PHP is paying my bread and butter and rent and well about everything. :D
Jul 28, 2017 05:38
what was that with the fruit?
Jul 28, 2017 05:37
3
A: Stream of Letters to Words

TitusPHP, 94 bytes for(;$c=$argn[$k++];print$c." "[--$e])if(!$e)for($r=rand(0,71);$r>ord(x^"ywgSKAF:=?"[$e++]);); Run as pipe with -nR or try it online. breakdown for(;$c=$argn[$i++]; # loop $c through string print$c # 2. print current character, ." ...

Jul 28, 2017 05:37
1
A: Print Numbers from 1 to 10

TitusJavaScript with UnderscoreJS, 20 Bytes alert(_.range(1,11))

Jul 28, 2017 05:36
and why do so many ppl with 100 rep lecture me?
Jul 28, 2017 05:35
what´s the UTF code for coffee?
Jul 28, 2017 05:35
good morning
Jul 27, 2017 11:23
Does charcoal have a mascot? idk why, but the word "Charcoleon" just popped into my mind.
Jul 27, 2017 10:34
looks like ceil(x/y) or similar
Jul 27, 2017 03:52
Jul 27, 2017 03:49
Searching for an Emoji Keyboard? Try this: engadget.com/2015/11/04/hardware-emoji-keyboard-emojiworks
Jul 26, 2017 15:41
I just noticed that jelly roll is a teapot.
Jul 26, 2017 15:37
I put jelly on my roll at breakfast. or was that jam?
Jul 25, 2017 23:06
Last time I looked, Martin had 100k rep or so ... did he gain 50k in 6 months? evil! :D
Jul 25, 2017 19:03
Ok, try for($c=A;$a[$c]++<4||$c++<Z;)echo"\n$c";
Jul 25, 2017 19:01
@BusinessCat That´s nothing to do with PHP. It would fail in any other language, too.
Jul 25, 2017 18:59
Is that the R10K bug?
Jul 25, 2017 18:57
a little challenge: Why does for($c=A;$$c++<4||$c++<Z;)echo"$c\n"; print A 4 times, but every other letter 5 times? :=)
Jul 25, 2017 12:40
@dzaima I think PHP has that ... at least two equal arrays with the same values are ==
Jul 25, 2017 07:33
@Dennis this is so great, I just had to port it.
 
Apr 7, 2017 17:37
What difference is there between for and while in atomic mode? I see none. Do comparisons (tests) or logical operators count as operations?
 
Mar 24, 2017 19:24
ein Byte kriege ich noch runter mit $p++<$w+$w*2*$h und da fehlte noch $w=1+$argv[1] und -4 mit $y+=!$x; aber immer noch 5 bytes länger als vorher statt kürzer
Mar 24, 2017 19:17
for(;$p++<(1+$w=$argv[1])*(1+2*$h=2*$argv[2]);$y=$p-$x*$w)echo($x=$p%$w)?$y%2?($‌​x+$y+$h*$y)%($h+2)>1|$x>($w-1&~1)?" ":UBUGUBU[$n++%14/2]:" -="[$y%(2*$h)?$y-$h?$x&1:2:1]:"\n";
Mar 24, 2017 19:16
174-1 bytes mit $p und "\n" im ternary ... also +10
Mar 24, 2017 19:06
"\n" im ternary kostet erstmal 3 Bytes
Mar 24, 2017 15:33
$w+1 und "\n" mit in den Ternary? evtl. $p statt $x und $y? Weiß nicht, ob ich heute dazu komme.
Mar 24, 2017 15:32
Bin skeptisch, dass das machbar ist. Schleifen mergen kostet in dem Fall sogar, statt was zu bringen. Muss also ein neuer Algorithmus her oder Ausdrücke golfen
Mar 24, 2017 09:09
Das war schon mal ergiebiger
Mar 24, 2017 09:00
drei
Mar 24, 2017 08:59
könnte die zwei Schleifen zu einer zusammenfassen; spart aber momentan nur ein Byte
Mar 24, 2017 07:59
ähm doch nur 5
Mar 24, 2017 07:55
Ob sich das andere Leerzeichen auch noch in dem String unterbringen lässt?
Mar 24, 2017 07:54
@Christoph Danke für die 6 Bytes. =D
Mar 23, 2017 16:38
@Christoph siehe vor 25 Stunden :)
Mar 23, 2017 16:37
Leer- und Ausrufezeichen sind ja nicht dabei
Mar 23, 2017 16:36
kannst immer noch *a<35 statt *a==34
Mar 23, 2017 16:05
ah! nice!
Mar 23, 2017 15:47
Desktop notification funktioniert. :) Aber wo ist der Unterschied?