Skip to content

Commit

Permalink
add testcase
Browse files Browse the repository at this point in the history
  • Loading branch information
maspypy committed Nov 1, 2023
1 parent 76083b3 commit 3a7e52b
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 3 deletions.
22 changes: 22 additions & 0 deletions math/tetration_mod/gen/small_ab.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#include "random.h"
#include <iostream>

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;
}
8 changes: 5 additions & 3 deletions math/tetration_mod/hash.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
3 changes: 3 additions & 0 deletions math/tetration_mod/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3a7e52b

Please sign in to comment.