题目大意 分析 结论 令 ttt 为最小值 if t>n/2,then Bobif \ t > n/2 , then \ Bobif t>n/2,then Bob else Aliceelse \ Aliceelse Alice Code 12345678910111213141516signed main(){ int n;cin>>n; vector<int> a(n+1); int sum = 0; for(int i = 1;i <= n;i++) cin >> a[i]; int t = *min_element(a.begin()+1,a.end()); int cnt = 0; for(int i = 1;i <= n;i++){ if(a[i] == t) cnt++; } if(cnt > n/2) puts("Bob"); else puts("Alice"); return 0;}