【bzoj3503】[Cqoi2014]和谐矩阵
根据第一行可以推出第nn行,然后以此列出异或方程。
然后就高斯消元解异或方程即可。#include <bits/stdc++.h>
#define N 49
#define eps 1e-7
using namespace std;
int n,m,ans[N][N],a[N][N],b[N];
bitset<N> A[N][N],B[N];
int main()
{
scanf("%d%
原创
2017-08-07 09:02:10 ·
362 阅读 ·
0 评论