Skip to main content
added 69 characters in body
Source Link
Makonede
  • 6.8k
  • 21
  • 49

05AB1E, 9 44 2 bytes

-2 thanks to ovs.

и.«mGm 

Try it online!Try it online! Beats all other answers

и.«mGm # full program G # reduce... и for N in [1, #2, list3, of...,   # implicit input... #, implicit input... и G # s...  minus 1].«..  m # left bypush...   # (implicit) first element in reduceinput...   m # to the power of...   # implicit input...  # (implicit) secondor elementtop inof reduce,stack endif reduce not first iteration  # implicit output 

05AB1E, 9 4 bytes

и.«m 

Try it online!

и.«m # full program  # reduce... и  # list of...   # implicit input... # implicit input... и  # s...   .« # left by...   # (implicit) first element in reduce...   m # to the power of... # (implicit) second element in reduce, end reduce  # implicit output 

05AB1E, 9 4 2 bytes

-2 thanks to ovs.

Gm 

Try it online! Beats all other answers

Gm # full program G # for N in [1, 2, 3, ..., # ..., implicit input... G # ...minus 1]...  m # push... # implicit input... m # to the power of...   # implicit input...  # (implicit) or top of stack if not first iteration  # implicit output 
deleted 262 characters in body
Source Link
Makonede
  • 6.8k
  • 21
  • 49

05AB1E, 99 4 bytes

sUXGD}XGmи.«m 

Try it online!Try it online!

 и.«m # (implicit) push STDIN tofull stackprogram s   # swap top two stack valuesreduce...  U и # store toplist of stack in X...  X  # push X toimplicit stackinput...   G  # for N in [1, 2,implicit input..., и top of stack - 1]# s...   D  # duplicate top ofleft stackby... }  # exit loop X  #(implicit) pushfirst Xelement toin stackreduce...   G m # for N in [1, 2,to ...,the toppower of stack - 1]...   m # push (second to top of stackimplicit) ^ (top of stack) second element in reduce, end reduce  # (implicit) exit loop, output top of stack to STDOUT 

05AB1E, 9 bytes

sUXGD}XGm 

Try it online!

  # (implicit) push STDIN to stack s  # swap top two stack values  U  # store top of stack in X  X  # push X to stack   G  # for N in [1, 2, ..., top of stack - 1]...   D  # duplicate top of stack }  # exit loop X  # push X to stack   G  # for N in [1, 2, ..., top of stack - 1]...   m # push (second to top of stack) ^ (top of stack)  # (implicit) exit loop, output top of stack to STDOUT 

05AB1E, 9 4 bytes

и.«m 

Try it online!

и.«m # full program  # reduce... и # list of... # implicit input... # implicit input... и # s...  # left by... # (implicit) first element in reduce... m # to the power of... # (implicit) second element in reduce, end reduce  # implicit output 
added 21 characters in body; added 10 characters in body
Source Link
Makonede
  • 6.8k
  • 21
  • 49

05AB1E, 9 bytes

sUXGD}XGm 

Try it online!

 # (implicit) push STDIN to stack s # swap top two stack values U # store top of stack in X X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... D # duplicate top of stack } # exit loop X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... m # push (second to top of stack) ^ (top of stack) # (implicit) exit loop, output top of stack to STDOUT 

05AB1E, 9 bytes

sUXGD}XGm 

Try it online!

 # (implicit) push STDIN to stack s # swap top two stack values U # store top of stack in X X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... D # duplicate top of stack } # exit loop X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... m # push (second to top of stack) ^ (top of stack) # (implicit) exit loop 

05AB1E, 9 bytes

sUXGD}XGm 

Try it online!

 # (implicit) push STDIN to stack s # swap top two stack values U # store top of stack in X X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... D # duplicate top of stack } # exit loop X # push X to stack G # for N in [1, 2, ..., top of stack - 1]... m # push (second to top of stack) ^ (top of stack) # (implicit) exit loop, output top of stack to STDOUT 
added 4 characters in body
Source Link
Loading
Source Link
Makonede
  • 6.8k
  • 21
  • 49
Loading