题意
改造一组样例,使之复杂度超过n^2,并且不存在一个四个角为1的矩形
题解
神奇的构造,并不懂
代码
#include<bits/stdc++.h>
#define N 100005
#define P pair<int,int>
using namespace std;
typedef long long ll;
const int M=1e9+7;
const int inf=1e9+7;
bool s[3333][3333];
int main()
{
int p=47;
for(int i=0;i<p;i++)
for(int j=0;j<p;j++)
for(int k=0;k<p;k++)
s[i*p+j][k*p+(j*k+i)%p]=1;
printf("2000\n");
for(int i=0;i<2000;i++){
for(int j=0;j<2000;j++)
printf("%d",s[i][j]);
puts("");
}
return 0;
}