Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int mi = 999, amount = 999, n, x; // min value after loop, number of min value, number of pile, variable for input
- scanf("%d", &n);
- for(int i = 1; i <= n; i++){
- scanf("%d", &x);
- if(x < mi){
- mi = x;
- amount = 1;
- }
- else if(x == mi) amount++;
- }
- printf(amount <= n/2 ? "Alice" : "Bob");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement