Questions tagged [radiation-hardening]
This tag is for challenges which require answers to still work when a random edit to the source code is made.
2
votes
0answers
126 views
Radiation is Painful
A radiation-hardened quine can take a hit and stay standing, but nobody ever said that the quine can't be a wuss about it.
For this challenge, you should write a quine that:
If no characters are ...
7
votes
1answer
194 views
A Radiation Hardened Palindromic Quine
There are radiation hardened quines, palindromic quines, but has anyone tried both?!
I think not!
Rules
So the challenge here is to make a quine that if any symbol is deleted it prints its original ...
13
votes
5answers
489 views
Self Scoring Program
We have a challenge to output your own score, but it seems like all the answers there just hardcode the output and that's boring1. So lets have a new challenge. Your program must output its own ...
31
votes
7answers
4k views
What did we forget?
Your task is to write a non-empty computer program comprised of some sequence of bytes. If we choose a particular byte in the program and remove all instances of it from the program, the modified ...
26
votes
13answers
2k views
Make a Geiger Counter
A Geiger counter is a device that is used to detect radiation.
We will be making a Geiger counter program.
As we all know, when radiation hits a computer program it removes exactly 1 byte at random. ...
13
votes
1answer
574 views
Make a Radiation Hardened Quine
Last night I was looking for the Radiation Hardened Quine challenge, but I couldn't find it. Turns out no one has asked it yet! So here it is:
Your task is to make a quine, that is a non-empty ...
26
votes
6answers
984 views
Radiation Detector!
A radiation-hardened program is a program where, if any character of the code is removed, the program will still function the same. For this question, we'll be writing a program that detects when it ...
14
votes
1answer
557 views
Mutation-hardened quine
Your task is to make a program that prints out its own source.
"Hey, we already have this challenge, and tons of variations of it! Why are you making another one?" you may ask, but this one is going ...
126
votes
71answers
15k views
Hello, World! (Every other character)
Write a program that prints "Hello, World!".
But also, if you take only the first, third, fifth, etc. characters of your program, the resulting program should still print "Hello, World!".
If your ...
10
votes
1answer
286 views
Radiation hardened cyclic quine polyglot
Challenge
Write two programs that:
run in two different programming languages.
These may not be two versions of one language.
when one program is run, it outputs the second program, and vice versa....
26
votes
5answers
1k views
Same code different characters
Note: This challenge only allows answers in compiled languages
Task
Your task is pretty simple, make two different programs that when compiled result in the same output.
Scoring
Here is where the ...
13
votes
14answers
1k views
Rearrangeable Code Bowling
Code-Bowling Challenge
Write a program or function that produces the same output, no matter how you re-arrange the source code. (Output can't be an error)
Pangram Scoring
Your score is the amount ...
19
votes
3answers
633 views
Meta radiation hardener
Background
On this site, we occasionally have questions requiring programs to be "radiation hardened"; this means that the program has to be able to survive the deletion of one or more bytes, no ...
13
votes
1answer
639 views
Detect if your program has been mutated
Write a program that outputs
NOT CORRUPTED
If any single byte is substituted by any other byte the program should output
...
74
votes
11answers
5k views
Error 404: Character Not Found
Scenario
One of your friends is struggling on a homework assignment. He needs a simple program which prints the first 404 natural numbers:
...
35
votes
2answers
1k views
Radiation softened quine
It's simple: Make a proper quine where if you remove any character, it's still a quine.
The difference between this and a radiation hardened quine is that if your program is ...
38
votes
3answers
3k views
Radiation Hardened Quine
As you should (hopefully) know, a radiation hardened quine is a quine that you can remove any one character from and still print its original, pre-modified source. The thing is, with most of these you ...
66
votes
7answers
6k views
Fault-Tolerant Hello World (a.k.a. the Interview)
At the end of your interview, the Evil Interviewer tells you, "We make all of our applicants take a short coding test, to see if they really know what they are talking about. Don't worry; it's easy. ...
12
votes
7answers
704 views
Transposed, primes, oh my!
The task is simple: your program reads an integer as an input, and prints whether it is a prime or not. You can print "yes/no", "true/false" or anything what unambiguously identifies the result.
The ...
114
votes
40answers
16k views
Write a program that always outputs “2012” - even if it's modified!
This idea is not mine, though I don't know where it originated. I once met it in a programming contest very long ago (1998, if I remember correctly). The task is to write a program in your favorite ...