蛮有意思的计数小技巧

if(!vis[temp])
num++;
vis[temp]++;


vis[temp]--;
if(vis[temp]==0)
num--;

——统计当前子串有几种不同的字符

原文地址:https://www.cnblogs.com/lighten-up-belief/p/11426255.html