atcoder abc409 A题解

A

点击查看代码
#include <bits/stdc++.h>
using namespace std;
string s,t;
int main(){

	int n,i;
	cin>>n>>s>>t;
	for(i=0;i<n;i++)
	{
		if(s[i]=='o'&&t[i]=='o')
		{
			cout<<"Yes\n";
			return 0;
		}
	}
	cout<<"No\n";
	return 0;
}<details>
posted @ 2025-06-08 19:09  烈空坐  阅读(14)  评论(0)    收藏  举报