#Python 3, (削除) 134 (削除ここまで)(削除) 120 (削除ここまで) 117
Python 3, (削除) 134 (削除ここまで)(削除) 120 (削除ここまで) 117
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(*a)),1))
With NumPy can be reduced to 100 bytes:
import numpy
a=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(*a)]))
#Python 3, (削除) 134 (削除ここまで)(削除) 120 (削除ここまで) 117
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(*a)),1))
With NumPy can be reduced to 100 bytes:
import numpy
a=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(*a)]))
Python 3, (削除) 134 (削除ここまで)(削除) 120 (削除ここまで) 117
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(*a)),1))
With NumPy can be reduced to 100 bytes:
import numpy
a=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(*a)]))
#Python 3, (削除) 134 (削除ここまで) 120(削除) 120 (削除ここまで) 117
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a,b=evala=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(a,b*a)),1))
With NumPy can be reduced to 104100 bytes:
import numpy
a,b=evala=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(a,b*a)]))
#Python 3, (削除) 134 (削除ここまで) 120
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a,b=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(a,b)),1))
With NumPy can be reduced to 104 bytes:
import numpy
a,b=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(a,b)]))
#Python 3, (削除) 134 (削除ここまで) (削除) 120 (削除ここまで) 117
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(*a)),1))
With NumPy can be reduced to 100 bytes:
import numpy
a=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(*a)]))
#Python 3, (削除) 134 (削除ここまで) 120
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a,b=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(a,b)),1))
With NumPy can be reduced to 104 bytes:
import numpy
a,b=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(a,b)]))
#Python 3, (削除) 134 (削除ここまで) 120
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a,b=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(a,b)),1))
With NumPy can be reduced to 104 bytes:
import numpy
a,b=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(a,b)]))
#Python 3, (削除) 134 (削除ここまで) 120
Input: two comma-separated arrays separated by comma.
Example:
(2,3,7,11),(4,2,3,2)
21439600
from functools import*
a,b=eval(input())
print(reduce(int.__mul__,(sum(x**j for j in range(y+1))for x,y in zip(a,b)),1))
With NumPy can be reduced to 104 bytes:
import numpy
a,b=eval(input())
print(numpy.product([sum(x**j for j in range(y+1))for x,y in zip(a,b)]))