/* [NWERC'08] MOBILE by: Jan Kuipers */ using namespace std; #include #include int main () { int runs; cin>>runs; while (runs--) { string s; cin>>s; int open=0, maxcnt=0, totalcnt=0; map cnt; for (int i=0; i?= ++cnt[x<