Vladik and flights (743A)

  1. 743A - Vladik and flights
  2. #include<iostream>
  3. using namespace std;
  4. int main()
  5.  
  6. {
  7. int n,a,b;
  8. string s;
  9. cin>>n>>a>>b;
  10. cin>>s;
  11. if(s[a-1]==s[b-1]) cout<<0;
  12. else cout<<1;
  13.  
  14.  
  15.  
  16. }

Comments

Popular posts from this blog

Codeforce Problem 1703A. YES or YES?

Aptitude test assistant programmer 2018

1041A. Heist solution