Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <string.h>
- #include <cstring>
- using namespace std;
- string s;
- int a, b, n;
- count;
- int main() {
- cin >> n >> a >> b;
- cin >> s;
- if(s[a] == s[b]){
- cout << 0 << endl;
- }
- else{
- cout << 1 << endl;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment