# 2.1.1 建立新題目

在題目管理中點選［建立新題目］按鈕，即可進入建立題目的頁面。

![題目管理](/files/DZ00XIhtdvq6sfnwpbBH)

| 項目        | 說明                                                                                         |
| --------- | ------------------------------------------------------------------------------------------ |
| 題目名稱(必填)  | 題組、分析等功能皆使用此名稱                                                                             |
| 題目標籤      | 自訂題目標籤                                                                                     |
| 題目難度      | 1\~5顆星                                                                                     |
| 題目說明(必填)  | 描述題目的要求 編寫方式為Markdown語法                                                                    |
| 解題思路      | 告知學生此題的解題邏輯及方法，此欄填寫的內容，會出現在題目練習之中， 但不會出現在考試之中 編寫方式為Markdown語法                              |
| 待編修檔      | <p>可於此題提供部分程式碼內容或相關資料給學生<br><strong>最多可上傳三個檔案，且每個檔案不得超過10KB</strong></p>                   |
| 新增一筆測驗資料  | <p>新增一筆測資<br>一份題目，通常會需要多筆的測資，以驗證學生作答的程式是符合題目的要求， 例如：判斷質數，假設題目的設計要求判斷0, 質數, 合數，則測資就需要3筆</p> |
| 測驗資料1(必填) | 為評核題目使用的參數， 每一筆測資都需要增加輸入、輸出、執行秒數及記憶體使用(KB)                                                 |
| 輸入        | <p>要驗證程式的輸入資料<br><strong>字數不得超過2萬字</strong></p>                                            |
| 輸出        | <p>要驗證程式的輸出資料<br><strong>字數不得超過2萬字</strong></p>                                            |
| 執行秒數      | 預設為10秒                                                                                     |
| 記憶體使用(KB) | 預設為10240 KB                                                                                |

![建立新題目](/files/RO0A1lkPmx4L5qnZa4an)

### 建立新題目 範例

［範例］

此題要求相加使用者輸入的二個整數。 故各筆測資的輸入輸出如下：

|  筆數 |  輸入  |  輸出 |
| :-: | :--: | :-: |
|  1  |  1 2 |  3  |
|  2  | 0 -3 |  -3 |
|  3  |  2 0 |  2  |
|  4  |  0 0 |  0  |
|  5  | -9 2 |  -7 |

![範例](/files/Fbf2n7DvFQ6dpvfvSbKO)

## 測試新題目

當題目設計完成，按下［建立新題目］鈕後，系統會告知新題目已建立，並可進行檢試。

![新題目已建立](/files/d7oDn0713DePz22LOuYq)

檢視的畫面如下，命題者可立即進行題目檢測

![檢測](/files/6xvolqt9vvWFquWnzP30)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://csfrd.gitbook.io/cjmanualv2/chapter02/problemspanel/new.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
