Python 3, 153 bytes
lambda a,c:a**c
or
complex.__pow__pow
Input and output as complex numbers.
Python 3, 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 15 bytes
lambda a,c:a**c
or
complex.__pow__
Input and output as complex numbers.
Python 3, 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 3 bytes
pow
Input and output as complex numbers.
Python 3, 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 315 bytes
powlambda a,c:a**c
or
complex.__pow__
Input and output as complex numbers.
Python 3 , 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 15 bytes
lambda a,c:a**c
or
complex.__pow__
Input and output as complex numbers.
Python 3 , 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 15 bytes
lambda a,c:a**c
or
complex.__pow__
Input and output as complex numbers.
Python 3 , 473 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imagpow
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
Python 3, 15 bytes
lambda a,c:a**c
or
complex.__pow__
Input and output as complex numbers.
Python 3 , 47 bytes
def f(a,b,c):n=(a+b*1j)**c;return n.real,n.imag
Input and output as integers
Python 2, (削除) 62 (削除ここまで) 60 bytes
-2 bytes thanks to @Leonhard
a,b,c=input();d=1;e=0
exec'd,e=a*d-b*e,a*e+b*d;'*c
print d,e
does not use complex number type
- 61.2k
- 3
- 49
- 164