SHARE
TWEET

Untitled

a guest Oct 21st, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2.  
  3. using namespace std;
  4. typedef long long ll;
  5. ll n, ans;
  6. string s;
  7.  
  8. int main()
  9. {
  10.     cin >> n >> s;
  11.     for (int i = 0; i < n; i++)
  12.         ans ^= ll(s[i]);
  13.     if (!ans){
  14.         cout << "Ok";
  15.         return 0;
  16.     }
  17.     cout << (char)(ans);
  18.     return 0;
  19. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top