-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesty.cpp
More file actions
48 lines (40 loc) · 933 Bytes
/
testy.cpp
File metadata and controls
48 lines (40 loc) · 933 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
45
46
47
48
#include <bits/stdc++.h>
using namespace std;
#ifndef ONLINE_JUDGE
#define LOCAL
#endif
#define ll long long
#define f(x1, y1, z1) for (int x1 = y1; x1 < z1; x1++)
#define endl "\n"
// #define yn(f) cout << (f ? "YES\n" : "NO\n")
#define yn(f) cout << (f ? "Alice\n" : "Bob\n")
#define pr(x) cout << x << "\n"
#define all(x) x.begin(), x.end()
#define vl vector<ll>
#define vi vector<int>
#define pb push_back
#define pi pair<ll, ll>
#ifdef LOCAL
#include "D:\\VS-Code\\Competitive programming practice\\Zest-cases\\dbg.h"
#else
#define dbg(x...)
#endif
const int MOD = 1e9+7;
ll N = 1e18;
void AKG(){
int n;cin>>n;
vi a(n);
f(i,0,n)cin>>a[i];
yn(!(a[0]==a[n-1]&&a[0]==0));
}
int main() {
#ifdef LOCAL
freopen("D:\\VS-Code\\Competitive programming practice\\input.txt", "r", stdin);
#endif
ios_base::sync_with_stdio(0);
cin.tie(0);
int t=1;
cin >> t;
while(t--)AKG();
return 0;
}