[問題] UVA 514 Rails

看板C_and_CPP作者時間8年前 (2015/08/26 21:58), 8年前編輯推噓1(109)
留言10則, 4人參與, 最新討論串1/1
開發平台(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

08/26 23:59, , 1F
沒找到很久以前 AC 的檔案, 但是好像每組輸出後都要空行, 不
08/26 23:59, 1F

08/27 00:00, , 2F
是只有組間有空行?
08/27 00:00, 2F

08/27 06:08, , 3F
每組之後都要有空行
08/27 06:08, 3F

08/28 18:55, , 4F
謝謝,改了後過了
08/28 18:55, 4F

08/28 18:56, , 5F
There is no line in the output file corresponding t
08/28 18:56, 5F

08/28 18:56, , 6F
to the last ``null'' block of the input file
08/28 18:56, 6F

08/28 18:56, , 7F
是我誤會題目意思嗎?
08/28 18:56, 7F

08/29 14:45, , 8F
意思是不要對 "0\n0\n"<EOF> 這組測資輸出
08/29 14:45, 8F

08/29 14:46, , 9F
"In addition, there is one empty line after the lines
08/29 14:46, 9F

08/29 14:46, , 10F
corresponding to one block of the input file."
08/29 14:46, 10F
文章代碼(AID): #1LtSNxaV (C_and_CPP)