F.A.Qs Home ProblemSet Status Ranklist Contest LoginRegister
Notice:祝各位Oier新年快乐,Rp++!
大视野在线测评-欢迎您
[ New Thread ]
Problem 2744 >> 这题能卡
cmd2001 @ 2018-02-01 15:05:18
[ Quote ] [ Edit ] [ Delete ] 1#
用这组代码生成数据:

#include<bits/stdc++.h>
using namespace std;
const int a = 10 , b = 3000 , m = a*b;

int main() {
freopen("dat.txt","w",stdout);
printf("%d %d %d\n",a,b,m);
for(int i=1;i<=a;i++)
printf("%d%c",i&1,i!=a?' ':'\n');
for(int j=1;j<=b;j++)
printf("%d%c",(j&1)?3:0,j!=b?' ':'\n');
for(int i=1;i<=a;i++)
for(int j=1;j<=b;j++)
printf("%d %d\n",i,j);
return 0;
}

稳稳地卡成m^3*n*2不谢。
反正我的机器跑了好几分钟没跑出来......
[Top] [Previous Page] [Next Page]

HOME Back