Skip to main content
Commonmark migration
Source Link

##Seriously, 12 bytes

Seriously, 12 bytes

,R;Rεj≈@εj≈+

Try it online!

Explanation:

,R;Rεj≈@εj≈+
,R;           push two copies of range(1, input()+1)
   R          reverse one copy
    εj≈@εj≈   concatenate both and cast both to ints
           +  add
         

##Seriously, 12 bytes

,R;Rεj≈@εj≈+

Try it online!

Explanation:

,R;Rεj≈@εj≈+
,R;           push two copies of range(1, input()+1)
   R          reverse one copy
    εj≈@εj≈   concatenate both and cast both to ints
           +  add
         

Seriously, 12 bytes

,R;Rεj≈@εj≈+

Try it online!

Explanation:

,R;Rεj≈@εj≈+
,R;           push two copies of range(1, input()+1)
   R          reverse one copy
    εj≈@εj≈   concatenate both and cast both to ints
           +  add
         
added 165 characters in body
Source Link
user45941
user45941

##Seriously, 1912 bytes

,R;R`$`MΣ@`$`MΣ≈@≈+R;Rεj≈@εj≈+

Try it online!Try it online!

Explanation will come after more golfing:

,R;Rεj≈@εj≈+
,R;           push two copies of range(1, input()+1)
   R          reverse one copy
    εj≈@εj≈   concatenate both and cast both to ints
           +  add
         

##Seriously, 19 bytes

,R;R`$`MΣ@`$`MΣ≈@≈+

Try it online!

Explanation will come after more golfing

##Seriously, 12 bytes

,R;Rεj≈@εj≈+

Try it online!

Explanation:

,R;Rεj≈@εj≈+
,R;           push two copies of range(1, input()+1)
   R          reverse one copy
    εj≈@εj≈   concatenate both and cast both to ints
           +  add
         
Post Undeleted by user45941
Post Deleted by user45941
Source Link
user45941
user45941

##Seriously, 19 bytes

,R;R`$`MΣ@`$`MΣ≈@≈+

Try it online!

Explanation will come after more golfing