Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. #define pb push_back
  5. #define F first
  6. #define S second
  7. #define ld long double
  8. #define ll long long
  9. #define TIME 1.0*clock()/CLOCKS_PER_SEC
  10.  
  11. mt19937 gen(chrono::system_clock::now().time_since_epoch().count());
  12.  
  13. const int N = 1e5 + 10;
  14. const ll MOD = 1e9 + 7;
  15. const int rx[8] = {-1, -1, -1, 0, 1, 1, 1, 0};
  16. const int ry[8] = {-1, 0, 1, 1, 1, 0, -1, -1};
  17. const ld eps = 1e-7;
  18. const double pi = acos(-1.0);
  19. const int INF = 2e9;
  20.  
  21. int main() {
  22. #ifdef LOCAL
  23. freopen("input.txt", "r", stdin);
  24. freopen("output.txt", "w", stdout);
  25. #else
  26. // freopen("input.txt", "r", stdin);
  27. // freopen("output.txt", "w", stdout);
  28. #endif
  29. ios_base::sync_with_stdio(0);
  30. cin.tie(0);
  31. cout.tie(0);
  32. int n;
  33. cin >> n;
  34. int a[n];
  35. for (int i = 0; i < n; i++) cin >> a[i];
  36. int kol = 1;
  37. for (int i = 1; i < n; i++) if (a[i] > a[i - 1]) kol ++;
  38. if (kol % 2 == 0) cout << "Alice" << endl;
  39. else cout << "Bob" << endl;
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement