Skip to main content

New answers tagged

1 vote

Help, I've mixed my week up!

Uiua, 6 bytes ↻1Days Boring builtin answer (Days starts with "Sunday", so it ...
nyxbird's user avatar
  • 1,019
0 votes

Help, I've mixed my week up!

AWK, 63 bytes $0=gensub(/X/,"day ","g","MonXTueXWednesXThursXFriXSaturXSunX") Attempt This Online!
xrs's user avatar
  • 579
1 vote

Display the result of doing 8 perfect shuffles of a deck of cards

Vyxal, 19 bytes «0ÞnM≥«yf₀ḢJẊ‡IƒY↲Ǐ Try it Online! This heavily abuses the question allowing any human-readable representation and any order - output is as a list ...
emanresu A's user avatar
  • 44.2k
1 vote

Display the result of doing 8 perfect shuffles of a deck of cards

Perl 5, 77 bytes @d=map{//;map$'.$_,S,C,D,H}A,2..9,T,J,Q,K;say@d=map@d[$_,$_+26],0..25for 1..9 Try it online!
Xcali's user avatar
  • 16.2k
1 vote

"Hello, World!"

Pascal, 32 bytes BEGIN WRITE('Hello, World!')END.
Malbolger's user avatar
0 votes

Display the result of doing 8 perfect shuffles of a deck of cards

Uiua, 26 bytes ⍥₈(♭⍉↯2_∞.)♭⊞⍚⊂Cards Suits Try it! ...
nyxbird's user avatar
  • 1,019
0 votes

Implement Smokey's !!/alive command

AWK, 268 bytes ...
xrs's user avatar
  • 579
0 votes

Draw an alphabet party hat

AWK, 101 bytes @load "ordchr";{for(i=26;i--;print){for(j=int(i/2);j--;)printf" ";for(k=i+96;k++<122;)printf chr(k)}} Attempt This Online! ...
xrs's user avatar
  • 579
0 votes

String analyser

05AB1E, 15 bytes •9¢y` т•₂вD.b×» Try it online. Explanation: The .b builtin is perfect for this challenge, since it uses the 1-...
Kevin Cruijssen's user avatar
0 votes

String analyser

AWK, 95 bytes @load "ordchr" END{for(;i++<split("AWSALILAND",a,X);print)for(j=0;j++<ord(g=a[i])-64;)printf g} Attempt This Online!
xrs's user avatar
  • 579
0 votes

Print/Output the L-phabet

AWK, 78 bytes @load "ordchr" END{for(i=64;i++<90;print)for(j=64;j++<90;)printf chr(j<i?i:j)} Attempt This Online!
xrs's user avatar
  • 579
0 votes

Polar Bear, Polar Bear, what do you hear?

AWK, 457 bytes ...
xrs's user avatar
  • 579
1 vote

Draw the Flag of Greenland

C (GCC), 101 100 bytes -1 byte thanks to @ceilingcat ...
matteo_c's user avatar
  • 6,950
0 votes

There are known knowns

AWK, 56 bytes {$0="X Xs\nX unXs\nunX Xs\nunX unXs";gsub("X","known")}1 To test: ...
xrs's user avatar
  • 579
0 votes

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

YASEPL, 49 bytes =a!1)"BbBbbbB"`1!b¥a,1~#"uffalo "!+}2,7#"buffalo"
madeforlosers's user avatar
0 votes

When do I get my sandwich?

AWK -F "", 22 bytes $0=index("enklact",$4) ...
xrs's user avatar
  • 579
1 vote

1, 2, Fizz, 4, Buzz

ibe, 197 bytes ...
madeforlosers's user avatar
1 vote

Print the numbers -1, 0, 1

Brainfuck, 41 bytes -[+>+[+<]>+]>-[->+>+<<]>.++++.>-.<-.>.<+. Attempt This Online! Uses comma ...
Joon Yorigami's user avatar
0 votes

1, 2, Fizz, 4, Buzz

AWK, 56 bytes {for(;i++<$1;)print i%3?i%5?i:y="Buzz":i%5?x="Fizz":x y} To test: ...
xrs's user avatar
  • 579
0 votes

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

AWK, 38 bytes $0="BbBbbbBb"{gsub(/B|b/,"&uffalo ")}1 Attempt This Online!# AWK, 36 bytes Different approach from other AWK solutions.
xrs's user avatar
  • 579
0 votes

Print the numbers -1, 0, 1

AWK, 16 bytes END{print"-101"} Some AWK implementations will need BEGIN instead of END, however. You could do it at 9 bytes, with an empty input: ...
xrs's user avatar
  • 579
0 votes

Print the numbers -1, 0, 1

gammascript, 49 12 bytes write -1 0 1 cheesy. But since there's no other way to make it shorter, this works try it online (the double newlines aren't really ...
Gleb's user avatar
  • 153
1 vote

Print numbers from 1 to 10

PacalABC.NET, 24 bytes This the least known language in here begin;(1..10).Print;end.
Gleb's user avatar
  • 153
0 votes

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

Kakoune, 24 bytes 8+iBuffalo <esc>b)<a-,>)<a-,>3)<a-,>`gld basically we write Buffalo with 8 cursors then remove the selections we want to ...
JoshM's user avatar
  • 447
0 votes

"Hello, World!"

Array?, 16 bytes Decided to add the Array? answer again [Hello\, World!]
Gleb's user avatar
  • 153
1 vote

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

Vyxal 3 -S, 14 bytes 162bƛ"Tᶪэd„n¿V Vyxal It Online! Similar to vyxal 2, but with a better set up
pacman256's user avatar
  • 4,718
1 vote

Print a 10 by 10 grid of asterisks

Red, 26 bytes loop 10[print '**********] Try it online!
Galen Ivanov's user avatar
  • 21.2k
1 vote

Print a 10 by 10 grid of asterisks

Joeasus, 11 bytes GRID 10 '*' Try It Online! You don't so much "Write" Joeasus answers as you do find them.
ATaco's user avatar
  • 11.2k
1 vote

Print the phrase "And she said, 'But that's his.'" using only the alphabet

ibe, 141 bytes (edit: I used the wrong command for output lol) ...
madeforlosers's user avatar
1 vote

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

C#, 70 bytes Console.Write(string.Join("uffalo ","BbBbbbBb ".ToCharArray())[..^2]); Try it online!
Ezlanding's user avatar
  • 301
2 votes

Output Buffalo buffalo Buffalo buffalo buffalo buffalo Buffalo buffalo

Joeasus, 29 27 23 bytes pp![BufflotongueTwister Run Peq Online -2 thanks to emanresu A -4 thanks to lyxal Joeasus is a joke programming language "interpreted&...
Unrelated String's user avatar
1 vote

"Hello, World!"

Joeasus, 2 1 byte , Try it Online! Original solution hw Try it Online! Yes I know very silly.
Seggan's user avatar
  • 6,642
0 votes

"99 Bottles of Beer"

AWK, 250 bytes ...
xrs's user avatar
  • 579
0 votes

"Hello, World!"

Nythop, 21 bytes )"!dlrow olleH"(tnirp Never make a Python version of Pain-Flak
Gleb's user avatar
  • 153
0 votes

"Hello, World!"

true, 16 bytes "Hello, World". I haven't even made an online interpreter for this language yet And yes. The languages name is spelled in lowercase
Gleb's user avatar
  • 153

Top 50 recent answers are included