Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 39 additions & 6 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
]
},
]
},
{
Expand All @@ -128,16 +138,31 @@ 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' },
]
}
]
},
{
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/' },
Expand All @@ -149,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' },
],
},
],
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-4/practice/do-not-fail.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# DO NOT FAIL
# 4-A2. DO NOT FAIL

入力された複数の点数を受け取って、59点以下なら`Failed`と出力しよう。また、`-1`が入力されたら`Passed!`と出力して終了しよう。

Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-4/practice/fibonatti.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 4-xx. Fibonatti Number
# 4-A1. Fibonatti Number

正の整数$N$を受け取り、フィボナッチ数列の$N$番目を出力しよう。

Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-4/practice/fizz-buzz-2d.md
Original file line number Diff line number Diff line change
@@ -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)$ を出力しよう。

Expand Down
10 changes: 5 additions & 5 deletions docs/text/chapter-4/practice/index.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# 練習問題 chapter-4
# 練習問題 - Chapter 4

## 練習問題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)
2 changes: 1 addition & 1 deletion docs/text/chapter-4/practice/lower-or-upper.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# lower or UPPER
# 4-A3. lower or UPPER

アルファベット1文字が渡されたとき、それが大文字なら"UPPERCASE"、小文字なら"lowercase"と出力しよう。

Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-5/practice/divide-each-difficulty.md
Original file line number Diff line number Diff line change
@@ -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);`に分離してみよう。

Expand Down
4 changes: 2 additions & 2 deletions docs/text/chapter-5/practice/index.md
Original file line number Diff line number Diff line change
@@ -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)
2 changes: 1 addition & 1 deletion docs/text/chapter-5/practice/plus-equal.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Operator+=
# 5-A2. Operator+=

`int`型の`a`と`b`について`a`に`b`を足す操作である

Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-6/practice/index.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# 練習問題 - Chapter 6

- [Order](./order)
- [6-A1. Order](./order)
2 changes: 1 addition & 1 deletion docs/text/chapter-6/practice/order.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 6-1. Order
# 6-A1. Order

以下のような商品の一覧が与えられる。

Expand Down
2 changes: 1 addition & 1 deletion docs/text/chapter-8/practice/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 練習問題 - Chapter 3
# 練習問題 - Chapter 8

- [Capsulated Zer0-Star](capsulate-user)
- [Exponentation](exponentation)