HDU 3364
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=3364经典高斯消元解开关问题m个开关控制n个灯,开始灯全灭,问到达目标状态有几种方法(每个开关至多一次操作,不计顺序)一个灯的最终状态取决于x1^x2^...^xm,xi表示第i个开关的状态,1开0关所以根据题意建...
阅读全文
高斯消元
摘要:#include #include #include #include #include #include #include using namespace std ;const int MAXN=50;int a[MAXN][MAXN];//增广矩阵int x[MAXN];//解集bool fre...
阅读全文