Search Results
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 |
Code-golf is a competition to solve a particular problem in the fewest bytes of source code.
1
vote
A sign showing grouped opening hours of a cafe
BaCon, 514 496 455 bytes
The BASIC program below is shown with its indentation. But without the indentation it consists of 455 bytes.
The idea is to use the time schedules as indexes to an associati …
4
votes
Golf you a quine for great good!
BaCon, 54 bytes
Without using the SOURCE$ variable, the smallest Quine is 55 bytes:
s$="s$=%c%s%c:?34,s$,34 FORMAT s$":?34,s$,34 FORMAT s$
3
votes
Armistice Day Challenge
BaCon, 71 bytes
A complete BASIC program in one line.
INPUT n:FOR x=1 TO n:?"|| ||",SPC$(n-x+2),"//",SPC$(x+1),"|| ||":NEXT
1
vote
Hiccup a string
BaCon, 93 bytes
A solution in BASIC. The RANDOM() function generates a number between 0 and n-1, therefore we have to use RANDOM(11) to get a number between 0 and 10 inclusive.
INPUT s$
WHILE LEN(s$ …
2
votes
Let's draw some Atari ST bombs!
BaCon, 229 227 195 bytes
A contribution in BASIC for sake of nostalgia. The variable 'a' determines the amount of bombs.
a=2:FOR x=0 TO 15:FOR y=1 TO a:FOR i=15 DOWNTO 0:?IIF$(v[x]&INT(POW(2,i)),"## …
0
votes
Output the Hebrew alphabet
BaCon, 57 bytes
In most BASICs, the question mark simply represents PRINT.
At first glance, the solution below looks like 30 bytes, but the Hebrew characters need 2 bytes of storage because of UTF-8 …
1
vote
Is it a pangram?
BaCon, 49 bytes
?IIF(AMOUNT(UNIQ$(EXPLODE$(LCASE$(s$))))>25,1,0)
0
votes
Convert a string of digits from words to an integer
BaCon, 83 72 bytes
Assuming the string is provided in w$, this code looks up the index in "zeontwthfofisiseeini" using a regular expression based on the unique first 2 characters of each word. The in …
2
votes
Interpret /// (pronounced 'slashes')
BaCon, 391 387 395 bytes
From the contributions on this page I only got the Python program to work. The others work for some /// samples, or do not work at all. Therefore, I decided to add my version …