fork download
  1. /* package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. class Ideone
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. Scanner sc = new Scanner(System.in);
  13. int t = sc.nextInt();
  14. for(int i=0;i<t;i++){
  15. int a = sc.nextInt();
  16. int b = sc.nextInt();
  17. int c = sc.nextInt();
  18. int pointsA = 0;
  19. int pointsB = 0;
  20. if(c%2==0){
  21. pointsA=c/2;
  22. pointsB=c/2;
  23. }
  24. else{
  25. pointsA=(c/2)+1;
  26. pointsB=c/2;
  27. }
  28. pointsA=pointsA+a;
  29. pointsB=pointsB+b;
  30. if(pointsA>pointsB){
  31. System.out.println("First");
  32. }
  33. else{
  34. System.out.println("Second");
  35. }
  36. }
  37. }
  38. }
Success #stdin #stdout 0.14s 56456KB
stdin
5
1 1 1
9 3 3
1 2 3
6 6 9
2 2 8
stdout
First
First
Second
First
Second