tuki2501

So24_Bai3.cpp

Nov 1st, 2021 (edited)
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5.   cin.tie(0)->sync_with_stdio(0);
  6.   string s; cin >> s;
  7.   map<char,int> mem;
  8.   for (auto &i : s) {
  9.     mem[i]++;
  10.   }
  11.   for (auto &i : mem) {
  12.     if (i.second % 2) {
  13.       cout << "No" << '\n';
  14.       return 0;
  15.     }
  16.   }
  17.   cout << "Yes" << '\n';
  18. }
  19.  
Add Comment
Please, Sign In to add comment