题解
突破口:我要让bob早点没得减,我肯定选最小的那个
code
#include<bits/stdc++.h>
using namespace std;
int main()
{
int t;
cin>>t;
while(t--)
{
int n;
cin>>n;
int x;
cin>>x;
int flag=0;
for(int i=2;i<=n;i++)
{
int y;
cin>>y;
if(y<x) flag=1;
}
puts(flag?"Alice":"Bob");
}
return 0;
}
标签:code,int,题解,cin,Game,Swap
From: https://www.cnblogs.com/pure4knowledge/p/18193644