Based on this challenge.
In the rhythm game osu!, the difficulty modifier "Double-time" actually only increases the speed by 50%.
Your task, is to write a program that outputs a positive even integer (higher than 0), and when each byte/character (your choice which) in your source code is duplicated, it should output the number multiplied by 1.5.
For example if your source code is ABC
and that outputs 6, then AABBCC
should output 9.
Following the original challenge's rules:
Rules
- You must build a full program.
- The initial source must be at least 1 byte long.
- Both the integers must be in base 10 (outputting them in any other base or with scientific notation is forbidden).
- Your program must not take input (or have an unused, empty input) and must not throw any error (compiler warnings are not considered errors).
- Outputting the integers with trailing / leading spaces is allowed.
- You may not assume a newline between copies of your source.
- This is code-golf, so the fewest bytes in each language wins!
- Default Loopholes apply.
I imagine this will be far less trivial than the original challenge, but hopefully we'll see some creative and unique answers!
write a program that outputs a positive even integer
Yes it will. Every even number can be multiplied by 1.5 to result in a whole integer \$\endgroup\$full program
. It is hard to imagine a duplicated program still have a valid entry point / function. \$\endgroup\$