#include<bits/stdc++.h> using namespace std; int main(){ int t; cin>>t; for(int i=0;i<t;i++){ int n; cin>>n; int a,b; for(int j=0;j<n-1;j++){ cin>>a>>b; } if((n-1)%2==0){ cout<<"Bob"<<endl; } else cout<<"Alice"<<endl; } } |
Double click to view unformatted code.