看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) GCC 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) STL 問題(Question):UVA 541 rails https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=455 餵入的資料(Input):測資 預期的正確結果(Expected Output): 錯誤結果(Wrong Output):WA 程式碼(Code):(請善用置底文網頁, 記得排版) http://codepad.org/DOW2p3Yt 補充說明(Supplement):照理來說格式和測資都OK,不知為什麼還是過不了,一直 WA,實在想不出來哪裡有可能錯 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.205.139.50 ※ 文章網址: https://www.ptt.cc/bbs/C_and_CPP/M.1440597499.A.91F.html ※ 編輯: tony21177 (123.205.139.50), 08/26/2015 22:01:15
scwg: 沒找到很久以前 AC 的檔案, 但是好像每組輸出後都要空行, 不 08/26 23:59
scwg: 是只有組間有空行? 08/27 00:00
ilms49898723: 每組之後都要有空行 08/27 06:08
tony21177: 謝謝,改了後過了 08/28 18:55
tony21177: There is no line in the output file corresponding t 08/28 18:56
tony21177: to the last ``null'' block of the input file 08/28 18:56
tony21177: 是我誤會題目意思嗎? 08/28 18:56
suhorng: 意思是不要對 "0\n0\n"<EOF> 這組測資輸出 08/29 14:45
suhorng: "In addition, there is one empty line after the lines 08/29 14:46
suhorng: corresponding to one block of the input file." 08/29 14:46