#include #include #include char s[1010]; char ans[1020]; int st[1010][20]; int Min(int x,int y) { return s[x] <= s[y] ? x : y; } void RMQ_Init(int len) { for(int i = 0; i < len; i++) st[i][0] = i; for(int j = 1; (1<