Skip to main content

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.

4 votes
2 answers
305 views

Inspired by a very recent post here, can you write a program/function that prints (defined by outputting or returning "Hello, World!" (with caps and exclamation) in any manner), before and ...
Natelolzzz's user avatar
9 votes
5 answers
835 views

For each character in your program, the program with that character removed must produce a number smaller than the program with the next character removed. Your base program isn't required to do ...
noodle person's user avatar
6 votes
2 answers
383 views

The aim of this post is to gather all the tips that can often be applied to radiation-hardening challenges. Please only post answers which can apply to a large number of languages, and one tip per ...
Command Master's user avatar
16 votes
6 answers
4k views

Your task is to write a program \$p\$ which outputs a string \$s\$ with the same length as \$p\$, where \$s \neq p\$. If I remove the \$n\$th byte from your program to get program \$q\$, then either \$...
Wheat Wizard's user avatar
  • 103k
25 votes
25 answers
3k views

The goal of radiation hardening is to make a program still work after you remove a byte. However, what if a skilled competitor is purposefully trying to mess with you? In this game, each bot will take ...
mousetail's user avatar
  • 14.4k
20 votes
11 answers
2k views

A pristine program is a program that does not have any errors itself but will error if you modify it by removing any contiguous substring other than the entire program. A crystalline program is sort ...
Wheat Wizard's user avatar
  • 103k
6 votes
1 answer
726 views

Design a function or program that, when run normally, outputs the triangular numbers. However, when any single character is deleted, the program/function should not function in the original ...
Romanp's user avatar
  • 1,377
26 votes
11 answers
5k views

Write a program that outputs the exact string: jan ale o, toki! ("Hello, world" but in toki pona to prevent builtins.) with an optional trailing newline. ...
Wheat Wizard's user avatar
  • 103k
24 votes
4 answers
2k views

Your challenge is to write a program that is a quine, meaning it prints out its own source code. For at least one individual character, when it is removed from the program's source, a single different ...
emanresu A's user avatar
  • 46.2k
34 votes
22 answers
5k views

The task here is pretty simple. You should write a program that takes a string as input and outputs it (that is a cat program). Additionally when the \$n\$th byte of your program is removed (without ...
Wheat Wizard's user avatar
  • 103k
17 votes
1 answer
691 views

You are to write a program that, when given an integer between 1 and 5 (or 0 and 4 if you wish to use 0-indexing), outputs one of Code, ...
caird coinheringaahing's user avatar
3 votes
1 answer
277 views

Write a program which, when every nth character is skipped, it prints n. For example, if every 2nd character is skipped, it prints 2. Example n=0 foobar Output:...
John L's user avatar
  • 31
20 votes
2 answers
834 views

The task is to write a radiation-hardened irradiator. What do I mean by that, exactly? An irradiator is a program that, when given a string as input, will output all possible versions of the string ...
TheOnlyMrCat's user avatar
  • 1,349
10 votes
1 answer
337 views

Note: This is the radiation-hardening version of my previous challenge Pristine Bit Checking. This should be much more difficult than that one. Write a program/function that takes two integers in the ...
Jo King's user avatar
  • 48.1k
-5 votes
3 answers
191 views

This challenge is quite simple to conceptualise, but likely a lot harder to execute. In this challenge, the program will have to detect the number N of its characters that have been randomly changed (...
Geza Kerecsenyi's user avatar

15 30 50 per page