看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: Win10, Linux, ...) MacOS 使用 codeblocks 撰寫 編譯器(Ex: GCC, clang, VC++...)+目標環境(跟開發平台不同的話需列出) GCC 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) 問題(Question): C++寫UVA 245 Wrong answer https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=181 餵入的資料(Input): https://www.udebug.com/UVa/245 預期的正確結果(Expected Output): https://www.udebug.com/UVa/245 錯誤結果(Wrong Output): UVA 顯示 Wrong answer 程式碼(Code):(請善用置底文網頁, 記得排版,禁止使用圖檔) https://glot.io/snippets/fhwcaao3u9 補充說明(Supplement): 我寫一個link list的class來放入及拿取資料,若是數字,先放入後會檢查list內原先有的那個項目把它刪除,但是uDebug的測資測出來都是正確的,上傳UVA後卻是Wrong answer,不確定到底是哪裡有問題,麻煩各位大大幫我看看~感激不盡~ -- linwebs -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 218.164.215.119 (臺灣) ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1573893899.A.1DB.html
nevak: 你的code沒辦法處理number 100 11/18 10:51
linwebs: nevak 謝謝你,原來是這個原因,我在Line72多加個判斷式~ 11/19 15:17
linwebs: 就解決了,感謝~~~ 11/19 15:18
※ 編輯: linwebs (218.164.215.119 臺灣), 11/19/2019 15:18:36
nevak: 感謝你的p幣啦^^,感覺直接把75-77刪掉就可以了吧 11/19 19:34