由于这道题非常难条还没有数据下载,所以我给大家提供一个自己对拍用的数据生成器
查看原帖
由于这道题非常难条还没有数据下载,所以我给大家提供一个自己对拍用的数据生成器
386547
Infter楼主2024/7/17 13:40

rt

#include <bits/stdc++.h>
using namespace std;

int main() {
    srand(time(NULL));
    mt19937 rnd(rand() * rand());
    freopen("in", "w", stdout);
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    cout << 10 << " " << 10 << endl;
    for (int i = 1; i <= 10; i++)
        cout << rnd() % 2 << " ";
    cout << endl;
    for (int i = 1; i <= 10; i++) {
        cout << rnd() % 5 << " ";
        int x = rnd() % 10, y = rnd() % 10;
        cout << min(x, y) << " " << max(x, y) << endl;
    }

        return 0;
}

验证码 QAQ4 祭

2024/7/17 13:40
加载中...