Skip to main content
@ovs improvement!
Source Link
SunnyMoon
  • 2.7k
  • 15
  • 24

05AB1E, 66 4dist(2 + 66 4) = 4848 24 scored

-24 points thanks to @ovs!

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

How?

.ι # Interleave the two inputs, then output implicitly 

Try it online!

Cardinal mode:

+D>*;++LO+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer). this time!

How?

+ # Add them inputand numbersn  D>*  # Multiply the sum with sumLO + 1  ; # Summation of all #numbers Halvein therange result[1...m+n] + + # Add with m (Which, for some reason,which is still surviving in the stack) to the result and output implicitly 

Try it online again!Try it online again!

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

How?

.ι # Interleave the two inputs, then output implicitly 

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

How?

+ # Add the input numbers  D>*  # Multiply the sum with sum + 1  ; # Halve the result + # Add with m (Which, for some reason, is still in the stack) and output implicitly 

Try it online again!

05AB1E, 6 4dist(2 + 6 4) = 48 24 scored

-24 points thanks to @ovs!

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

How?

.ι # Interleave the two inputs, then output implicitly 

Try it online!

Cardinal mode:

+LO+ 

Takes in input in the right order this time!

How?

+ # Add m and n LO # Summation of all numbers in range [1...m+n] + # Add m (which is still surviving in the stack) to the result and output implicitly 

Try it online again!

"Explain your answer"
Source Link
SunnyMoon
  • 2.7k
  • 15
  • 24

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

How?

.ι # Interleave the two inputs, then output implicitly 

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

How?

+ # Add the input numbers D>* # Multiply the sum with sum + 1 ; # Halve the result + # Add with m (Which, for some reason, is still in the stack) and output implicitly 

Try it online again!

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

Try it online again!

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

How?

.ι # Interleave the two inputs, then output implicitly 

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

How?

+ # Add the input numbers D>* # Multiply the sum with sum + 1 ; # Halve the result + # Add with m (Which, for some reason, is still in the stack) and output implicitly 

Try it online again!

TIO link
Source Link
SunnyMoon
  • 2.7k
  • 15
  • 24

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

Try it online again!

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

05AB1E, 6dist(2 + 6) = 48 scored

I am sure that the programs can be heavily improved.

Ordinal mode:

Outputs the zipped string as a list of characters.

Also takes in input swapped, so "Hello,", "World!" -> "WHoerllldo!," and "World!", "Hello," -> "HWeolrllod,!".

Try it online!

Cardinal mode:

+D>*;+ 

Takes in input in the right order, and outputs with a floating decimal point (because 05AB1E presumes that halving a number can result in a non-integer).

Try it online again!

Source Link
SunnyMoon
  • 2.7k
  • 15
  • 24
Loading