Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- int cnt[105];
- signed main()
- {
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- int t , l , r;
- string s;
- cin >> t;
- int ans = 0;
- while(t--){
- cin >> s;
- for(int i = 0; i < 26; i++)
- cnt[i] = 0;
- for(int i = 0; i < s.size(); i++)
- cnt[s[i] - 'a']++;
- int x = 0;
- for(int i = 0; i < 26; i++){
- if(cnt[i] % 2 == 0)
- x++;
- }
- if(x == 26)
- ans++;
- }
- cout << ans << '\n';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement