You are viewing a single comment's thread. Return to all comments →
Python
def beadOrnaments(b): sumColor=0 intercolor=1 for color in b: intercolor*=color**(color-1) sumColor+=color intercolor*=sumColor**(len(b)-2) return int(intercolor%(10**9+7))
Seems like cookies are disabled on this browser, please enable them to open this website
Bead Ornaments
You are viewing a single comment's thread. Return to all comments →
Python