Advertisement
LEGEND2004

B

Feb 17th, 2024
625
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.62 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define int long long
  5. #define F first
  6. #define S second
  7.  
  8. signed main()
  9. {
  10.  
  11.     int t , n;
  12.     string s;
  13.     int ans = 0;
  14.     cin >> t;
  15.     while(t--){
  16.         cin >> s;
  17.         map<char , int> cnt;
  18.         for(int i = 0; i < s.size(); i++){
  19.             cnt[s[i]]++;
  20.         }
  21.         int x = 0;
  22.         for(char i = 'a'; i <= 'z'; i++){
  23.             if(cnt[i] % 2 == 0)
  24.                 x++;
  25.         }
  26.         if(x == 26)
  27.             ans++;
  28.     }
  29.     cout << ans << '\n';
  30.  
  31.     // birinci + ikinci
  32.     // 1 sayi + 0
  33.     // 0 sayi + 1
  34. }
  35.  
  36.  
  37. /*
  38. 4 2 1 3
  39.  
  40. */
  41.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement