From fdfe966e8164acd49cb59bc9a1a888a79c6792bb Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 27 Mar 2021 15:42:14 +0800 Subject: Add algorithm contest 3. --- algorithm-contest-3/test-data/5/11.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 algorithm-contest-3/test-data/5/11.cpp (limited to 'algorithm-contest-3/test-data/5/11.cpp') diff --git a/algorithm-contest-3/test-data/5/11.cpp b/algorithm-contest-3/test-data/5/11.cpp new file mode 100644 index 0000000..039ca04 --- /dev/null +++ b/algorithm-contest-3/test-data/5/11.cpp @@ -0,0 +1,20 @@ +#include +#include +#include + +const int kNumberCount = 1000; +const int kChooseCount = 200; + +int main() { + std::random_device random_device; + auto random = std::default_random_engine{random_device()}; + std::uniform_int_distribution distribution{0, 200000}; + + std::cout << kNumberCount << ' ' << kChooseCount << "\n"; + + for (int i = 0; i < kNumberCount; i++) { + std::cout << distribution(random) - 100000 << "\n"; + } + + return 0; +} -- cgit v1.2.3