HDU-4642 Fliping game 简单博弈
2013-08-02 00:50
211 查看
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4642
看右下角的状态就行了,因为上面的操作每次都会改变它,而最后的局势是根据它来的。。。
看右下角的状态就行了,因为上面的操作每次都会改变它,而最后的局势是根据它来的。。。
//STATUS:C++_AC_15MS_218KB #include <functional> #include <algorithm> #include <iostream> //#include <ext/rope> #include <fstream> #include <sstream> #include <iomanip> #include <numeric> #include <cstring> #include <cassert> #include <cstdio> #include <string> #include <vector> #include <bitset> #include <queue> #include <stack> #include <cmath> #include <ctime> #include <list> #include <set> #include <map> using namespace std; //#pragma comment(linker,"/STACK:102400000,102400000") //using namespace __gnu_cxx; //define #define pii pair<int,int> #define mem(a,b) memset(a,b,sizeof(a)) #define lson l,mid,rt<<1 #define rson mid+1,r,rt<<1|1 #define PI acos(-1.0) //typedef typedef __int64 LL; typedef unsigned __int64 ULL; //const const int N=1010; const int INF=0x3f3f3f3f; const int MOD=10007,STA=8000010; const LL LNF=1LL<<60; const double EPS=1e-8; const double OO=1e15; const int dx[4]={-1,0,1,0}; const int dy[4]={0,1,0,-1}; const int day[13]={0,31,28,31,30,31,30,31,31,30,31,30,31}; //Daily Use ... inline int sign(double x){return (x>EPS)-(x<-EPS);} template<class T> T gcd(T a,T b){return b?gcd(b,a%b):a;} template<class T> T lcm(T a,T b){return a/gcd(a,b)*b;} template<class T> inline T lcm(T a,T b,T d){return a/d*b;} template<class T> inline T Min(T a,T b){return a<b?a:b;} template<class T> inline T Max(T a,T b){return a>b?a:b;} template<class T> inline T Min(T a,T b,T c){return min(min(a, b),c);} template<class T> inline T Max(T a,T b,T c){return max(max(a, b),c);} template<class T> inline T Min(T a,T b,T c,T d){return min(min(a, b),min(c,d));} template<class T> inline T Max(T a,T b,T c,T d){return max(max(a, b),max(c,d));} //End int main(){ // freopen("in.txt","r",stdin); int T,i,j,n,m,a; scanf("%d",&T); while(T--) { scanf("%d%d",&n,&m); for(i=0;i<n;i++){ for(j=0;j<m;j++){ scanf("%d",&a); } } printf("%s\n",a?"Alice":"Bob"); } return 0; }
相关文章推荐
- HDU 4642 Fliping game(简单博弈)
- HDU 4642 Fliping game (2013多校4 1011 简单博弈)
- HDU 4642 Fliping game (简单博弈)
- hdu - 4642 - Fliping game(博弈)
- HDU 4642 简单博弈
- hdu 4642 Fliping game 博弈
- HDU 4642 - Fliping game(博弈)
- hdu 4642 Fliping game(博弈)
- hdu 4642 Fliping game(博弈)
- hdu 4642 Fliping game(博弈)
- HDU 4642 Fliping game (博弈)
- hdu 2897 邂逅明下 (简单巴什博弈)
- hdu,poj博弈简单题
- HDU-1846-Brave Game 简单【巴什博弈】
- HDU 4642 Fliping game
- hdu 2149 Public Sale 简单博弈
- HDU 3951 Coin Game 简单博弈
- HDU 1846 Brave Game (简单博弈)
- hdu 2188 简单博弈 巴什博奕(Bash Game)----同1846
- HDU 2147 kiki's game 简单博弈