Saleh127

CF 276B.

Jul 28th, 2020
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define test int t; cin>>t; while (t--)
  4. #define ll long long int
  5. #define fellow_junior ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  6. int main()
  7. {
  8. fellow_junior
  9. string a;
  10. ll c=0,d,e,i,j,k,l;
  11. cin>>a;
  12. ll x[200]={0};
  13. for(i=0;i<a.size();i++)
  14. {
  15. x[a[i]-'a']++;
  16. }
  17. for(i=0;i<26;i++)
  18. {
  19. if(x[i]%2==1)
  20. {
  21. c++;
  22. }
  23. }
  24. if(c==0 || c%2==1) cout<<"First"<<endl;
  25. else cout<<"Second"<<endl;
  26. return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment