Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 319

Code-golf is a competition to solve a particular problem in the fewest bytes of source code.

8 votes

Decipher a Vigenère ciphertext

MS-DOS 16bit .COM file - 87 bytes Base64 encoded binary (following this link for a decoder) v1cBi8/oQACJ/ovv6DkAi9msitAqF3MDgMI+gMJhgPp6dguA6jqA+lp2A4DqK80hO/d0IkM563TW69YsYXMIBCB9AgQrBBqqtAHNITwNde …
Skizz's user avatar
  • 2,321
2 votes

Chessboard pattern

C++ - 253 obfuscated characters #include <iostream.h> int main(int i,char*c[]=0) { char a=i,b=i>>8;i&32512?((i>>16&255)<a)?(cout<<b)?main((i^30720)+65536):0:(cout<<endl)?(((b=(i>>24)+1)<a)?main((i& …
Skizz's user avatar
  • 2,321
19 votes

Determine if a number is divisible by 13 (without using 13 itself)

ASM - 16 bit x86 on WinXP command shell executable - 55 bytes * 0.8 = 44 source - 288 characters * 0.8 = 230.4 The number 13 doesn't even appear in the assembled .com file. Assemble using A86. …
Skizz's user avatar
  • 2,321
0 votes

IPv4 Integer Conversion Function

ASM - 98 byte executable (WinXP command shell), about 485 characters Assemble using A86. Badly formed IP addresses generate undefined output. mov si,82h mov di,10 mov bp,l3 fldz …
Skizz's user avatar
  • 2,321
1 vote

Calculate the total number of paths

ASM - WinXP Command shell .COM 128 bytes, source = 607 characters To run, provide the rock id and the direction, e.g. program c1 where the letter is the rock (top left = a, bottom right = l) and t …
Skizz's user avatar
  • 2,321
0 votes

Write a self-replicating program.

DOS COM File - 36 bytes 56 BE 80 00 AD FE C8 A2 10 01 7E 17 89 F2 88 74 02 B4 3C 33 C9 CD 21 72 0A 8B D8 B4 40 5A B9 24 00 CD 21 C3 Output file name is specified on the command line, truncated to …
Skizz's user avatar
  • 2,321
10 votes

Recreate a 'Snake' game in a console/terminal

16 bit 8086 526 bytes / 390 bytes Decode this using a Base64 decoder and call it "snake.com" then execute from Windows command prompt. Tested on WinXP, you may need to use DosBox to get the right v …
Skizz's user avatar
  • 2,321
4 votes

Assembly Language Quine

Windows .COM Format: 307 characters Assembles, using A86, to 51 bytes. Requires no external libraries other than the DOS Int21 AH=9 function (write string to stdout). db 185 db 51 db 0 db 190 db …
Skizz's user avatar
  • 2,321
2 votes

Look and say sequence

C: 213 characters main(){char*a,*b=calloc(' ',' '),*c=calloc(' ',' '),*d,*e,*f;*b='Q'-' ';for(a=" ";*a;++a){printf("%s\n",b);e=f=b;d=c;while(*e){while(*f==*e){++f;}d+=sprintf(d,"%d …
Skizz's user avatar
  • 2,321
6 votes

Print a Christmas Tree

C This is Wade Tandy's C version but modified a little bit: ; int main( ){int i =-1,j=0,c =10;while(j ++<c){printf( " ");}{;printf( "*" …
Skizz's user avatar
  • 2,321
6 votes

Generating PBM bitmap files from ASCII text

8086 Machine Code 190 Bytes (122 Bytes using BIOS) Here's Base64 encoded WinXP/MSDos .COM file: M8COwCaKDoUEitEmxD4MAaCAAP7IfliK8MHgA7cK9ve9egEAZ vy0APb3AUb6iMi0APb3AUb+x0YACg2DxQK+ggCK7qz24YvYJo o …
Skizz's user avatar
  • 2,321
0 votes

Print largest integer you can with the fewest characters

Windows x86 .com 8 bytes B4 02 B2 39 CD 21 EB F8
Skizz's user avatar
  • 2,321
22 votes

Obfuscated FizzBuzz Golf

C++: 886 chars I've tried to hide the 'fizz' and the 'buzz'. Can you spot them? #include <iostream> #define d(a,b) a b #define _(a,b) d(#b,#a) #define b(b) _(b,b) #define y _(i,f)c #define x _(u,b)c …
Skizz's user avatar
  • 2,321
56 votes

Interpret brainfuck

16 bit 8086 machine code: 168 bytes Here's the base64 encoded version, convert and save as 'bf.com' and run from Windows command prompt: 'bf progname' gMYQUoDGEFKzgI1XAgIfiEcBtD3NIR8HcmOL2LQ/i88z0s0 …
Skizz's user avatar
  • 2,321
6 votes

Koch Snowflake - codegolf

MS-DOS 16 bit machine code: 199 bytes Decode using this site, save as 'koch.com' file and execute from WinXP command prompt. sCAAxo7ajsKLz/OquF9fulwvvUoBM9u+BADoiQDodgDocwDogADobQDoagDodwCK8TLSs0+I9 …
Skizz's user avatar
  • 2,321

15 30 50 per page