[問題] Minesweeper 出現 presentation error

看板C_and_CPP (C/C++)作者 (j129008)時間14年前 (2011/08/24 17:14), 編輯推噓2(2010)
留言12則, 5人參與, 最新討論串1/1
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) g++ on code blocks 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) none 問題(Question): 出現presentation error可是怎麼看都沒有多出space or tab .... 餵入的資料(Input): 題目在此: http://uva.onlinejudge.org/external/101/10189.html 預期的正確結果(Expected Output): 網站回應我correct answer 錯誤結果(Wrong Output): presention error 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/9O4sfqXL 補充說明(Supplement): https://gpe2.acm-icpc.tw/gpelogin.php 這邊可以申請帳號然後搜尋problem id:10418 找到這題 然後submit就可以知道有沒有過了 希望有好心人士可以告訴我哪裡出問題了QAQ -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 58.114.228.239

08/24 18:48, , 1F
There must be an empty line between field outputs.
08/24 18:48, 1F

08/24 18:48, , 2F
UVA許多老題目的輸出都有上面那行 有做到嗎
08/24 18:48, 2F

08/24 18:55, , 3F
最後面的空行也要注意,有些可以空有些卻不用空
08/24 18:55, 3F

08/24 19:13, , 4F
有阿,我在129行的地方也就是output後有加換行
08/24 19:13, 4F

08/24 20:32, , 5F
最後一筆不能加換行
08/24 20:32, 5F

08/24 20:58, , 6F
你的最後一筆會有換行
08/24 20:58, 6F

08/24 21:22, , 7F
我在106行寫了要是row或col等於0時main回傳0不會換行吧
08/24 21:22, 7F

08/24 21:32, , 8F
看Sample Output 它要的是 Field...空行Field... 就這樣
08/24 21:32, 8F

08/24 21:32, , 9F
你輸出的是 Field...空行Field...空行 最後多了一個
08/24 21:32, 9F

08/24 21:55, , 10F
終於過了QQ 感謝各位
08/24 21:55, 10F

08/24 21:57, , 11F

08/25 13:16, , 12F
37行就寫完真的太強了m(_ _)m
08/25 13:16, 12F
文章代碼(AID): #1ELC3qxk (C_and_CPP)
文章代碼(AID): #1ELC3qxk (C_and_CPP)