版本比较
题解:CF1616E Lexicographically Small Enough
正文
增加 4 行删除 4 行
14 行未改动15161718191920212222232424252627286 行未改动3536373839394041424325 行未改动14 行未改动//write by szh#include<bits/stdc++.h>using namespace std;const int N=1e5+10;int _; int _;int n;char a[N],b[N];
vector<int> word[26];
int t[N];int lb(int x){ return x&-x;}6 行未改动 for(;x<=n;x+=lb(x)) res+=t[x]; return res;}
int main(){ scanf("%d",&_); while(_--){ scanf("%d%s%s",&n,a+1,b+1);25 行未改动