正文
增加 4 行删除 4 行
5 行未改动6789101112131452 行未改动676869707172737475161 行未改动全部展开23723823924024124224324424549 行未改动29529629729829930030130230321 行未改动5 行未改动- [**T1 / CF118C Fancy Number**](https://www.luogu.com.cn/problem/CF118C)- [**T2 / CF7D Palindrome Degree**](https://www.luogu.com.cn/problem/CF7D)- [**T3 / CF29E Quarrel**](https://www.luogu.com.cn/problem/CF29E)---52 行未改动scanf("%d%d",&n,&k);cin>>s;ans[0]=int(1e9);for(register int i=0;i<n;++i)num[i+1]=s[i]-'0',val[s[i]-'0']++;for(register int i=0;i<=9;++i) // 特判if(val[i]>=k){printf("0\n");161 行未改动全部展开int x=q.front().x;int y=q.front().y;int opt=q.front().opt;q.pop(),vis[x][y][opt]=0;if(opt==0){for(auto x1:v[x]) // C++11/14 遍历 vector{49 行未改动printf("-1");return 0;}printf("%d\n",f[n][1][0]);int x=n,y=1,opt=0; // 用栈存储路径stx.push(x),sty.push(y);while(1){21 行未改动5 行未改动6789101112131452 行未改动676869707172737475161 行未改动全部展开23723823924024124224324424549 行未改动29529629729829930030130230321 行未改动5 行未改动- [**T1 / CF118C Fancy Number**](https://www.luogu.com.cn/problem/CF118C)- [**T2 / CF7D Palindrome Degree**](https://www.luogu.com.cn/problem/CF7D)- [**T3 / CF29E Quarrel**](https://www.luogu.com.cn/problem/CF29E)---52 行未改动scanf("%d%d",&n,&k);cin>>s;ans[0]=int(1e9);for(register int i=0;i<n;++i)num[i+1]=s[i]-'0',val[s[i]-'0']++;for(register int i=0;i<=9;++i) // 特判if(val[i]>=k){printf("0\n");161 行未改动全部展开int x=q.front().x;int y=q.front().y;int opt=q.front().opt;q.pop(),vis[x][y][opt]=0;if(opt==0){for(auto x1:v[x]) // C++11/14 遍历 vector{49 行未改动printf("-1");return 0;}printf("%d\n",f[n][1][0]);int x=n,y=1,opt=0; // 用栈存储路径stx.push(x),sty.push(y);while(1){21 行未改动