mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 18:11:59 +00:00
parent
9e86128cf2
commit
ee1b36802f
BIN
S2OJ/2086/data/1.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/1.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/1.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/1.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/10.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/10.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/10.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/10.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/11.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/11.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/11.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/11.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/12.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/12.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/12.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/12.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/13.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/13.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/13.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/13.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/14.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/14.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/14.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/14.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/15.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/15.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/15.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/15.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/16.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/16.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/16.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/16.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/17.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/17.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/17.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/17.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/18.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/18.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/18.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/18.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/19.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/19.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/19.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/19.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/2.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/2.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/2.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/2.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/20.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/20.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/20.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/20.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/21.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/21.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/21.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/21.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/22.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/22.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/22.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/22.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/23.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/23.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/23.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/23.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/24.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/24.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/24.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/24.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/25.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/25.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/25.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/25.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/3.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/3.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/3.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/3.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/4.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/4.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/4.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/4.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/5.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/5.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/5.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/5.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/6.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/6.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/6.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/6.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/7.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/7.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/7.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/7.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/8.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/8.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/8.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/8.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/9.in
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/9.in
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/9.out
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/9.out
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/problem.conf
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/problem.conf
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/std.cpp
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/std.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
S2OJ/2086/data/val.cpp
(Stored with Git LFS)
Normal file
BIN
S2OJ/2086/data/val.cpp
(Stored with Git LFS)
Normal file
Binary file not shown.
55
S2OJ/2086/resources/gen.cpp
Normal file
55
S2OJ/2086/resources/gen.cpp
Normal file
@ -0,0 +1,55 @@
|
||||
/**
|
||||
* @file S2OJ/1991/gen.cpp
|
||||
* @author Baoshuo <i@baoshuo.ren>
|
||||
* @url https://baoshuo.ren
|
||||
* @license GPL-3.0
|
||||
* @date 2023-03-30
|
||||
*/
|
||||
|
||||
#include "testlib.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <limits>
|
||||
|
||||
using std::cin;
|
||||
using std::cout;
|
||||
const char endl = '\n';
|
||||
|
||||
#define N_TESTS 25
|
||||
#define PERCENT_TESTS(_percent) (static_cast<double>(_percent) / 100 * N_TESTS)
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
registerGen(argc, argv, 1);
|
||||
|
||||
int id = opt<int>("id");
|
||||
|
||||
int min_n = 300,
|
||||
max_n = 500;
|
||||
int min_m = 300,
|
||||
max_m = 500;
|
||||
int min_e = 500,
|
||||
max_e = 5e4;
|
||||
|
||||
if (id <= PERCENT_TESTS(50)) {
|
||||
min_n = 50, max_n = 100;
|
||||
min_m = 50, max_m = 100;
|
||||
min_e = 100, max_e = 5000;
|
||||
} else { // all tests
|
||||
// (none)
|
||||
}
|
||||
|
||||
int n = rnd.next(min_n, max_n);
|
||||
int m = rnd.next(min_m, max_m);
|
||||
int e = rnd.next(min_e, max_e);
|
||||
|
||||
cout << n << ' ' << m << ' ' << e << endl;
|
||||
|
||||
for (int i = 1; i <= e; i++) {
|
||||
int u = rnd.next(1, n);
|
||||
int v = rnd.next(1, m);
|
||||
|
||||
cout << u << ' ' << v << endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user