# Replit Mono C# 使用及上傳 Domjudge 步驟 ###### tags: `Replit with C#` * 點擊 Create Repl 建立檔案。<br>  * 在 Template 輸入「**mono**」,下方點選「**Mono C#**」,再按「**Create Repl**」。<br>  * 左上角點選檔案新增一個 **.txt**。 <br>  * 到 DOMjudge 登入後點選欲作答的題目(**紅圈處**)。<br>  * 複製 範例輸入 (**紅框處**)。<br>  * 貼到 Replit 建立的 *.txt 裡面。<br>  * 右邊黑色視窗預設是在「Console」的頁籤,由於要輸入 .txt 所以請點選右邊「Shell」的頁籤。<br>  * 在 Shell 的頁籤輸入:「mcs Main.cs -out:Main.exe」將 .cs 內容輸出至 .exe。<br>  * 在 Shell 的頁籤輸入:「mono Main.exe < 1.txt」將 .txt 輸入至 .exe 執行。<br>  * 結果如下: <br>  * 確認答案無誤之後可以點選「Main.cs」的更多選項,選擇「Download」下載 .cs 檔案。<br>  * 回到 DOMjudge 點選 Submit、選擇相應的題目、Language = C#,之後 **Submit** 送出。<br>  * 重新整理幾次「result」就會顯示正確或錯誤。<br> 
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up