Skip to content

Commit d426af3

Browse files
authored
[auto-verifier] docs commit a751116
1 parent a4d85ab commit d426af3

9 files changed

+107
-6
lines changed

index.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ data:
33
libraryCategories:
44
- name: weilycoder/data-struct
55
pages:
6+
- icon: ':heavy_check_mark:'
7+
path: weilycoder/data-struct/static_range_sum.hpp
8+
title: weilycoder/data-struct/static_range_sum.hpp
69
- icon: ':heavy_check_mark:'
710
path: weilycoder/data-struct/unionfind.hpp
811
title: weilycoder/data-struct/unionfind.hpp
@@ -17,6 +20,9 @@ data:
1720
- icon: ':heavy_check_mark:'
1821
path: test/biconnected_components.test.cpp
1922
title: test/biconnected_components.test.cpp
23+
- icon: ':heavy_check_mark:'
24+
path: test/static_range_sum.test.cpp
25+
title: test/static_range_sum.test.cpp
2026
- icon: ':heavy_check_mark:'
2127
path: test/strongly_connected_components.test.cpp
2228
title: test/strongly_connected_components.test.cpp

test/biconnected_components.test.cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ data:
8686
isVerificationFile: true
8787
path: test/biconnected_components.test.cpp
8888
requiredBy: []
89-
timestamp: '2025-10-28 22:53:17+08:00'
89+
timestamp: '2025-10-28 23:07:26+08:00'
9090
verificationStatus: TEST_ACCEPTED
9191
verifiedWith: []
9292
documentation_of: test/biconnected_components.test.cpp

test/static_range_sum.test.cpp.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
data:
3+
_extendedDependsOn:
4+
- icon: ':heavy_check_mark:'
5+
path: weilycoder/data-struct/static_range_sum.hpp
6+
title: weilycoder/data-struct/static_range_sum.hpp
7+
_extendedRequiredBy: []
8+
_extendedVerifiedWith: []
9+
_isVerificationFailed: false
10+
_pathExtension: cpp
11+
_verificationStatusIcon: ':heavy_check_mark:'
12+
attributes:
13+
'*NOT_SPECIAL_COMMENTS*': ''
14+
PROBLEM: https://judge.yosupo.jp/problem/static_range_sum
15+
links:
16+
- https://judge.yosupo.jp/problem/static_range_sum
17+
bundledCode: "#line 1 \"test/static_range_sum.test.cpp\"\n#define PROBLEM \"https://judge.yosupo.jp/problem/static_range_sum\"\
18+
\n\n#line 1 \"weilycoder/data-struct/static_range_sum.hpp\"\n\n\n\n#include <cstddef>\n\
19+
#include <vector>\n\nnamespace weilycoder {\ntemplate <typename T, typename ptr_t\
20+
\ = size_t> struct StaticRangeSum {\n std::vector<T> prefix_sum;\n\n StaticRangeSum(const\
21+
\ std::vector<T> &data) : prefix_sum(data.size() + 1) {\n for (ptr_t i = 1;\
22+
\ i <= data.size(); ++i)\n prefix_sum[i] = prefix_sum[i - 1] + data[i - 1];\n\
23+
\ }\n\n T query(ptr_t l, ptr_t r) const { return prefix_sum[r] - prefix_sum[l];\
24+
\ }\n};\n} // namespace weilycoder\n\n\n#line 4 \"test/static_range_sum.test.cpp\"\
25+
\n#include <cstdint>\n#include <iostream>\n#line 7 \"test/static_range_sum.test.cpp\"\
26+
\nusing namespace std;\nusing namespace weilycoder;\n\nint main() {\n cin.tie(nullptr)->sync_with_stdio(false);\n\
27+
\ cin.exceptions(cin.failbit | cin.badbit);\n size_t n, q;\n cin >> n >> q;\n\
28+
\n vector<uint64_t> arr(n);\n for (size_t i = 0; i < n; ++i)\n cin >> arr[i];\n\
29+
\n StaticRangeSum<uint64_t> sum(arr);\n while (q--) {\n size_t l, r;\n \
30+
\ cin >> l >> r;\n cout << sum.query(l, r) << '\\n';\n }\n return 0;\n}\n"
31+
code: "#define PROBLEM \"https://judge.yosupo.jp/problem/static_range_sum\"\n\n\
32+
#include \"../weilycoder/data-struct/static_range_sum.hpp\"\n#include <cstdint>\n\
33+
#include <iostream>\n#include <vector>\nusing namespace std;\nusing namespace\
34+
\ weilycoder;\n\nint main() {\n cin.tie(nullptr)->sync_with_stdio(false);\n \
35+
\ cin.exceptions(cin.failbit | cin.badbit);\n size_t n, q;\n cin >> n >> q;\n\
36+
\n vector<uint64_t> arr(n);\n for (size_t i = 0; i < n; ++i)\n cin >> arr[i];\n\
37+
\n StaticRangeSum<uint64_t> sum(arr);\n while (q--) {\n size_t l, r;\n \
38+
\ cin >> l >> r;\n cout << sum.query(l, r) << '\\n';\n }\n return 0;\n}"
39+
dependsOn:
40+
- weilycoder/data-struct/static_range_sum.hpp
41+
isVerificationFile: true
42+
path: test/static_range_sum.test.cpp
43+
requiredBy: []
44+
timestamp: '2025-10-28 23:07:26+08:00'
45+
verificationStatus: TEST_ACCEPTED
46+
verifiedWith: []
47+
documentation_of: test/static_range_sum.test.cpp
48+
layout: document
49+
redirect_from:
50+
- /verify/test/static_range_sum.test.cpp
51+
- /verify/test/static_range_sum.test.cpp.html
52+
title: test/static_range_sum.test.cpp
53+
---

test/strongly_connected_components.test.cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ data:
8686
isVerificationFile: true
8787
path: test/strongly_connected_components.test.cpp
8888
requiredBy: []
89-
timestamp: '2025-10-28 22:53:17+08:00'
89+
timestamp: '2025-10-28 23:07:26+08:00'
9090
verificationStatus: TEST_ACCEPTED
9191
verifiedWith: []
9292
documentation_of: test/strongly_connected_components.test.cpp

test/two_edge_connected_components.test.cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ data:
8787
isVerificationFile: true
8888
path: test/two_edge_connected_components.test.cpp
8989
requiredBy: []
90-
timestamp: '2025-10-28 22:53:17+08:00'
90+
timestamp: '2025-10-28 23:07:26+08:00'
9191
verificationStatus: TEST_ACCEPTED
9292
verifiedWith: []
9393
documentation_of: test/two_edge_connected_components.test.cpp

test/unionfind.test.cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ data:
4444
isVerificationFile: true
4545
path: test/unionfind.test.cpp
4646
requiredBy: []
47-
timestamp: '2025-10-28 22:53:17+08:00'
47+
timestamp: '2025-10-28 23:07:26+08:00'
4848
verificationStatus: TEST_ACCEPTED
4949
verifiedWith: []
5050
documentation_of: test/unionfind.test.cpp
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
data:
3+
_extendedDependsOn: []
4+
_extendedRequiredBy: []
5+
_extendedVerifiedWith:
6+
- icon: ':heavy_check_mark:'
7+
path: test/static_range_sum.test.cpp
8+
title: test/static_range_sum.test.cpp
9+
_isVerificationFailed: false
10+
_pathExtension: hpp
11+
_verificationStatusIcon: ':heavy_check_mark:'
12+
attributes:
13+
links: []
14+
bundledCode: "#line 1 \"weilycoder/data-struct/static_range_sum.hpp\"\n\n\n\n#include\
15+
\ <cstddef>\n#include <vector>\n\nnamespace weilycoder {\ntemplate <typename T,\
16+
\ typename ptr_t = size_t> struct StaticRangeSum {\n std::vector<T> prefix_sum;\n\
17+
\n StaticRangeSum(const std::vector<T> &data) : prefix_sum(data.size() + 1) {\n\
18+
\ for (ptr_t i = 1; i <= data.size(); ++i)\n prefix_sum[i] = prefix_sum[i\
19+
\ - 1] + data[i - 1];\n }\n\n T query(ptr_t l, ptr_t r) const { return prefix_sum[r]\
20+
\ - prefix_sum[l]; }\n};\n} // namespace weilycoder\n\n\n"
21+
code: "#ifndef WEILYCODER_STATIC_RANGE_SUM_HPP\n#define WEILYCODER_STATIC_RANGE_SUM_HPP\n\
22+
\n#include <cstddef>\n#include <vector>\n\nnamespace weilycoder {\ntemplate <typename\
23+
\ T, typename ptr_t = size_t> struct StaticRangeSum {\n std::vector<T> prefix_sum;\n\
24+
\n StaticRangeSum(const std::vector<T> &data) : prefix_sum(data.size() + 1) {\n\
25+
\ for (ptr_t i = 1; i <= data.size(); ++i)\n prefix_sum[i] = prefix_sum[i\
26+
\ - 1] + data[i - 1];\n }\n\n T query(ptr_t l, ptr_t r) const { return prefix_sum[r]\
27+
\ - prefix_sum[l]; }\n};\n} // namespace weilycoder\n\n#endif\n"
28+
dependsOn: []
29+
isVerificationFile: false
30+
path: weilycoder/data-struct/static_range_sum.hpp
31+
requiredBy: []
32+
timestamp: '2025-10-28 23:07:26+08:00'
33+
verificationStatus: LIBRARY_ALL_AC
34+
verifiedWith:
35+
- test/static_range_sum.test.cpp
36+
documentation_of: weilycoder/data-struct/static_range_sum.hpp
37+
layout: document
38+
redirect_from:
39+
- /library/weilycoder/data-struct/static_range_sum.hpp
40+
- /library/weilycoder/data-struct/static_range_sum.hpp.html
41+
title: weilycoder/data-struct/static_range_sum.hpp
42+
---

weilycoder/data-struct/unionfind.hpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data:
3535
isVerificationFile: false
3636
path: weilycoder/data-struct/unionfind.hpp
3737
requiredBy: []
38-
timestamp: '2025-10-28 22:53:17+08:00'
38+
timestamp: '2025-10-28 23:07:26+08:00'
3939
verificationStatus: LIBRARY_ALL_AC
4040
verifiedWith:
4141
- test/unionfind.test.cpp

weilycoder/graph/tarjan.hpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ data:
119119
isVerificationFile: false
120120
path: weilycoder/graph/tarjan.hpp
121121
requiredBy: []
122-
timestamp: '2025-10-28 22:53:17+08:00'
122+
timestamp: '2025-10-28 23:07:26+08:00'
123123
verificationStatus: LIBRARY_ALL_AC
124124
verifiedWith:
125125
- test/two_edge_connected_components.test.cpp

0 commit comments

Comments
 (0)