Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define int long long
- #define F first
- #define S second
- signed main()
- {
- int t , n;
- string s;
- int ans = 0;
- cin >> t;
- while(t--){
- cin >> s;
- map<char , int> cnt;
- for(int i = 0; i < s.size(); i++){
- cnt[s[i]]++;
- }
- int x = 0;
- for(char i = 'a'; i <= 'z'; i++){
- if(cnt[i] % 2 == 0)
- x++;
- }
- if(x == 26)
- ans++;
- }
- cout << ans << '\n';
- // birinci + ikinci
- // 1 sayi + 0
- // 0 sayi + 1
- }
- /*
- 4 2 1 3
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement