http://acm.hdu.edu.cn/showproblem.php?pid=1020大水题一个不解释
#include<string> #include<cstdio> #include<map> #include<algorithm> #include<string.h> #include<cmath> #include<iostream> using namespace std; int main() { int t; scanf("%d",&t); string str; while(t--) { map<char>M; cin>>str; for(int i=0;i<str.size char p="str[i];" int kk="0;" while str.size i-- if printf return><br> <div class="clear"> </div></str.size></char></iostream></cmath></string.h></algorithm></map></cstdio></string>