[問題] UVA100問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
code::block c++
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
#include<iostream>
#include<algorithm>
問題(Question):
丟進UVA他跟我說答案有錯
我有看到之前說的萬年老梗,餵入10 1也讓他optput 10 1 20了
UVA給的測資我也都是過了,也是正確的
可是他還是說錯誤....
麻煩前輩們指教> <
餵入的資料(Input):
1 10
10 1
預期的正確結果(Expected Output):
1 10 20
10 1 20
錯誤結果(Wrong Output):
1 10 20
10 1 20
(都一樣)
程式碼(Code):(請善用置底文網頁, 記得排版)
http://codepad.org/nx7Ad53R
補充說明(Supplement):
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 36.224.43.231
※ 文章網址: http://www.ptt.cc/bbs/C_and_CPP/M.1401554683.A.E3F.html
→
06/01 00:45, , 1F
06/01 00:45, 1F
→
06/01 00:48, , 2F
06/01 00:48, 2F
→
06/01 00:49, , 3F
06/01 00:49, 3F
→
06/01 00:49, , 4F
06/01 00:49, 4F
※ 編輯: sherrypenelo (36.224.43.231), 06/01/2014 00:50:33
已幫刪留言~
→
06/01 07:04, , 5F
06/01 07:04, 5F
我剛剛試成功了~~(終於)
不過效率還是很差...
我沒有改type,可是main裡的for迴圈要改成t<=j
謝謝!!
※ 編輯: sherrypenelo (36.224.43.231), 06/01/2014 10:42:15