From b8a1cea63c2403f723c8f82f4ddab6b429802a4c Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 15:31:01 +0900 Subject: [PATCH 1/9] =?UTF-8?q?=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=AE?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F=E3=82=92=E3=81=9D=E3=82=8D=E3=81=88=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/text/chapter-4/practice/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/text/chapter-4/practice/index.md b/docs/text/chapter-4/practice/index.md index 42b8b3f9..f194fcea 100644 --- a/docs/text/chapter-4/practice/index.md +++ b/docs/text/chapter-4/practice/index.md @@ -1,4 +1,4 @@ -# 練習問題 chapter-4 +# 練習問題 - Chapter 4 ## 練習問題A From fe569298199b929fac7e6c96cb6f550b15417fd8 Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:03:14 +0900 Subject: [PATCH 2/9] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=81=AE=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=AB=E7=95=AA=E5=8F=B7?= =?UTF-8?q?=E3=82=92=E6=8C=AF=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/text/chapter-4/practice/do-not-fail.md | 2 +- docs/text/chapter-4/practice/fibonatti.md | 2 +- docs/text/chapter-4/practice/fizz-buzz-2d.md | 2 +- docs/text/chapter-4/practice/index.md | 8 ++++---- docs/text/chapter-4/practice/lower-or-upper.md | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/text/chapter-4/practice/do-not-fail.md b/docs/text/chapter-4/practice/do-not-fail.md index 734ee482..b73f4e8f 100644 --- a/docs/text/chapter-4/practice/do-not-fail.md +++ b/docs/text/chapter-4/practice/do-not-fail.md @@ -1,4 +1,4 @@ -# DO NOT FAIL +# 4-A2. DO NOT FAIL 入力された複数の点数を受け取って、59点以下なら`Failed`と出力しよう。また、`-1`が入力されたら`Passed!`と出力して終了しよう。 diff --git a/docs/text/chapter-4/practice/fibonatti.md b/docs/text/chapter-4/practice/fibonatti.md index e0031964..7cd96255 100644 --- a/docs/text/chapter-4/practice/fibonatti.md +++ b/docs/text/chapter-4/practice/fibonatti.md @@ -1,4 +1,4 @@ -# 4-xx. Fibonatti Number +# 4-A1. Fibonatti Number 正の整数$N$を受け取り、フィボナッチ数列の$N$番目を出力しよう。 diff --git a/docs/text/chapter-4/practice/fizz-buzz-2d.md b/docs/text/chapter-4/practice/fizz-buzz-2d.md index 549c5de4..2a4e54f5 100644 --- a/docs/text/chapter-4/practice/fizz-buzz-2d.md +++ b/docs/text/chapter-4/practice/fizz-buzz-2d.md @@ -1,4 +1,4 @@ -# fizz-buzz 2D +# 4-B1. fizz-buzz 2D 整数 $H, W$ が渡されるので、$H\times W$ の二次元配列 $a_{i,j}\ (1\leq i\leq H, 1\leq j\leq W)$ を出力しよう。 diff --git a/docs/text/chapter-4/practice/index.md b/docs/text/chapter-4/practice/index.md index f194fcea..6f6dc0f2 100644 --- a/docs/text/chapter-4/practice/index.md +++ b/docs/text/chapter-4/practice/index.md @@ -2,10 +2,10 @@ ## 練習問題A -- [Fibonatti](fibonatti) -- [DO NOT FAIL](do-not-fail) -- [lower or Upper](lower-or-upper) +- [4-A1. Fibonatti](fibonatti) +- [4-A2. DO NOT FAIL](do-not-fail) +- [4-A3. lower or UPPER](lower-or-upper) ## 練習問題B -- [Fizz-Buzz 2D](fizz-buzz-2d) +- [4-B1. Fizz-Buzz 2D](fizz-buzz-2d) diff --git a/docs/text/chapter-4/practice/lower-or-upper.md b/docs/text/chapter-4/practice/lower-or-upper.md index c19a103f..f5230466 100644 --- a/docs/text/chapter-4/practice/lower-or-upper.md +++ b/docs/text/chapter-4/practice/lower-or-upper.md @@ -1,4 +1,4 @@ -# lower or UPPER +# 4-A3. lower or UPPER アルファベット1文字が渡されたとき、それが大文字なら"UPPERCASE"、小文字なら"lowercase"と出力しよう。 From 33c98ba479edd1c109b7a81df6fe6adc215c6abc Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:04:31 +0900 Subject: [PATCH 3/9] =?UTF-8?q?4=E7=AB=A0=E3=81=AE=E7=B7=B4=E7=BF=92?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=81=AEitems=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 338691e8..beba9b53 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -117,7 +117,17 @@ export default withMermaid({ { text: '配列', link: '/text/chapter-4/array' }, { text: '文字列 ②', link: '/text/chapter-4/string' }, { text: 'for ②', link: '/text/chapter-4/for-advanced' }, - { text: '練習問題', link: '/text/chapter-4/practice/' }, + { + text: '練習問題', + link: '/text/chapter-4/practice/' , + collapsed: true, + items: [ + { text: '4-A1. Fibonatti', link: '/text/chapter-4/practice/fibonatti' }, + { text: '4-A2. DO NOT FAIL', link: '/text/chapter-4/practice/do-not-fail' }, + { text: '4-A3. lower or UPPER', link: '/text/chapter-4/practice/lower-or-upper' }, + { text: '4-B1. Fizz-Buzz 2D', link: '/text/chapter-4/practice/fizz-buzz-2d' }, + ] + }, ] }, { From 3ed3f2b7b9e542d1a39955d224a11fa57aa0d08a Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:07:44 +0900 Subject: [PATCH 4/9] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=81=AE=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=AB=E7=95=AA=E5=8F=B7?= =?UTF-8?q?=E3=82=92=E6=8C=AF=E3=82=8B=20(chapter-5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/text/chapter-5/practice/divide-each-difficulty.md | 2 +- docs/text/chapter-5/practice/index.md | 4 ++-- docs/text/chapter-5/practice/plus-equal.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/text/chapter-5/practice/divide-each-difficulty.md b/docs/text/chapter-5/practice/divide-each-difficulty.md index 24a255b1..03497f59 100644 --- a/docs/text/chapter-5/practice/divide-each-difficulty.md +++ b/docs/text/chapter-5/practice/divide-each-difficulty.md @@ -1,4 +1,4 @@ -# Divide each difficulty +# 5-A1. Divide each difficulty 以下の$n \leq 7$を受け取って$n \times n$の行列$a_{i,j}=Fibonatti_{ij}$を出力するプログラムの、フィボナッチ数列の解を求める部分を別の関数`int fibonatti(int index);`に分離してみよう。 diff --git a/docs/text/chapter-5/practice/index.md b/docs/text/chapter-5/practice/index.md index d06ac402..fea9df55 100644 --- a/docs/text/chapter-5/practice/index.md +++ b/docs/text/chapter-5/practice/index.md @@ -1,4 +1,4 @@ # 練習問題 - Chapter 5 -- [Divide each difficulty](divide-each-difficulty) -- [Operator+=](plus-equal) +- [5-A1. Divide each difficulty](divide-each-difficulty) +- [5-A2. Operator+=](plus-equal) diff --git a/docs/text/chapter-5/practice/plus-equal.md b/docs/text/chapter-5/practice/plus-equal.md index ea1282b4..8d3934ae 100644 --- a/docs/text/chapter-5/practice/plus-equal.md +++ b/docs/text/chapter-5/practice/plus-equal.md @@ -1,4 +1,4 @@ -# Operator+= +# 5-A2. Operator+= `int`型の`a`と`b`について`a`に`b`を足す操作である From e4b86ebefeae772b7951b3bdb3908d6917b4487d Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:10:46 +0900 Subject: [PATCH 5/9] =?UTF-8?q?5=E7=AB=A0=E3=81=AE=E7=B7=B4=E7=BF=92?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=81=AEitems=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index beba9b53..790d1de5 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -138,7 +138,15 @@ export default withMermaid({ { text: '引数', link: '/text/chapter-5/argument' }, { text: '返り値', link: '/text/chapter-5/return-value' }, { text: '参照渡し', link: '/text/chapter-5/call-by-ref' }, - {text: '練習問題', link: '/text/chapter-5/practice/'} + { + text: '練習問題', + link: '/text/chapter-5/practice/', + collapsed: true, + items: [ + { text: '5-A1. Divide each difficulty', link: '/text/chapter-5/practice/divide-each-difficulty' }, + { text: '5-A2. Operator+=', link: '/text/chapter-5/practice/plus-equal' }, + ] + } ] }, { From b0bd755fcd98797608a4062b918db778d4e6b8f3 Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:12:25 +0900 Subject: [PATCH 6/9] =?UTF-8?q?=E7=B7=B4=E7=BF=92=E5=95=8F=E9=A1=8C?= =?UTF-8?q?=E3=81=AE=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=AB=E7=95=AA=E5=8F=B7?= =?UTF-8?q?=E3=82=92=E6=8C=AF=E3=82=8B=20(chapter-6)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/text/chapter-6/practice/index.md | 2 +- docs/text/chapter-6/practice/order.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/text/chapter-6/practice/index.md b/docs/text/chapter-6/practice/index.md index 70e92fb2..cfc9ca1d 100644 --- a/docs/text/chapter-6/practice/index.md +++ b/docs/text/chapter-6/practice/index.md @@ -1,3 +1,3 @@ # 練習問題 - Chapter 6 -- [Order](./order) \ No newline at end of file +- [6-A1. Order](./order) \ No newline at end of file diff --git a/docs/text/chapter-6/practice/order.md b/docs/text/chapter-6/practice/order.md index 436a762c..6cc3076a 100644 --- a/docs/text/chapter-6/practice/order.md +++ b/docs/text/chapter-6/practice/order.md @@ -1,4 +1,4 @@ -# 6-1. Order +# 6-A1. Order 以下のような商品の一覧が与えられる。 From fd5ad92f867a4198bbd4041ae37110bdf9a32946 Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:14:26 +0900 Subject: [PATCH 7/9] =?UTF-8?q?6=E7=AB=A0=E3=81=AE=E7=B7=B4=E7=BF=92?= =?UTF-8?q?=E5=95=8F=E9=A1=8C=E3=81=AEitems=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vitepress/config.ts | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 790d1de5..90954f04 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -153,9 +153,16 @@ export default withMermaid({ text: 'VI. コードの簡易化② - Struct', link: '/text/chapter-6/', items: [ - {text: '構造体', link: '/text/chapter-6/struct'}, - {text: 'メソッド', link: '/text/chapter-6/method'}, - {text: '練習問題', link: '/text/chapter-6/practice/'}, + { text: '構造体', link: '/text/chapter-6/struct' }, + { text: 'メソッド', link: '/text/chapter-6/method' }, + { + text: '練習問題', + link: '/text/chapter-6/practice/', + collapsed: true, + items: [ + { text: '6-A1. Order', link: '/text/chapter-6/practice/order' }, + ] + }, ] }, { text: 'VII. おわりに・おまけ', link: '/text/chapter-7/' }, From bc60709d93483c4291cce7282d1b62971615e186 Mon Sep 17 00:00:00 2001 From: howard127 Date: Thu, 8 May 2025 16:15:06 +0900 Subject: [PATCH 8/9] typo --- docs/text/chapter-8/practice/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/text/chapter-8/practice/index.md b/docs/text/chapter-8/practice/index.md index c925c125..218be4d5 100644 --- a/docs/text/chapter-8/practice/index.md +++ b/docs/text/chapter-8/practice/index.md @@ -1,4 +1,4 @@ -# 練習問題 - Chapter 3 +# 練習問題 - Chapter 8 - [Capsulated Zer0-Star](capsulate-user) - [Exponentation](exponentation) \ No newline at end of file From 6524475e864f9aa67e993101190f9f9decdf4b63 Mon Sep 17 00:00:00 2001 From: Ryugo Takemura <18237819+Takeno-hito@users.noreply.github.com> Date: Thu, 8 May 2025 16:29:14 +0900 Subject: [PATCH 9/9] Update config.ts --- docs/.vitepress/config.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index 90954f04..2f0f34ae 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -174,7 +174,15 @@ export default withMermaid({ { text: '再帰関数', link: '/text/chapter-8/recursive-function' }, { text: '実行時間', link: '/text/chapter-8/exec-time' }, { text: 'カプセル化', link: '/text/chapter-8/capsule' }, - { text: '練習問題', link: '/text/chapter-8/practice/' }, + { + text: '練習問題', + link: '/text/chapter-8/practice/', + collapsed: true, + items: [ + { text: 'Capsulated Zer0-Star', link: '/text/chapter-8/practice/capsulate-user' }, + { text: 'Exponentation', link: '/text/chapter-8/practice/exponentation' }, + ], + }, ], }, {