Skip to content

Commit

Permalink
Merge pull request #1059 from maspypy/issue_1056
Browse files Browse the repository at this point in the history
テストケース追加
  • Loading branch information
maspypy authored Nov 13, 2023
2 parents d87c06c + 4e7cea3 commit d0cc50f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 2 deletions.
16 changes: 16 additions & 0 deletions math/counting_primes/gen/very_small.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include "random.h"
#include <iostream>
#include <vector>
#include <cassert>
#include "../params.h"

using namespace std;
using ll = long long;

int main(int, char* argv[]) {
long long seed = atoll(argv[1]);

ll N = seed % 5 + 1;
printf("%lld\n", N);
return 0;
}
12 changes: 11 additions & 1 deletion math/counting_primes/hash.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,15 @@
"small_03.in": "55d2e2440fc4c8958076e1ba6d4655183dbec1aa04aadd897bdc9cccda4558dd",
"small_03.out": "6771a70676ab80a525ede2a93df8acc8a41a0809cf8290562519929da6f6511d",
"small_04.in": "d405fe5a8ad4ef5a2467a341bc2d5f5a69f40d534ba5626c8ec61ed8d918d63d",
"small_04.out": "0e8ae555cd6bb5a690bca0c53b3caa06d017a96c633f1edfd01273f34a74e2b2"
"small_04.out": "0e8ae555cd6bb5a690bca0c53b3caa06d017a96c633f1edfd01273f34a74e2b2",
"very_small_00.in": "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865",
"very_small_00.out": "9a271f2a916b0b6ee6cecb2426f0b3206ef074578be55d9bc94f6f3fe3ab86aa",
"very_small_01.in": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"very_small_01.out": "4355a46b19d348dc2f57c046f8ef63d4538ebb936000f3c9ee954a27460dd865",
"very_small_02.in": "1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2",
"very_small_02.out": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"very_small_03.in": "7de1555df0c2700329e815b93b32c571c3ea54dc967b89e81ab73b9972b72d1d",
"very_small_03.out": "53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3",
"very_small_04.in": "f0b5c2c2211c8d67ed15e75e656c7862d086e9245420892a7de62cd9ec582a06",
"very_small_04.out": "1121cfccd5913f0a63fec40a6ffd44ea64f9dc135c66634ba001d10bcf4302a2"
}
5 changes: 4 additions & 1 deletion math/counting_primes/info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ forum = "https://github.com/yosupo06/library-checker-problems/issues/388"
[[tests]]
name = "small.cpp"
number = 5
[[tests]]
name = "very_small.cpp"
number = 5
[[tests]]
name = "random.cpp"
number = 5

[params]
N_MAX = 100_000_000_000
N_MAX = 100_000_000_000

0 comments on commit d0cc50f

Please sign in to comment.