Skip to content

Commit 41839f8

Browse files
author
bigfish
committed
Site updated: YYYY-04-2025年4月25日 22:52:58
1 parent 20b5d7f commit 41839f8

File tree

5 files changed

+69
-33
lines changed

5 files changed

+69
-33
lines changed

2025/04/25/hello-world/index.html

Lines changed: 32 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<html lang="zh">
44
<head>
55
<meta charset="utf-8" />
6-
<title>Hello World | Bigfish</title>
6+
<title> | Bigfish</title>
77
<meta name="author" content="John Doe" />
88
<meta name="description" content="" />
99
<meta name="keywords" content="" />
@@ -156,7 +156,7 @@ <h2>LOADING</h2>
156156
<div id="main" :class="loading ? 'into-enter-from': 'into-enter-active'">
157157
<div class="article">
158158
<div>
159-
<h1>Hello World</h1>
159+
<h1></h1>
160160
</div>
161161
<div class="info">
162162
<span class="date">
@@ -170,19 +170,37 @@ <h1>Hello World</h1>
170170
</div>
171171

172172
<div class="content" v-pre>
173-
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
174-
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><pre><code class="language-bash">$ hexo new &quot;My New Post&quot;
173+
<h3 id="测试文章"><a href="#测试文章" class="headerlink" title="测试文章"></a>测试文章</h3><pre><code class="language-java">import java.util.Arrays;
174+
175+
//TIP To &lt;b&gt;Run&lt;/b&gt; code, press &lt;shortcut actionId=&quot;Run&quot;/&gt; or
176+
// click the &lt;icon src=&quot;AllIcons.Actions.Execute&quot;/&gt; icon in the gutter.
177+
public class Main &#123;
178+
public static void main(String[] args) &#123;
179+
int numberOfRows = 9;
180+
int[][] yangHuiTriangle = new int[numberOfRows][];
181+
yangHuiTriangle[0] = new int[1];
182+
yangHuiTriangle[0][0] = 1;
183+
184+
for (int i = 1; i &lt; numberOfRows; i++) &#123;
185+
yangHuiTriangle[i] = new int[i + 1]; // 初始化当前行
186+
for (int j = 0; j &lt; i; j++) &#123;
187+
if (j == 0 || j == i - 1) &#123;
188+
yangHuiTriangle[i][j] = 1;
189+
continue;
190+
&#125;
191+
yangHuiTriangle[i][j] = yangHuiTriangle[i - 1][j - 1] + yangHuiTriangle[i - 1][j];
192+
&#125;
193+
&#125;
194+
for (int[] row : yangHuiTriangle) &#123;
195+
for (int element : row) &#123;
196+
if (element == 0) continue;
197+
System.out.print(element + &quot; &quot;);
198+
&#125;
199+
System.out.println();
200+
&#125;
201+
&#125;
202+
&#125;
175203
</code></pre>
176-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
177-
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><pre><code class="language-bash">$ hexo server
178-
</code></pre>
179-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
180-
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><pre><code class="language-bash">$ hexo generate
181-
</code></pre>
182-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
183-
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><pre><code class="language-bash">$ hexo deploy
184-
</code></pre>
185-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
186204

187205
</div>
188206

archives/2025/04/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ <h2>LOADING</h2>
155155

156156
<div id="timeline-wrap" ref="timeline">
157157

158-
<div class="timeline" data-title="helloworld">
158+
<div class="timeline" data-title="">
159159
<div class="timeline-tail"></div>
160160
<div class="timeline-content">
161161
<div class="item-time">2025/4/25</div>
162162
<a href="/2025/04/25/hello-world/">
163-
<h3>Hello World</h3>
163+
<h3></h3>
164164
</a>
165165
<div class="info">
166166

archives/2025/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ <h2>LOADING</h2>
155155

156156
<div id="timeline-wrap" ref="timeline">
157157

158-
<div class="timeline" data-title="helloworld">
158+
<div class="timeline" data-title="">
159159
<div class="timeline-tail"></div>
160160
<div class="timeline-content">
161161
<div class="item-time">2025/4/25</div>
162162
<a href="/2025/04/25/hello-world/">
163-
<h3>Hello World</h3>
163+
<h3></h3>
164164
</a>
165165
<div class="info">
166166

archives/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,12 +155,12 @@ <h2>LOADING</h2>
155155

156156
<div id="timeline-wrap" ref="timeline">
157157

158-
<div class="timeline" data-title="helloworld">
158+
<div class="timeline" data-title="">
159159
<div class="timeline-tail"></div>
160160
<div class="timeline-content">
161161
<div class="item-time">2025/4/25</div>
162162
<a href="/2025/04/25/hello-world/">
163-
<h3>Hello World</h3>
163+
<h3></h3>
164164
</a>
165165
<div class="info">
166166

index.html

Lines changed: 31 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ <h5></h5>
182182

183183
<div class="post">
184184
<a href="/2025/04/25/hello-world/">
185-
<h2 class="post-title">Hello World</h2>
185+
<h2 class="post-title"></h2>
186186
</a>
187187
<div class="category-and-date">
188188

@@ -198,19 +198,37 @@ <h2 class="post-title">Hello World</h2>
198198
<div class="description">
199199
<div class="content" v-pre>
200200

201-
<p>Welcome to <a target="_blank" rel="noopener" href="https://hexo.io/">Hexo</a>! This is your very first post. Check <a target="_blank" rel="noopener" href="https://hexo.io/docs/">documentation</a> for more info. If you get any problems when using Hexo, you can find the answer in <a target="_blank" rel="noopener" href="https://hexo.io/docs/troubleshooting.html">troubleshooting</a> or you can ask me on <a target="_blank" rel="noopener" href="https://github.com/hexojs/hexo/issues">GitHub</a>.</p>
202-
<h2 id="Quick-Start"><a href="#Quick-Start" class="headerlink" title="Quick Start"></a>Quick Start</h2><h3 id="Create-a-new-post"><a href="#Create-a-new-post" class="headerlink" title="Create a new post"></a>Create a new post</h3><pre><code class="language-bash">$ hexo new &quot;My New Post&quot;
203-
</code></pre>
204-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/writing.html">Writing</a></p>
205-
<h3 id="Run-server"><a href="#Run-server" class="headerlink" title="Run server"></a>Run server</h3><pre><code class="language-bash">$ hexo server
206-
</code></pre>
207-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/server.html">Server</a></p>
208-
<h3 id="Generate-static-files"><a href="#Generate-static-files" class="headerlink" title="Generate static files"></a>Generate static files</h3><pre><code class="language-bash">$ hexo generate
209-
</code></pre>
210-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/generating.html">Generating</a></p>
211-
<h3 id="Deploy-to-remote-sites"><a href="#Deploy-to-remote-sites" class="headerlink" title="Deploy to remote sites"></a>Deploy to remote sites</h3><pre><code class="language-bash">$ hexo deploy
201+
<h3 id="测试文章"><a href="#测试文章" class="headerlink" title="测试文章"></a>测试文章</h3><pre><code class="language-java">import java.util.Arrays;
202+
203+
//TIP To &lt;b&gt;Run&lt;/b&gt; code, press &lt;shortcut actionId=&quot;Run&quot;/&gt; or
204+
// click the &lt;icon src=&quot;AllIcons.Actions.Execute&quot;/&gt; icon in the gutter.
205+
public class Main &#123;
206+
public static void main(String[] args) &#123;
207+
int numberOfRows = 9;
208+
int[][] yangHuiTriangle = new int[numberOfRows][];
209+
yangHuiTriangle[0] = new int[1];
210+
yangHuiTriangle[0][0] = 1;
211+
212+
for (int i = 1; i &lt; numberOfRows; i++) &#123;
213+
yangHuiTriangle[i] = new int[i + 1]; // 初始化当前行
214+
for (int j = 0; j &lt; i; j++) &#123;
215+
if (j == 0 || j == i - 1) &#123;
216+
yangHuiTriangle[i][j] = 1;
217+
continue;
218+
&#125;
219+
yangHuiTriangle[i][j] = yangHuiTriangle[i - 1][j - 1] + yangHuiTriangle[i - 1][j];
220+
&#125;
221+
&#125;
222+
for (int[] row : yangHuiTriangle) &#123;
223+
for (int element : row) &#123;
224+
if (element == 0) continue;
225+
System.out.print(element + &quot; &quot;);
226+
&#125;
227+
System.out.println();
228+
&#125;
229+
&#125;
230+
&#125;
212231
</code></pre>
213-
<p>More info: <a target="_blank" rel="noopener" href="https://hexo.io/docs/one-command-deployment.html">Deployment</a></p>
214232

215233

216234
</div>

0 commit comments

Comments
 (0)