Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- #define pb push_back
- #define F first
- #define S second
- #define ld long double
- #define ll long long
- #define TIME 1.0*clock()/CLOCKS_PER_SEC
- mt19937 gen(chrono::system_clock::now().time_since_epoch().count());
- const int N = 1e5 + 10;
- const ll MOD = 1e9 + 7;
- const int rx[8] = {-1, -1, -1, 0, 1, 1, 1, 0};
- const int ry[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
- const ld eps = 1e-7;
- const double pi = acos(-1.0);
- const int INF = 2e9;
- int main() {
- #ifdef LOCAL
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- #else
- // freopen("input.txt", "r", stdin);
- // freopen("output.txt", "w", stdout);
- #endif
- ios_base::sync_with_stdio(0);
- cin.tie(0);
- cout.tie(0);
- int n;
- cin >> n;
- int a[n];
- for (int i = 0; i < n; i++) cin >> a[i];
- int kol = 1;
- for (int i = 1; i < n; i++) if (a[i] > a[i - 1]) kol ++;
- if (kol % 2 == 0) cout << "Alice" << endl;
- else cout << "Bob" << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement