#include #include #include using namespace std; int const maxn=1e5+10; struct segment { bool cond; int sz,pos; segment(){cond=sz=pos=0;} segment(bool _cond,int _sz,int _pos) { cond=_cond; sz=_sz; pos=_pos; } bool operator<(const segment &k)const { return posst; //segment a[maxn]; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); ifstream fin; fin.open("freddy.in"); ofstream fout; fout.open("freddy.out"); //scanf("%d",&n); //scanf("%s",&s); fin>>n; fin>>s; char last=s[0]; int last_sz=1; for(int i=1;icondcond)continue; if(it->cond==it->cond) { it->sz+=it1->sz; st.erase(it1); } else///it->condcond { } }*/ return 0; }