#include #include #include #include #include #include #include int main(){ int *h = malloc(sizeof(int) * 26); for(int h_i = 0; h_i < 26; h_i++){ scanf("%d",&h[h_i]); } char* word = (char *)malloc(512000 * sizeof(char)); scanf("%s",word); int i; int max_height=h[word[0]-'a']; for(i=1;i