#include<bits/stdc++.h>
using namespace std;
char str[100005];
int main()
{
int n,a,b;
cin>>n>>a>>b;
for(int i=1;i<=n;i++)
{
cin>>str[i];
}
if(str[a]!=str[b])
{
cout<<1<<endl;
}
else
{
cout<<0<<endl;
}
return 0;
}
743A. Vladik and flights codeforces
最新推荐文章于 2018-05-05 21:51:41 发布