include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
include[HTML_REMOVED]
using namespace std;
const int N=100;
string a,b;
void turn(int i)
{
if(a[i]==’’) a[i]=’o’;
else a[i]=’’;
}
int main()
{
cin>>a>>b;
int res=0;
for(int i=0;i+1<a.size();i)
if(a[i]!=b[i])
{
res;
turn(i),turn(i+1);
}
cout<<res<<endl;
return 0;
}
算法1
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla
算法2
(暴力枚举) $O(n^2)$
blablabla
时间复杂度
参考文献
C++ 代码
blablabla