赠送此题数据生成器

P2572 [SCOI2010] 序列操作

LJC00118 @ 2018-05-21 21:49:47

虽然这个生成器非常好写,但还是发出来吧

#include<bits/stdc++.h>

using namespace std;

int main()
{
    srand(time(NULL));
    int n = 2000, m = 2000;
    printf("%d %d\n", n, m);
    for(int i = 1; i <= n; i++) printf("%d ", rand() % 2);
    printf("\n");
    for(int i = 1; i <= m; i++) {
        int caozuo = rand() % 5;
        printf("%d ", caozuo);
        int l = rand() % n;
        printf("%d ", l);
        int tmp = (n - 1 - l + 1);
        int r = l + rand() % tmp;
        printf("%d\n", r);
    }
    return 0;
}

by Chloris @ 2018-05-21 22:15:24

%dalao


by Huanle @ 2018-08-20 11:41:09

感谢dalao%%%


by daniel14311531 @ 2018-10-20 15:06:00

%%% wxw巨佬


by 翰空之眼 @ 2019-08-01 18:41:18

谢谢大佬


by abjfj @ 2019-10-28 20:49:16

感谢巨佬w


by hly1204 @ 2019-10-28 23:16:06

感谢巨佬!!


by Mr_Wu @ 2019-12-31 18:13:53

感谢巨佬!


by Priori_Incantatem @ 2020-04-08 10:19:21

感谢巨佬


by 阿豆·克锐死停 @ 2020-11-29 15:23:44

感谢巨佬


by 小树苗 @ 2021-04-27 09:42:20

感谢巨佬


|