Skip to content

Commit 3696bf0

Browse files
committed
deploy: d1cea10
1 parent 9bd4f85 commit 3696bf0

File tree

10 files changed

+108
-20
lines changed

10 files changed

+108
-20
lines changed

404.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
<link rel="icon" href="/assets/images/favicon.png">
14+
<link rel="icon" href="/img/kkt89.jpg">
1515
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
1616

1717

@@ -46,7 +46,11 @@
4646

4747
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
4848

49-
<link rel="stylesheet" href="/styles/logo.css">
49+
<link rel="stylesheet" href="/css/logo.css">
50+
51+
<link rel="stylesheet" href="/css/layout.css">
52+
53+
<link rel="stylesheet" href="/css/code.css">
5054

5155
<script>__md_scope=new URL("/",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
5256

@@ -85,7 +89,7 @@
8589
<nav class="md-header__inner md-grid" aria-label="ヘッダー">
8690
<a href="/." title="KKT89&#39;s Library" class="md-header__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
8791

88-
<img src="/img/kkt89.jfif" alt="logo">
92+
<img src="/img/kkt89.jpg" alt="logo">
8993

9094
</a>
9195
<label class="md-header__button md-icon" for="__drawer">
@@ -272,7 +276,7 @@
272276
<label class="md-nav__title" for="__drawer">
273277
<a href="/." title="KKT89&#39;s Library" class="md-nav__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
274278

275-
<img src="/img/kkt89.jfif" alt="logo">
279+
<img src="/img/kkt89.jpg" alt="logo">
276280

277281
</a>
278282
KKT89's Library

css/code.css

Whitespace-only changes.

css/layout.css

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
[data-md-color-scheme=default] {
2+
--md-default-fg-color--light: #222 !important;
3+
4+
}
5+
6+
[data-md-color-scheme=slate] {
7+
--md-default-fg-color--light: #fefefe !important;
8+
--md-typeset-a-color: #fc0 !important;
9+
}
10+
11+
.md-typeset h1 {
12+
/* 太字 */
13+
font-weight: bold;
14+
/* 下線の色 */
15+
border-bottom: solid 2px #f18b21;
16+
/* 下線との余白 */
17+
padding-bottom: 5px;
18+
}
19+
20+
.md-typeset h2 {
21+
/* 点線下線 */
22+
border-bottom: 2px dotted #888;
23+
}
24+
25+
.md-typeset h3:before {
26+
font-family: "FontAwesome";
27+
font-weight: 900;
28+
content: "\f0a9";
29+
margin-right: 5px;
30+
}
File renamed without changes.
File renamed without changes.

index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<link rel="next" href="library/sample/sample/">
1414

1515

16-
<link rel="icon" href="assets/images/favicon.png">
16+
<link rel="icon" href="img/kkt89.jpg">
1717
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
1818

1919

@@ -48,7 +48,11 @@
4848

4949
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
5050

51-
<link rel="stylesheet" href="styles/logo.css">
51+
<link rel="stylesheet" href="css/logo.css">
52+
53+
<link rel="stylesheet" href="css/layout.css">
54+
55+
<link rel="stylesheet" href="css/code.css">
5256

5357
<script>__md_scope=new URL(".",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
5458

@@ -92,7 +96,7 @@
9296
<nav class="md-header__inner md-grid" aria-label="ヘッダー">
9397
<a href="." title="KKT89&#39;s Library" class="md-header__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
9498

95-
<img src="img/kkt89.jfif" alt="logo">
99+
<img src="img/kkt89.jpg" alt="logo">
96100

97101
</a>
98102
<label class="md-header__button md-icon" for="__drawer">
@@ -281,7 +285,7 @@
281285
<label class="md-nav__title" for="__drawer">
282286
<a href="." title="KKT89&#39;s Library" class="md-nav__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
283287

284-
<img src="img/kkt89.jfif" alt="logo">
288+
<img src="img/kkt89.jpg" alt="logo">
285289

286290
</a>
287291
KKT89's Library
@@ -475,14 +479,14 @@
475479

476480

477481

478-
<h1 id="library-files">📚 Library Files<a class="headerlink" href="#library-files" title="Permanent link">&para;</a></h1>
482+
<h1 id="library-files">Library Files<a class="headerlink" href="#library-files" title="Permanent link">&para;</a></h1>
479483
<h2 id="sample">sample<a class="headerlink" href="#sample" title="Permanent link">&para;</a></h2>
480484
<ul>
481-
<li><a href="library/sample/sample/"><code>sample.hpp</code></a></li>
485+
<li><a href="library/sample/sample/">sample.hpp</a></li>
482486
</ul>
483487
<h2 id="graph">Graph<a class="headerlink" href="#graph" title="Permanent link">&para;</a></h2>
484488
<ul>
485-
<li><a href="library/graph/bellman_ford/">Bellman Ford (負の有向閉路検出)</a></li>
489+
<li><a href="library/graph/bellman_ford/">Bellman Ford (負閉路検出)</a></li>
486490
</ul>
487491

488492

library/graph/bellman_ford/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
<link rel="icon" href="../../../assets/images/favicon.png">
14+
<link rel="icon" href="../../../img/kkt89.jpg">
1515
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
1616

1717

@@ -46,7 +46,11 @@
4646

4747
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
4848

49-
<link rel="stylesheet" href="../../../styles/logo.css">
49+
<link rel="stylesheet" href="../../../css/logo.css">
50+
51+
<link rel="stylesheet" href="../../../css/layout.css">
52+
53+
<link rel="stylesheet" href="../../../css/code.css">
5054

5155
<script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
5256

@@ -90,7 +94,7 @@
9094
<nav class="md-header__inner md-grid" aria-label="ヘッダー">
9195
<a href="../../.." title="KKT89&#39;s Library" class="md-header__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
9296

93-
<img src="../../../img/kkt89.jfif" alt="logo">
97+
<img src="../../../img/kkt89.jpg" alt="logo">
9498

9599
</a>
96100
<label class="md-header__button md-icon" for="__drawer">
@@ -277,7 +281,7 @@
277281
<label class="md-nav__title" for="__drawer">
278282
<a href="../../.." title="KKT89&#39;s Library" class="md-nav__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
279283

280-
<img src="../../../img/kkt89.jfif" alt="logo">
284+
<img src="../../../img/kkt89.jpg" alt="logo">
281285

282286
</a>
283287
KKT89's Library

library/sample/sample/index.html

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414

1515

16-
<link rel="icon" href="../../../assets/images/favicon.png">
16+
<link rel="icon" href="../../../img/kkt89.jpg">
1717
<meta name="generator" content="mkdocs-1.6.1, mkdocs-material-9.6.14">
1818

1919

@@ -48,7 +48,11 @@
4848

4949
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
5050

51-
<link rel="stylesheet" href="../../../styles/logo.css">
51+
<link rel="stylesheet" href="../../../css/logo.css">
52+
53+
<link rel="stylesheet" href="../../../css/layout.css">
54+
55+
<link rel="stylesheet" href="../../../css/code.css">
5256

5357
<script>__md_scope=new URL("../../..",location),__md_hash=e=>[...e].reduce(((e,_)=>(e<<5)-e+_.charCodeAt(0)),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
5458

@@ -92,7 +96,7 @@
9296
<nav class="md-header__inner md-grid" aria-label="ヘッダー">
9397
<a href="../../.." title="KKT89&#39;s Library" class="md-header__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
9498

95-
<img src="../../../img/kkt89.jfif" alt="logo">
99+
<img src="../../../img/kkt89.jpg" alt="logo">
96100

97101
</a>
98102
<label class="md-header__button md-icon" for="__drawer">
@@ -281,7 +285,7 @@
281285
<label class="md-nav__title" for="__drawer">
282286
<a href="../../.." title="KKT89&#39;s Library" class="md-nav__button md-logo" aria-label="KKT89's Library" data-md-component="logo">
283287

284-
<img src="../../../img/kkt89.jfif" alt="logo">
288+
<img src="../../../img/kkt89.jpg" alt="logo">
285289

286290
</a>
287291
KKT89's Library
@@ -387,6 +391,19 @@
387391

388392

389393

394+
<label class="md-nav__link md-nav__link--active" for="__toc">
395+
396+
397+
398+
<span class="md-ellipsis">
399+
sample
400+
401+
</span>
402+
403+
404+
<span class="md-nav__icon md-icon"></span>
405+
</label>
406+
390407
<a href="./" class="md-nav__link md-nav__link--active">
391408

392409

@@ -399,6 +416,34 @@
399416

400417
</a>
401418

419+
420+
421+
<nav class="md-nav md-nav--secondary" aria-label="目次">
422+
423+
424+
425+
426+
427+
428+
<label class="md-nav__title" for="__toc">
429+
<span class="md-nav__icon md-icon"></span>
430+
目次
431+
</label>
432+
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
433+
434+
<li class="md-nav__item">
435+
<a href="#_1" class="md-nav__link">
436+
<span class="md-ellipsis">
437+
テスト
438+
</span>
439+
</a>
440+
441+
</li>
442+
443+
</ul>
444+
445+
</nav>
446+
402447
</li>
403448

404449

@@ -436,6 +481,7 @@ <h1 id="sample-library-ab">Sample Library (a+b)<a class="headerlink" href="#samp
436481
\sum_{i=1}^{n} = n(n+1)/2
437482
$$
438483
あああ</p>
484+
<h3 id="_1">テスト<a class="headerlink" href="#_1" title="Permanent link">&para;</a></h3>
439485
<div class="admonition failure">
440486
<p class="admonition-title">Failure</p>
441487
<p>これは失敗です。</p>

search/search_index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"config":{"lang":["ja"],"separator":"[\\s\\-\u3000\u3001\u3002\uff0c\uff0e]+","pipeline":["stemmer"]},"docs":[{"location":"","title":"\ud83d\udcda Library Files","text":""},{"location":"#sample","title":"sample","text":"<ul> <li><code>sample.hpp</code></li> </ul>"},{"location":"#graph","title":"Graph","text":"<ul> <li>Bellman Ford (\u8ca0\u306e\u6709\u5411\u9589\u8def\u691c\u51fa)</li> </ul>"},{"location":"library/graph/bellman_ford/","title":"Bellman Ford (\u8ca0\u9589\u8def\u691c\u51fa)","text":""},{"location":"library/graph/bellman_ford/#reference","title":"Reference","text":"<ul> <li>ABC137-E:Coins Respawn ~\u8ca0\u9589\u8def\u691c\u51fa\u306b\u3064\u3044\u3066~ - \u601d\u8003\u306e\u5893\u5834</li> </ul>"},{"location":"library/graph/bellman_ford/#code","title":"Code","text":"<pre><code>#pragma once\n\ntemplate &lt;typename T&gt; struct BellmanFord {\n private:\n static constexpr T INF = numeric_limits&lt;T&gt;::max() / 2 - 1;\n\n struct Edge {\n int to;\n T cost;\n };\n\n int n;\n vector&lt;vector&lt;Edge&gt;&gt; G;\n vector&lt;T&gt; dist;\n\n public:\n explicit BellmanFord(int n) : n(n), G(n), dist(n, INF) {}\n\n void add_edge(int from, int to, T cost) { G[from].emplace_back(to, cost); }\n template &lt;class Iter&gt; void build(Iter first, Iter last) {\n dist.assign(n, INF);\n for (auto it = first; it != last; ++it) {\n dist[*it] = 0;\n }\n relax_edges();\n spread_neg_cycles();\n }\n void build(int s) { build(&amp;s, &amp;s + 1); }\n\n [[nodiscard]] bool reachable(int v) const { return dist[v] != INF; }\n [[nodiscard]] bool on_negative_cycle(int v) const { return dist[v] == -INF; }\n [[nodiscard]] bool valid(int v) const { return reachable(v) and !on_negative_cycle(v); }\n [[nodiscard]] T distance(int v) const { return dist[v]; }\n\n private:\n // \u30d9\u30eb\u30de\u30f3\u30d5\u30a9\u30fc\u30c9\n void relax_edges() {\n for (int i = 0; i &lt; n; ++i) {\n bool updated = false;\n for (int u = 0; u &lt; n; ++u) {\n if (dist[u] == INF) continue;\n for (auto [v, w] : G[u]) {\n if (dist[v] &gt; dist[u] + w) {\n dist[v] = dist[u] + w;\n if (i == n - 1 || dist[v] &lt; -INF) dist[v] = -INF;\n updated = true;\n }\n }\n }\n if (!updated) break;\n }\n }\n // \u8ca0\u9589\u8def\u3092BFS\u3067\u4f1d\u64ad\u3055\u305b\u308b\n void spread_neg_cycles() {\n queue&lt;int&gt; q;\n vector&lt;bool&gt; used(n, false);\n for (int i = 0; i &lt; n; ++i) {\n if (dist[i] == -INF) {\n used[i] = true;\n q.push(i);\n }\n }\n while (!q.empty()) {\n int u = q.front();\n q.pop();\n for (auto [v, w] : G[u]) {\n if (!used[v]) {\n used[v] = true;\n dist[v] = -INF;\n q.push(v);\n }\n }\n }\n }\n};\n</code></pre>"},{"location":"library/sample/sample/","title":"Sample Library (a+b)","text":"<p>\u30b5\u30f3\u30d7\u30eb\u6587\u7ae0\u3067\u3059\u3002\u6570\u5f0f\u3082\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\\(a+b\\) $$ \\sum_{i=1}^{n} = n(n+1)/2 $$ \u3042\u3042\u3042</p> <p>Failure</p> <p>\u3053\u308c\u306f\u5931\u6557\u3067\u3059\u3002</p> <p>Bug</p> <p>\u3053\u308c\u306f\u30d0\u30b0\u3067\u3059\u3002</p> <p>Summary</p> <p>\u3053\u308c\u306f\u6982\u8981\u3067\u3059\u3002</p> <p> \u30d3\u30eb\u30c9\u6210\u529f (\u30a2\u30a4\u30b3\u30f3\u3082\u4f7f\u3048\u307e\u3059)</p> <pre><code>#pragma once\n\n// sample.hpp\nint add(int a, int b){\n return a + b;\n}\n</code></pre>"}]}
1+
{"config":{"lang":["ja"],"separator":"[\\s\\-\u3000\u3001\u3002\uff0c\uff0e]+","pipeline":["stemmer"]},"docs":[{"location":"","title":"Library Files","text":""},{"location":"#sample","title":"sample","text":"<ul> <li>sample.hpp</li> </ul>"},{"location":"#graph","title":"Graph","text":"<ul> <li>Bellman Ford (\u8ca0\u9589\u8def\u691c\u51fa)</li> </ul>"},{"location":"library/graph/bellman_ford/","title":"Bellman Ford (\u8ca0\u9589\u8def\u691c\u51fa)","text":""},{"location":"library/graph/bellman_ford/#reference","title":"Reference","text":"<ul> <li>ABC137-E:Coins Respawn ~\u8ca0\u9589\u8def\u691c\u51fa\u306b\u3064\u3044\u3066~ - \u601d\u8003\u306e\u5893\u5834</li> </ul>"},{"location":"library/graph/bellman_ford/#code","title":"Code","text":"<pre><code>#pragma once\n\ntemplate &lt;typename T&gt; struct BellmanFord {\n private:\n static constexpr T INF = numeric_limits&lt;T&gt;::max() / 2 - 1;\n\n struct Edge {\n int to;\n T cost;\n };\n\n int n;\n vector&lt;vector&lt;Edge&gt;&gt; G;\n vector&lt;T&gt; dist;\n\n public:\n explicit BellmanFord(int n) : n(n), G(n), dist(n, INF) {}\n\n void add_edge(int from, int to, T cost) { G[from].emplace_back(to, cost); }\n template &lt;class Iter&gt; void build(Iter first, Iter last) {\n dist.assign(n, INF);\n for (auto it = first; it != last; ++it) {\n dist[*it] = 0;\n }\n relax_edges();\n spread_neg_cycles();\n }\n void build(int s) { build(&amp;s, &amp;s + 1); }\n\n [[nodiscard]] bool reachable(int v) const { return dist[v] != INF; }\n [[nodiscard]] bool on_negative_cycle(int v) const { return dist[v] == -INF; }\n [[nodiscard]] bool valid(int v) const { return reachable(v) and !on_negative_cycle(v); }\n [[nodiscard]] T distance(int v) const { return dist[v]; }\n\n private:\n // \u30d9\u30eb\u30de\u30f3\u30d5\u30a9\u30fc\u30c9\n void relax_edges() {\n for (int i = 0; i &lt; n; ++i) {\n bool updated = false;\n for (int u = 0; u &lt; n; ++u) {\n if (dist[u] == INF) continue;\n for (auto [v, w] : G[u]) {\n if (dist[v] &gt; dist[u] + w) {\n dist[v] = dist[u] + w;\n if (i == n - 1 || dist[v] &lt; -INF) dist[v] = -INF;\n updated = true;\n }\n }\n }\n if (!updated) break;\n }\n }\n // \u8ca0\u9589\u8def\u3092BFS\u3067\u4f1d\u64ad\u3055\u305b\u308b\n void spread_neg_cycles() {\n queue&lt;int&gt; q;\n vector&lt;bool&gt; used(n, false);\n for (int i = 0; i &lt; n; ++i) {\n if (dist[i] == -INF) {\n used[i] = true;\n q.push(i);\n }\n }\n while (!q.empty()) {\n int u = q.front();\n q.pop();\n for (auto [v, w] : G[u]) {\n if (!used[v]) {\n used[v] = true;\n dist[v] = -INF;\n q.push(v);\n }\n }\n }\n }\n};\n</code></pre>"},{"location":"library/sample/sample/","title":"Sample Library (a+b)","text":"<p>\u30b5\u30f3\u30d7\u30eb\u6587\u7ae0\u3067\u3059\u3002\u6570\u5f0f\u3082\u66f8\u3051\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\\(a+b\\) $$ \\sum_{i=1}^{n} = n(n+1)/2 $$ \u3042\u3042\u3042</p>"},{"location":"library/sample/sample/#_1","title":"\u30c6\u30b9\u30c8","text":"<p>Failure</p> <p>\u3053\u308c\u306f\u5931\u6557\u3067\u3059\u3002</p> <p>Bug</p> <p>\u3053\u308c\u306f\u30d0\u30b0\u3067\u3059\u3002</p> <p>Summary</p> <p>\u3053\u308c\u306f\u6982\u8981\u3067\u3059\u3002</p> <p> \u30d3\u30eb\u30c9\u6210\u529f (\u30a2\u30a4\u30b3\u30f3\u3082\u4f7f\u3048\u307e\u3059)</p> <pre><code>#pragma once\n\n// sample.hpp\nint add(int a, int b){\n return a + b;\n}\n</code></pre>"}]}

sitemap.xml.gz

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)