http://codeforces.com/contest/1111/problem/A
- S,T序列
- 长度不同,否。
- 长度相同,若每个对应字母,都是元音或者都是辅音,对。
#include<bits/stdc++.h>
using namespace std;
long long a[200060];
long long n,m;
char ch[]={'a','e','i','o','u'};
int main()
{
string s,t;
cin>>s>>t;
if(s.size()!=t.size())
{
cout<<"No"<<endl;
return 0;
}
bool flag=true;
for(int i=0;i<s.size();i++)
{
bool flag1=false,flag2=false;
for(int j=0;j<5;j++)
{
if(s[i]==ch[j])
{
flag1=true;
}
if(t[i]==ch[j])
{
flag2=true;
}
}
if(!((flag1&&flag2)||(!flag1&&!flag2)))
{
flag=false;
}
}
if(flag)
{
cout<<"Yes"<<endl;
}else
{
cout<<"No"<<endl;
}
return 0;
}