-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path1681A.cpp
More file actions
60 lines (57 loc) · 1.31 KB
/
Copy path1681A.cpp
File metadata and controls
60 lines (57 loc) · 1.31 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// Author:Sadman kabir
// date:4/5/2024
//-------------------------------------------------------------
#include <bits/stdc++.h>
using namespace std;
#define pb(x) push_back(x)
#define No cout << "No" << endl
#define Yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define NO cout << "NO" << endl
#define mm cout << "-1" << endl
#define nl "\n"
#define rr return
#define ll long long int
//----------------------------------------------------------------
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while (t--)
{
int n;
cin >> n;
int mx1 = 0, mx2 = 0;
for (int i = 0; i < n; i++)
{
int x;
cin >> x;
mx1 = max(mx1, x);
}
int m;
cin >> m;
for (int i = 0; i < m; i++)
{
int x;
cin >> x;
mx2 = max(mx2, x);
}
if (mx1 > mx2)
{
cout << "Alice" << endl;
cout << "Alice" << endl;
}
else if (mx2 > mx1)
{
cout << "Bob" << endl;
cout << "Bob" << endl;
}
else
{
cout << "Alice" << endl;
cout << "Bob" << endl;
}
}
}