Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created with IntelliJ IDEA.
- * User: Fcdkbear
- * Date: 11.02.13
- * Time: 16:48
- * To change this template use File | Settings | File Templates.
- */
- import java.util.Scanner;
- public class test {
- public static void main(String [] args)
- {
- Scanner sc=new Scanner(System.in);
- String s = sc.next();
- int n=s.length();
- int odd=0;
- for (int i=0; i<26; ++i)
- {
- int v1=(int)('a')+i;
- int cnt=0;
- for (int j=0; j<n; ++j)
- {
- int v2=(int)(s.charAt(j));
- if (v1==v2)
- cnt++;
- //System.out.println(cnt);
- }
- if ((cnt%2)==1)
- odd++;
- }
- if ((odd==0) || ((odd%2)==1))
- System.out.println("First");
- else
- System.out.println("Second");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement