New answers tagged

0 votes

Random Pixels Image Compression

Yabasic, 196 bytes Program that takes input \$n\$ from STDIN and outputs to a 'grafic' window. ...
user avatar
2 votes

Apartment Building

C (GCC), 213 bytes ...
user avatar
  • 1,172
2 votes

Apartment Building

C++ 20 (GCC), 182 177 170 bytes ...
user avatar
1 vote

Apartment Building

Google Sheets, 162 159 bytes ...
user avatar
  • 3,566
4 votes

Apartment Building

Excel, 143 142 bytes Anonymous worksheet function that takes input from cell A1 and output to the calling cell. ...
user avatar
1 vote

Random Pixels Image Compression

Excel VBA, 145 bytes An anonymous immediate window function that takes input from [A1] and outputs to the active worksheet. Clear input on execution. ...
user avatar
0 votes

Apartment Building

C, 211 bytes ...
user avatar
0 votes

Apartment Building

Pip, 63 bytes P'_X8Fi,DaPi?RC" - - [] __ __"<>6'-X4WRsWR:'|P"| |"X2'-X8 Attempt This Online! Explanation Roof: ...
user avatar
  • 31.7k
6 votes

Apartment Building

x86-64 machine code, 68 bytes ...
user avatar
  • 5,326
2 votes

Apartment Building

Java (JDK), 160 bytes ...
user avatar
4 votes

Apartment Building

Charcoal, 36 bytes ×_⁴⸿E⊖N⎇ι‽⪪| - | [|__⁴| --⟦| |⁴⟧‖M Try it online! Link is to verbose version of code. Explanation: ×_⁴⸿ ...
user avatar
  • 142k
0 votes

Apartment Building

Factor, 139 138 bytes ...
user avatar
  • 8,568
1 vote

Apartment Building

Python 3, 164 161 bytes ...
user avatar
  • 399
4 votes

Apartment Building

Perl 5 -n, 110 bytes ...
user avatar
  • 12.4k
2 votes

Apartment Building

JavaScript, 168 153 151 149 147 146 140 136 bytes -13 thanks to Steffan, -2 by emaneresu A, -2 by myself, -2 by myself, -1 by myself, -6 by tsh, and -4 by me ...
user avatar
  • 411
5 votes

Apartment Building

Python, 102 139 136 ,134 117 bytes lambda n:[8*"_","| ---- |",*choices(['| - - |','|__ __|','| [] |'],k=n)][:n]+[2*"| |",8*'-'] from ...
user avatar
  • 961
4 votes

Apartment Building

C++, 281 bytes ...
user avatar
5 votes

Apartment Building

Vyxal, 41 bytes ‹¨2[` [ - __ `²℅|ð2-]\|p;‛| m4-½J\_4*pøm Try it Online! ...
user avatar
  • 26.7k
5 votes

Apartment Building

05AB1E, 47 46 44 bytes -2 thanks to Kevin Cruijssen. '_4×I≠i"| --"¹ÍF"| - | [|__ "3äΩ]„| º'-4×»º Try it online!
user avatar
  • 5,787
2 votes

Random Pixels Image Compression

Wolfram Language (Mathematica), 93 bytes Image/@NestList[BlockMap[Boole[#~Total~2+r[]>2]&,#,{2,2}]&,r=RandomInteger;1~r~{#,#},Log2@#]& Try it online!...
user avatar
  • 32.7k
2 votes

Random Pixels Image Compression

J, 91 bytes load'viewmat' [:viewmat[:,.~/[:>:&>(,:~2 2)0:`(?@2)`1:@.(1+_2*@++/@,);._3&.:>^:a:[:<,~?@$2: Try it online! Output from the above is ...
user avatar
  • 26.5k
1 vote

Shuffle an array, a little bit

Vyxal, 8 bytes Ṗ'ż-ȧ⁰≤A Try it Online! Port of 05AB1E. How? ...
user avatar
  • 3,566
3 votes

Print a shuffled deck of cards

Vyxal, 23 bytes kA4Ẏk^ḢṪ\DoẊ`1F0`vpHCÞ℅ Try it Online! Port of 05AB1E. How? ...
user avatar
  • 3,566
3 votes

Random Pixels Image Compression

JavaScript (browser), 334 bytes ...
user avatar
  • 142k
2 votes

Random Pixels Image Compression

C (GCC), 296 bytes ...
user avatar
  • 1,172
0 votes

Display random colored pixels

PostScript, 151 bytes ...
user avatar
3 votes

Random Point from a 2D Donut Distribution

Desmos, 80 70 68 bytes b=random(1,t)τ f(r,s,t)=(normaldist(r,s).random(1,t)(cosb,sinb))[1] Takes an extra argument t as the ...
user avatar
  • 15.9k
1 vote

Faux Source Code

Python 3.8 (pre-release), 75 bytes exec(a:='from random import*;print(*choices("exec(a:=%r)"%a,k=75),sep="")') Try it online!
user avatar
  • 2,328
1 vote

Can you Golf Golf?

Vyxal, 14 bytes {:ṁ4≠|18ƛ3 6r℅ Try it Online! ...
user avatar
  • 26.7k
1 vote

Can you Golf Golf?

05AB1E, 16 bytes [18Lε3LÌΩ}DO₆·Q# Try it online!
user avatar
  • 5,787
3 votes

Split given integer into a given number of integers, each within given bounds

Wolfram Language (Mathematica), 49 bytes RandomChoice@Pick[t=Range@##3~Tuples~#2,Tr/@t,#]& Try it online! Input ...
user avatar
  • 15k
0 votes

Split given integer into a given number of integers, each within given bounds

Charcoal, 34 bytes NθNηNζ≔⊕⁻NζεI‽ΦEXεη⁺﹪÷ιXε…⁰ηεζ⁼Σιθ Try it online! Link is to verbose version of code. Takes input in the order GrandTotal, SplitCount, ...
user avatar
  • 142k
0 votes

Split given integer into a given number of integers, each within given bounds

JavaScript (ES6), 85 bytes Expects (count, lower, upper)(total). ...
user avatar
  • 166k
0 votes

Split given integer into a given number of integers, each within given bounds

Bash, 164 bytes ...
user avatar
  • 1,172
1 vote

Split given integer into a given number of integers, each within given bounds

Burlesque, 49 bytes r@s1Js2rzjCBf{++g2==}f{{g1j~[}al}sa-.3 0x/rn1.+si Try it online! ...
user avatar
2 votes

Split given integer into a given number of integers, each within given bounds

Python 3.8 (pre-release), 116 bytes -12 bytes thanks to Jitse Accepts input in the form of ...
user avatar
  • 565
2 votes
Accepted

Split given integer into a given number of integers, each within given bounds

05AB1E, 8 bytes ŸIãʒOQ}Ω Inputs in the order UpperLimit,LowerLimit,SplitCount,GrandTotal. Try it online or verify all test ...
user avatar

Top 50 recent answers are included