-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathA_Buttons.cpp
More file actions
44 lines (39 loc) · 993 Bytes
/
A_Buttons.cpp
File metadata and controls
44 lines (39 loc) · 993 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Dabananda Mitra, CSE (2019-20), ISTT.
// Email: imdmitra@outlook.com
// LinkedIn: https://www.linkedin.com/in/dabanandamitra/
// GitHub: https://github.com/dabananda
// Portfolio: https://dmitra.netlify.app/
// Problem link:
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vi vector<int>
#define vll vector<long long>
#define pi pair<int, int>
#define em emplace_back
#define ef emplace_front
#define pb push_back
#define pf push_front
#define loop(i, a, b) for (int i = a; i < b; i++)
#define rloop(i, a, b) for (int i = b; i >= a; i--)
#define Dabananda_Mitra ios::sync_with_stdio(0), cin.tie(0), cout.tie(0)
void solution() {
int a, b, c;
cin >> a >> b >> c;
if (c % 2 == 0) {
if (a > b) cout << "First\n";
else cout << "Second\n";
} else {
if (b > a) cout << "Second\n";
else cout << "First\n";
}
}
int main() {
Dabananda_Mitra;
int testCase;
cin >> testCase;
while (testCase--) {
solution();
}
return 0;
}