N^2过百万

P3293 [SCOI2016] 美味

@[s_r_f](/user/52518) @[一扶苏一](/user/65363)
by 7KByte @ 2020-08-08 23:25:57


@[Inf_Voltage](/user/119261) 可以提供 hack 数据嘛
by 一扶苏一 @ 2020-08-08 23:27:13


~~这是十万吧~~
by StarLbright40 @ 2020-08-08 23:30:14


@[一扶苏一](/user/65363) [Link](https://www.luogu.com.cn/fe/api/problem/downloadAttachment/z1czooh2) ```cpp #include<bits/stdc++.h> #define rep(i,a,b) for(int i=a;i<=b;i++) #define pre(i,a,b) for(int i=a;i>=b;i--) using namespace std; int n=199999,m=99999; signed main(){ //freopen("test1.in","w",stdout); srand(time(0)); printf("%d %d\n",n,m); rep(i,1,n)printf("%d ",(rand()<<1)|(rand()&1)); rep(i,1,m){ int l=(rand()&511)+1,r=n-(rand()&511),b=(rand()<<1)|(rand()&1),x=rand(); printf("%d %d %d %d\n",b,x,l,r); } return 0; } ```
by 7KByte @ 2020-08-08 23:38:31


@[Inf_Voltage](/user/119261) added,感谢您的贡献!
by 一扶苏一 @ 2020-08-08 23:47:10


|