From 3e79ef41cefec10e7f46b184907edffb13c2ecff Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 27 Mar 2021 15:42:14 +0800 Subject: import(life): Add algorithm contest 3. --- works/life/algorithm-contest-3/test-data/5/1.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/10.cpp | 20 ++++++++++++++++++++ works/life/algorithm-contest-3/test-data/5/11.cpp | 20 ++++++++++++++++++++ works/life/algorithm-contest-3/test-data/5/12.cpp | 20 ++++++++++++++++++++ works/life/algorithm-contest-3/test-data/5/13.cpp | 20 ++++++++++++++++++++ works/life/algorithm-contest-3/test-data/5/14.in | 5 +++++ works/life/algorithm-contest-3/test-data/5/2.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/3.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/4.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/5.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/6.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/7.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/8.in | 6 ++++++ works/life/algorithm-contest-3/test-data/5/9.in | 6 ++++++ 14 files changed, 139 insertions(+) create mode 100644 works/life/algorithm-contest-3/test-data/5/1.in create mode 100644 works/life/algorithm-contest-3/test-data/5/10.cpp create mode 100644 works/life/algorithm-contest-3/test-data/5/11.cpp create mode 100644 works/life/algorithm-contest-3/test-data/5/12.cpp create mode 100644 works/life/algorithm-contest-3/test-data/5/13.cpp create mode 100644 works/life/algorithm-contest-3/test-data/5/14.in create mode 100644 works/life/algorithm-contest-3/test-data/5/2.in create mode 100644 works/life/algorithm-contest-3/test-data/5/3.in create mode 100644 works/life/algorithm-contest-3/test-data/5/4.in create mode 100644 works/life/algorithm-contest-3/test-data/5/5.in create mode 100644 works/life/algorithm-contest-3/test-data/5/6.in create mode 100644 works/life/algorithm-contest-3/test-data/5/7.in create mode 100644 works/life/algorithm-contest-3/test-data/5/8.in create mode 100644 works/life/algorithm-contest-3/test-data/5/9.in (limited to 'works/life/algorithm-contest-3/test-data/5') diff --git a/works/life/algorithm-contest-3/test-data/5/1.in b/works/life/algorithm-contest-3/test-data/5/1.in new file mode 100644 index 0000000..67955b5 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/1.in @@ -0,0 +1,6 @@ +5 3 +100 +200 +300 +400 +500 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/10.cpp b/works/life/algorithm-contest-3/test-data/5/10.cpp new file mode 100644 index 0000000..c74d96d --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/10.cpp @@ -0,0 +1,20 @@ +#include +#include +#include + +const int kNumberCount = 100; +const int kChooseCount = 40; + +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; +} diff --git a/works/life/algorithm-contest-3/test-data/5/11.cpp b/works/life/algorithm-contest-3/test-data/5/11.cpp new file mode 100644 index 0000000..039ca04 --- /dev/null +++ b/works/life/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; +} diff --git a/works/life/algorithm-contest-3/test-data/5/12.cpp b/works/life/algorithm-contest-3/test-data/5/12.cpp new file mode 100644 index 0000000..f7488fb --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/12.cpp @@ -0,0 +1,20 @@ +#include +#include +#include + +const int kNumberCount = 10000; +const int kChooseCount = 1000; + +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; +} \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/13.cpp b/works/life/algorithm-contest-3/test-data/5/13.cpp new file mode 100644 index 0000000..b4e115e --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/13.cpp @@ -0,0 +1,20 @@ +#include +#include +#include + +const int kNumberCount = 100000; +const int kChooseCount = 30000; + +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; +} diff --git a/works/life/algorithm-contest-3/test-data/5/14.in b/works/life/algorithm-contest-3/test-data/5/14.in new file mode 100644 index 0000000..9a880e1 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/14.in @@ -0,0 +1,5 @@ +4 4 +-100 +-100 +-100 +100 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/2.in b/works/life/algorithm-contest-3/test-data/5/2.in new file mode 100644 index 0000000..44e28ef --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/2.in @@ -0,0 +1,6 @@ +5 3 +-100 +-200 +-300 +-400 +-500 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/3.in b/works/life/algorithm-contest-3/test-data/5/3.in new file mode 100644 index 0000000..d784df0 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/3.in @@ -0,0 +1,6 @@ +5 4 +-100 +-200 +-300 +-400 +-500 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/4.in b/works/life/algorithm-contest-3/test-data/5/4.in new file mode 100644 index 0000000..f710da1 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/4.in @@ -0,0 +1,6 @@ +5 3 +20 +-300 +100 +200 +-100 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/5.in b/works/life/algorithm-contest-3/test-data/5/5.in new file mode 100644 index 0000000..7eba3f5 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/5.in @@ -0,0 +1,6 @@ +5 3 +100 +-100 +-200 +300 +400 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/6.in b/works/life/algorithm-contest-3/test-data/5/6.in new file mode 100644 index 0000000..106730a --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/6.in @@ -0,0 +1,6 @@ +5 4 +100 +-100 +-200 +300 +400 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/7.in b/works/life/algorithm-contest-3/test-data/5/7.in new file mode 100644 index 0000000..01bd232 --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/7.in @@ -0,0 +1,6 @@ +5 3 +-100 +-200 +0 +-300 +-400 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/8.in b/works/life/algorithm-contest-3/test-data/5/8.in new file mode 100644 index 0000000..7e0ce0b --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/8.in @@ -0,0 +1,6 @@ +5 3 +-100 +200 +0 +-300 +-400 \ No newline at end of file diff --git a/works/life/algorithm-contest-3/test-data/5/9.in b/works/life/algorithm-contest-3/test-data/5/9.in new file mode 100644 index 0000000..210953e --- /dev/null +++ b/works/life/algorithm-contest-3/test-data/5/9.in @@ -0,0 +1,6 @@ +5 4 +-100 +-100 +100 +100 +200 \ No newline at end of file -- cgit v1.2.3