-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathButton.java
More file actions
27 lines (27 loc) · 777 Bytes
/
Button.java
File metadata and controls
27 lines (27 loc) · 777 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import java.util.Scanner;
public class Button {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
if (!sc.hasNextInt()) return;
int t = sc.nextInt();
while (t-- > 0) {
long a = sc.nextLong();
long b = sc.nextLong();
long c = sc.nextLong();
if (c % 2 == 0) {
if (a > b) {
System.out.println("First");
} else {
System.out.println("Second");
}
}
else {
if (a >= b) {
System.out.println("First");
} else {
System.out.println("Second");
}
}
}
}
}