From 3a7e52b6cf32fcda0817c28e7c2422543e1b43d1 Mon Sep 17 00:00:00 2001 From: maspypy Date: Wed, 1 Nov 2023 22:31:08 +0900 Subject: [PATCH] add testcase --- math/tetration_mod/gen/small_ab.cpp | 22 ++++++++++++++++++++++ math/tetration_mod/hash.json | 8 +++++--- math/tetration_mod/info.toml | 3 +++ 3 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 math/tetration_mod/gen/small_ab.cpp diff --git a/math/tetration_mod/gen/small_ab.cpp b/math/tetration_mod/gen/small_ab.cpp new file mode 100644 index 000000000..fa0c69241 --- /dev/null +++ b/math/tetration_mod/gen/small_ab.cpp @@ -0,0 +1,22 @@ +#include "random.h" +#include + +using namespace std; +using ll = long long; + +int main(int, char* argv[]) { + long long seed = atoll(argv[1]); + auto gen = Random(seed); + int l = 10; + int t = l * l * l; + printf("%d\n", t); + for (int a = 0; a < l; a++) { + for (int b = 0; b < l; b++) { + for (int m = 1; m <= l; m++) { + int mod = gen.uniform(1LL, 1'000'000'000LL); + printf("%d %d %d\n", a, b, mod); + } + } + } + return 0; +} \ No newline at end of file diff --git a/math/tetration_mod/hash.json b/math/tetration_mod/hash.json index c50859fbe..6d4c214e3 100644 --- a/math/tetration_mod/hash.json +++ b/math/tetration_mod/hash.json @@ -1,10 +1,10 @@ { + "2_3_32_00.in": "2201a5eac58b1f044d18bd8e93ac52c296695554d4dc438a71a302ae60a6c31d", + "2_3_32_00.out": "e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017", "example_00.in": "a656c75f3fc4674755fda4c12c7a541e78c2bb6cd877a5820c5966396fdccf73", "example_00.out": "80277aeae69bba3640d89312d1584c3a6b7c9a1bec1ebbccdf6d56cb52d2277e", "example_01.in": "a328ed46e2dceb7f04184d61b71f96ebd19a63a6b73835b2a29e9eb8785fd2b0", "example_01.out": "868ccaf4564d4d45e456fa19f3e9403a5eeeab9c9682d1caa427b34a96214533", - "2_3_32_00.in": "2201a5eac58b1f044d18bd8e93ac52c296695554d4dc438a71a302ae60a6c31d", - "2_3_32_00.out": "e6c21e8d260fe71882debdb339d2402a2ca7648529bc2303f48649bce0380017", "max_00.in": "cbe52808c641625f958a98505f1723cc2e24869d9ab9e59b82d39a276e89b47b", "max_00.out": "e36e52f693c336439495df602af57081b7335e39d6696e4c5004fcff412dccde", "max_01.in": "3d6c908a88a4d8d5edbc9d88cd1997f543205d6ae3af401723fbaaf225eb2671", @@ -34,5 +34,7 @@ "random_04.in": "55d86c94e704f451ae30384bb76bc7699e3f4a0bb94f9e70012b31640e96827f", "random_04.out": "42495b3a8975e2edd34f777065353a5fa85eaa14bf67b32264c2631f86260470", "small_00.in": "670f3cc1d60cb8f36e85a35417b8859bcf458bf447dfa30c0bc58cd20dd433bf", - "small_00.out": "acc9801b0d2f0c83131b9e89bd76eb5fcaee7e193555f59bcbf565fa53eaab0a" + "small_00.out": "acc9801b0d2f0c83131b9e89bd76eb5fcaee7e193555f59bcbf565fa53eaab0a", + "small_ab_00.in": "a46e93fa20c52079fde6f64f73f6768638f57ca7f0287a5ed84310bb7d58e2a0", + "small_ab_00.out": "f8a94948019a087a2dce5eb5489456b816aa24016fd0b12bd078eca939e75a4c" } \ No newline at end of file diff --git a/math/tetration_mod/info.toml b/math/tetration_mod/info.toml index ac93b0940..f2bebaf45 100644 --- a/math/tetration_mod/info.toml +++ b/math/tetration_mod/info.toml @@ -8,6 +8,9 @@ forum = "https://github.com/yosupo06/library-checker-problems/issues/166" [[tests]] name = "small.cpp" number = 1 +[[tests]] + name = "small_ab.cpp" + number = 1 [[tests]] name = "2_3_32.in" number = 1