Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- #define ll long long int
- using namespace std;
- void mainSolve()
- {
- ll n;
- cin >> n;
- vector<ll> v(n);
- for (int i = 0; i < n; i++)
- cin >> v[i];
- for (ll x : v)
- {
- ll c = x % (n * (n - 1));
- if (c == 0 || c >= n)
- {
- cout << "Alice" << endl;
- return;
- }
- }
- cout << "Bob" << endl;
- }
- int main()
- {
- int t;
- cin >> t;
- while (t--)
- {
- mainSolve();
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement