#include #include #include #include #include using namespace std; #define LEN 18 #define INF 1<<30 /* C[mask][last] -> Cost of typing a subset of the characters from the message, and the position of the last character we typed Ex: s="ALMA" C[1011b][1] -> Cost of typing "ALA", if the last character we typed was 'L' */ int C[1<