# 1.2 答題方式與技巧

[Code Judger](http://www.codejudger.com) 會以數量不定的測試資料驗證您所提交的程式碼，以判斷您的程式是否完全正確符合題目的要求，若通過所有的測試資料的驗證，則 [Code Judger](http://www.codejudger.com) 會認定您的程式碼為【答案正確】，否則將會呈現不同原因的結果，如【答案錯誤】、【運行時發生錯誤】等。

* 【答案正確】：代表您的程式有跑出結果，也符合測試資料的驗證。
* 【答案錯誤】：代表您的程式有跑出結果，但沒有通過測試資料的驗證。
* 【運行時發生錯誤】：泛指一切造成無法完成執行的錯誤，例如：語法錯誤出現的紅色錯誤。
* 【編譯錯誤】：泛指編譯過程中發生錯誤，直譯語言無此項。
* 【超過執行時間】：泛指執行時間超過測資之時間設定。

## 答題注意事項—所有題目

1. 輸入與輸出的格式必須完全相同，每一行字、空白都要一樣。全型、半型字元、英文字母大小寫、小數點的位數是否與題目的要求相同。
2. 特別注意輸出後有無空白。
3. 請提交程式碼檔案，而非執行檔或執行的結果。請注意提交的檔案是否適用該題目 (請檢查有無交錯題目) 。
4. 每一題至少有 1 組評分測試資料顯示題目中，且至少有 1 組隱藏的評分測試資料。

## 答題注意事項-檔案讀寫

1. 題目需要進行檔案讀寫時，在本機撰寫程式碼自行測試時，則請依您電腦中程式的啟動位置，撰寫程式所開啟或寫入檔案的路徑。在提交評分時，程式所開啟或寫入的檔案，必須與程式碼檔在同一層，例：

   ```
   file = open("write.txt")
   ```

## 答題注意事項-以Java程式語言答題

1. 程式中的 class name **必須以 JP** 開頭命名。


---

# 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/chapter01/aboutanswers.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.
