[TOC] # TOJ 使用教學 ## 註冊帳號 :::spoiler 1. 搜索 TOJ ![image](https://hackmd.io/_uploads/BJ497e14ge.png) 2. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/rku27ekNee.png) 3. 點擊**Reg | Log** ![image](https://hackmd.io/_uploads/ByApXekVel.png) 4. 點擊**註冊** ![image](https://hackmd.io/_uploads/SJaAXx14gl.png) 5. 往下拉並點擊**是** ![image](https://hackmd.io/_uploads/HkckSeJNel.png) 6. 輸入帳號密碼 ![image](https://hackmd.io/_uploads/HyBcNeJNee.png) 7. 點擊**註冊** ![image](https://hackmd.io/_uploads/HJ5iNgJEgg.png) ::: ### 手機版 :::spoiler 1. 搜索 TOJ ![image](https://hackmd.io/_uploads/ryGCdaGExe.png) 2. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/HJikYazNxl.png) 3. 點擊選單 ![image](https://hackmd.io/_uploads/r1hgFpfVll.png) 4. 點擊**Reg | Log** ![image](https://hackmd.io/_uploads/B1zMYTzVxx.png) 5. 往下滑點擊**註冊** ![image](https://hackmd.io/_uploads/HkVSYTGEel.png) 6. 點擊**是** ![image](https://hackmd.io/_uploads/ryJFt6GVge.png) 7. 往下滑輸入帳號密碼 ![upload_56e3bd59b2d60c59a435d09ee77841ab](https://hackmd.io/_uploads/HkIta6G4gg.png) 8. 點擊**註冊** ![image](https://hackmd.io/_uploads/H15nFpMEge.png) ::: ## 登入 :::spoiler 1. 搜索 TOJ ![image](https://hackmd.io/_uploads/BJ497e14ge.png) 2. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/rku27ekNee.png) 3. 點擊**Reg | Log** ![image](https://hackmd.io/_uploads/ByApXekVel.png) 4. 輸入帳號密碼 ![image](https://hackmd.io/_uploads/HksBSlyVex.png) ::: ### 手機版 :::spoiler 1. 搜索 TOJ ![image](https://hackmd.io/_uploads/ryGCdaGExe.png) 2. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/HJikYazNxl.png) 3. 點擊選單 ![image](https://hackmd.io/_uploads/r1hgFpfVll.png) 4. 點擊**Reg | Log** ![image](https://hackmd.io/_uploads/B1zMYTzVxx.png) 5. 往下滑輸入帳號密碼並點擊**登入** ![image](https://hackmd.io/_uploads/r1-7qpzEle.png) ::: ## 查看自己的 TOJ ID :::spoiler 1. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/rku27ekNee.png) 2. 先登入帳號 3. 點擊自己的帳號 (Leave 旁邊那個) ![image](https://hackmd.io/_uploads/B1x_8gk4xe.png) 2. https://toj.tfcis.org/oj/acct/ 後面那個數字就是 TOJ ID ![image](https://hackmd.io/_uploads/HkRO8gkNlx.png) ::: ### 手機版 :::spoiler 1. 搜索 TOJ ![image](https://hackmd.io/_uploads/ryGCdaGExe.png) 2. 前往 [TOJ](https://toj.tfcis.org/oj/) ![image](https://hackmd.io/_uploads/HJikYazNxl.png) 3. 先登入帳號 4. 點擊選單 ![image](https://hackmd.io/_uploads/r1hgFpfVll.png) 5. 點擊自己的帳號 (Leave 下面那個) ![image](https://hackmd.io/_uploads/HyYt5aGElx.png) 6. 點擊網址列 ![image](https://hackmd.io/_uploads/By9ocTMVxx.png) 7. https://toj.tfcis.org/oj/acct/ 後面那個數字就是 TOJ ID ![image](https://hackmd.io/_uploads/ByHp56fVxx.png) ::: ## 查看題目 :::spoiler 1. 前往 [ProblemSet](https://toj.tfcis.org/oj/proset/) ![image](https://hackmd.io/_uploads/HkkuSl1Vlx.png) 2. 點擊任意題目 ![image](https://hackmd.io/_uploads/S1h1Lg1Nlx.png) ::: ### 手機版 :::spoiler 1. 點擊選單 ![image](https://hackmd.io/_uploads/r1hgFpfVll.png) 2. 前往 [ProblemSet](https://toj.tfcis.org/oj/proset/) ![image](https://hackmd.io/_uploads/ByTzoaMNlg.png) 3. 往下滑點擊任意題目 ![image](https://hackmd.io/_uploads/ryrviTMNgg.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/S1h1Lg1Nlx.png) 2. 點擊 **Submit** ![image](https://hackmd.io/_uploads/rJTrdx1Vgx.png) 3. 複製貼上程式碼 ![image](https://hackmd.io/_uploads/H1XFdgyEgx.png) 4. 選取使用語言 (預設為 C++) ![image](https://hackmd.io/_uploads/B1yj_gyVgl.png) 5. 點擊 **Submit** ![image](https://hackmd.io/_uploads/r1njdlyElx.png) 6. 等待結果 ![image](https://hackmd.io/_uploads/Sk1mFlyElx.png) 7. 結果出爐 :confetti_ball: ![image](https://hackmd.io/_uploads/ryYmYlJEgx.png) | Normal State | Description | | ------------ | ----------- | | | | | <font color="#0f0">AC (Accepted)</span> | 輸出符合題目要求,且記憶體與時間使用在題目範圍內 | | <font color="#ed784a">WA (Wrong Answer)</font> | 輸出不符合題目要求,且記憶體與時間使用在題目範圍內 | | <font color="#70649a">TLE (Time Limit Exceeded)</font> | 使用時間超過題目範圍 | | <font color="#e83015">MLE (Memory Limit Exceeded)</font> | 記憶體使用量超過題目範圍 | | <font color="#27fff6">RE (Runtime Error)</font> | 程式退出狀態不為 0 (具體可以看下方的範例) | | <font color="#237ac7">RESIG (Runtime Error Killed By Signal)</font> | 建議參考 [Info](https://toj.tfcsi.org/oj/info/) | <font color="#ffeb00">CE (Compile Error)</font> | 編譯器無法編譯你的程式 | RE 範例程式碼 ```cpp= int main() { return -1; } ``` RESIG 範例程式碼 ```cpp= int main() { int arr[10]; arr[100000] += 1; arr[999] -= 1; return 0; } ``` ::: ### 手機版 :::spoiler 1. 點擊任意題目 ![image](https://hackmd.io/_uploads/ryrviTMNgg.png) 2. 點擊 **Submit** ![image](https://hackmd.io/_uploads/BJQjipM4xg.png) 3. 貼上程式碼 ![image](https://hackmd.io/_uploads/SkCBhaMNlx.png) 4. 選取使用語言 (預設為 C++) ![image](https://hackmd.io/_uploads/rymD2aGVee.png) 5. 點擊 **Submit** ![image](https://hackmd.io/_uploads/ryDd26GNxe.png) 6. 等待結果 ![image](https://hackmd.io/_uploads/BJzh2pG4xx.png) 7. 結果出爐 :confetti_ball: ![image](https://hackmd.io/_uploads/H1XT2pGEgg.png) ::: ## 其他功能 ### 簡單積分版 ### 詢問問題或問題回報 ### 排名