由于这道题非常难条还没有数据下载,所以我给大家提供一个自己对拍用的数据生成器

P2572 [SCOI2010] 序列操作

EmptyAlien @ 2024-07-17 13:40:55

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 祭


by Special_Tony @ 2024-08-08 22:47:10

@EmptyAlien orz


|