You are viewing a single comment's thread. Return to all comments →
To simplify, it can be solved using short elegant code in Python :
size = [int(i) for i in input().split()] word = [size[ord(c)-ord('a')] for c in input()] print(max(word)*len(word))
Informative Tweets for Inquisitive Minds
Seems like cookies are disabled on this browser, please enable them to open this website
Designer PDF Viewer
You are viewing a single comment's thread. Return to all comments →
To simplify, it can be solved using short elegant code in Python :
Informative Tweets for Inquisitive Minds