网站首页
编程语言
数据库
系统相关
其他分享
编程问答
edu168
2024-07-31
CF1997(edu168)题解 A-F
A.StrongPassword注意到最大效果是在两个相同字符之间插入一个不同的,贡献为3。否则在一开始插入一个和首位不同的,贡献为2。#include<bits/stdc++.h>usingnamespacestd;typedeflonglongll;voidsolve(){strings;cin>>s;boolok=0;for(inti