版本比较
CF1272C 【Yet Another Broken Keyboard】
正文
增加 1 行删除 1 行
55 行未改动5657585960606162636455 行未改动 res+=len*(len+1)/2;//添加到答案 len=0;//清空掉 } }res+=len*(len+1)/2; cout<<res; cout<<res; return 0;}```后记:虽然$1\leq n\leq 2*10^5$,我的一个同学居然暴力$O(n\log^2 n)$过掉了,~~所以数据很水~~