[TOC] # OJ312 使用教學 ## OJ312 介紹 ## 註冊帳號 :::spoiler 1. 前往 [連結](https://tobiichi3227.eu.org:312/oj/sign/) ![image](https://hackmd.io/_uploads/r1_JsOGl1e.png) 2. 點選**註冊** ![image](https://hackmd.io/_uploads/ByZZjdzl1x.png) 3. 往下拉並選取**是** ![image](https://hackmd.io/_uploads/SkwUiOflye.png) 4. 輸入帳號密碼 ![image](https://hackmd.io/_uploads/HkB_sOGlJl.png) ::: ## 登入 :::spoiler 1. 前往 [連結](https://tobiichi3227.eu.org:312/oj/sign/) 2. 輸入帳號密碼 ::: ## 查看題目 :::spoiler 1. 前往 [ProblemSet](https://tobiichi3227.eu.org:312/oj/proset/) ![image](https://hackmd.io/_uploads/B12CsuMe1x.png) 2. 點擊任意題目 ![image](https://hackmd.io/_uploads/rkFMhuzgkg.png) ::: ### 題單 :::spoiler 1. 前往 [ProblemSet](https://tobiichi3227.eu.org:312/oj/proset/) ![image](https://hackmd.io/_uploads/B12CsuMe1x.png) 2. 點擊 **Switch** ![image](https://hackmd.io/_uploads/S1MZJKMekg.png) 3. 點擊 **Goto** 前往題單 ![image](https://hackmd.io/_uploads/ryAXyKzlyg.png) 4. 點擊 **Info** 查看題單說明 ![image](https://hackmd.io/_uploads/rysIkYMekl.png) ![image](https://hackmd.io/_uploads/SkEhEYzx1l.png) ::: ## 上傳程式碼 :::spoiler 1. 前往任意題目 ![image](https://hackmd.io/_uploads/HJTwn_Mx1x.png) 2. 點擊 **Submit** ![image](https://hackmd.io/_uploads/SyDFn_zekg.png) 3. 複製貼上程式碼 ![image](https://hackmd.io/_uploads/B1MAndfxyg.png) 4. 選取使用語言 (預設為 C++) ![image](https://hackmd.io/_uploads/HkjJa_Ggyx.png) 5. 點擊 **Submit** ![image](https://hackmd.io/_uploads/H1ibT_ze1l.png) 6. 等待結果 ![image](https://hackmd.io/_uploads/rywKTOGgke.png) 7. 結果出爐 ![image](https://hackmd.io/_uploads/rJfhpuGeJl.png) ::: | Yukilization State | Normal State | Description | | ------------------ | ------------ | ----------- | | | | | | | 有希認可您 | AC (Answer Correct) | 輸出符合題目要求,且記憶體與時間使用在題目範圍內 | | 有希討厭您 | WA (Wrong Answer) | 輸出不符合題目要求,且記憶體與時間使用在題目範圍內 | | 有希覺得您燒機了 | TLE (Time Limit Exceeded) | 使用時間超過題目範圍 | | 有希覺得您腦容量爆炸 | MLE (Memory Limit Exceeded) | 記憶體使用量超過題目範圍 | | 有希覺得您怪怪的 | RE (Runtime Error) | 程式退出狀態不為 0 (具體可以看下方的範例) | | 有希有希用訊號強制停止你 | RESIG (Runtime Error Killed By Signal) | 建議參考 [Info](https://tobiichi3227.eu.org:312/oj/info/) | 不會寫希語言嗎? | CE (Compilation Error) | 編譯器無法編譯你的程式 | RE 範例程式碼 ```cpp= int main() { return -1; } ``` RESIG 範例程式碼 ```cpp= int main() { int arr[10]; arr[100000] += 1; arr[999] -= 1; return 0; } ``` ## 其他功能 ### 簡單積分版 ### 詢問問題或問題回報 ### 排名