You are viewing a single comment's thread. Return to all comments →
m = 1000000007 result = 1 for i in range(len(a)): result = result * (1+pow(2,a[i],m)) result = result-1 return int(result%m)
Seems like cookies are disabled on this browser, please enable them to open this website
Shashank and List
You are viewing a single comment's thread. Return to all comments →