zoj 3462 Nobita's New Filesystem (模拟题_Bitset应用)(二)

2014-11-24 11:37:47 · 作者: · 浏览: 1
//相当于mmap[tp]
if (it == mmap.end()) {

mask.reset();
break;
}
else mask &= it->second; //如果it里都有某位,则最后该子串必定包含在那个主串中
p = q;
}


ans = 0;
for (j = 0; j < n; ++j)
if (mask[j]) ans += size[j];
printf("%lld\n",ans);
}
}
}


作者:woshi250hua