#define mini(a, b, c) min(c, min(a, b)) #define mini2(a, b, c, d) min(d, min(c, min(a, b))) int pos1 = a.find(s[i]); int pos2 = a.find(s[i-1]); ...
keys. The keys are arranged sequentially in one row in a certain order. Each key corresponds to a unique lowercase Latin letter. You have to type the word s on this keyboard. It also consists only of ...