askarulytarlan

Untitled

Dec 16th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <string.h>
  4. #include <cstring>
  5.  
  6. using namespace std;
  7.  
  8. string s;
  9. int a, b, n;
  10. count;
  11.  
  12. int main() {
  13. cin >> n >> a >> b;
  14. cin >> s;
  15. if(s[a] == s[b]){
  16. cout << 0 << endl;
  17. }
  18. else{
  19. cout << 1 << endl;
  20. }
  21. return 0;
  22. }
Add Comment
Please, Sign In to add comment