#include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; bool rcmp(int a, int b) { return a>b; } typedef long long LL; class mypcmp { public: bool operator()(const int& a, const int& b) { return a=d) { d = t-d; if ((d&1)==0) m=1; } if (m==0) { for (i=k; i>=0; i--) if (ib[i]!=ib[k]) break; d=k-i; if (t>=d) { d=t-d; if ((d&1)==0) m=1; } } if (ib[k]=='B') m^=1; if (m) printf("Alice\n"); else printf("Bob\n"); return 0; }