Skip to main content

All Questions

Tagged with
4 votes
6 answers
449 views

Cell`s Life #1: Simulate a plant cell

What am I? As a plant cell, your program/function/etc. must undergo photosynthesis: When the input is 6CO2+6H2O+light in any order, output ...
W D's user avatar
  • 392
17 votes
11 answers
2k views

Write a Web server quine

Write a program that accepts HTTP requests on any port of your choice above 1024, and responds to requests on any URL of your choice with its own source code. It must work with, at least, Firefox and ...
Someone's user avatar
  • 1,620
3 votes
1 answer
216 views

I reverse the source code, you reverse the source code! [duplicate]

Write a program that outputs its source code in reverse when run, and outputs its source forwards when I reverse the source. If your program is "abcd", when run with no arguments it should ...
noodle person's user avatar
13 votes
5 answers
1k views

Print the answer before a given answer

In this challenge, you'll take an answer as input, and print the answer before it. If the answer passed as input is the first answer, print your own submission's source. You'll be passed any answer in ...
Rydwolf Programs's user avatar
5 votes
10 answers
1k views

Write a program that prints a program that's almost quine

Your task is to make a program in L that takes n as an input number, output a program p in <...
Fmbalbuena's user avatar
  • 4,167
13 votes
10 answers
1k views

Lexicographically self-comparing code

This is a quine challenge related to Write the shortest self-identifying program (a quine variant) Write a function or a full program that compares lexicographically its source code and input, that is,...
AZTECCO's user avatar
  • 10.8k
12 votes
2 answers
771 views

Jelly compression quine

The golfing language Jelly has a very complex and clever string compression system which I'm not going to go into depth about here. You can find a very good explanation here. Basically, Jelly's string ...
emanresu A's user avatar
  • 39.2k
9 votes
4 answers
340 views

The Roly-Poly, Square-Wheeled Quine

Code-Golf caddy Eddie Brackets was getting tired of quine challenges, which appeared to be much too easy for the grand poobahs. He has this idea to spice up things and is sending quines to the car ...
DjinTonic's user avatar
  • 636
32 votes
7 answers
4k views

I'm a lizard, cut here!

Write an \$n\$-bytes program \$AB\$ such that: it outputs an integer \$x,\ 0\lt x\lt n\$; both its \$x\$-byte prefix \$A\$ and \$(n-x)\$-byte suffix \$B\$, when run as programs, output \$AB\$. \$A, ...
Domenico's user avatar
  • 2,333
15 votes
9 answers
2k views

Full name quine

Most Unicode characters have full names, for example is "RIGHT DOUBLE QUOTATION MARK". You can find a useful reference here, just type in the character ...
emanresu A's user avatar
  • 39.2k
6 votes
0 answers
257 views

Build a program that outputs itself encoded as a QR [closed]

The goal is simple. Write a program that outputs itself encoded as a QR code. A QR code is a way to encode data in a black and white image, similar to a 2D image. An example implementation can be ...
Ari's user avatar
  • 201
18 votes
20 answers
2k views

Hello, Permutations!

For this challenge, you will be required to write 3 programs: The first program should be a quine, i.e, it should print it's own source code. The second program should read the input and print all of ...
Manish Kundu's user avatar
  • 5,290
12 votes
3 answers
506 views

Multiplying Quines

The program should start out with 2 separate files, here named "a" and "b". "a" and "b" should be what I am calling inverse quines: "a", when run, ...
blueberry's user avatar
  • 221
19 votes
8 answers
2k views

(Error) quines, hello world, polyglots, oh my!

Introduction A quine is a program that outputs its own source code. For example, a well-known Python quine is _='_=%r;print(end=_%%_)';print(end=_%_). Running it ...
Makonede's user avatar
  • 6,500
1 vote
1 answer
204 views

Simple "hyena" program [duplicate]

Write a program that takes a string as an input. For the input: If the input doesn't match the source code, the program shall output the input intact. (Hence a cat) Otherwise, the program shall fall ...
Dannyu NDos's user avatar
  • 5,961

15 30 50 per page
1
2 3 4 5
14