為什麼會常常吃Segmentation Fault??


RT,解好多題目都狂吃MLE,在過去的TIOJ有人用同樣的方法解,過了,但現在卻Segmentation Fault Segmentation Fault Segmentation Fault,請問造成她的原因只有MLE、用到不對的記憶體位置外,還是還有其他的嗎???

Edit Post Delete Post
Comments:

#1 Segmentation Fault~

Segmentation Fault~Segmentation Fault~Segmentation Fault~

Edit Delete


  (All characters are rendered with Markdown)


1640 測資有誤?


題目保證 n>=2 ,卻有 n = 1 的測資。

Edit Post Delete Post


  (All characters are rendered with Markdown)


1481 測資範圍有誤


你好,題目說n<=1000,但實際上應該更大,但實際上應該到10000左右。

Edit Post Delete Post
Comments:

#1

測資範圍已修正

Edit Delete


  (All characters are rendered with Markdown)


1457 時限可否放寬?


我發現就算加優化輸入,光是讀入測資甚麼都不作就會TLE了,請問這樣可以放寬時限嗎?

Edit Post Delete Post


  (All characters are rendered with Markdown)


記憶體用量上限與題目有差距


大概記憶體用到超過50000kb時judge就會判MLE,可是題目給定65536kb,中間消失的10幾mb是發生了什麼事?

Edit Post Delete Post
Comments:

#1

其實我也很納悶中間10幾MB跑去哪裡了
我猜是測量誤差吧?

Edit Delete


  (All characters are rendered with Markdown)


1243 測資是否有問題?


我在程式最後加了 assert(scanf("%d",&n)==EOF) ; 就有兩筆測資RE了,測資最後是不是有多餘的東西?

Edit Post Delete Post
Comments:

#1 SID

可不可以提供submission id ?

Edit Delete

#2 SID

你好,submission id 是 10196

Edit Delete


  (All characters are rendered with Markdown)


1332 測資還好嗎?


1332 測資正常嗎? 傳之前(舊TIOJ)的 AC code 沒過@_@" 另外寫了一份枚舉 10! 全排列對拍好像也沒輸出錯

Edit Post Delete Post
Comments:

#1

The testdata were broken.
Now you get an AC.

Edit Delete

#2 Thx!

感謝協助XD 難怪之前沒有人AC

Edit Delete


  (All characters are rendered with Markdown)


Haskell 適用的記憶體限制


想請問~~ Haskell 適用的記憶體限制能不能多加 24MB? ^

其實是 GHC runtime 有一點肥.. ._.
嗯, 我是用 GHC 7.8.3 試的 (64bits ubuntu)..
剛進入 main, 在等 input 的時候, 用 ps 看吃記憶體 23244KB,
所以解題目的演算法能使用的記憶體會少這一塊不能用..

有一些題目.. 像是 1566,
如果開一個 12M 個 Int32 的陣列來保存找到的答案,
(因為這題要先輸出答案筆數, 再一一輸出答案)
使用 23MB + 4B*12M = 71MB (暫時忽略計算的部分所需要的記憶體)
就會超過限制的 64MB..

謝謝~~ ^

Edit Post Delete Post
Comments:

#1

好啊
現在haskell可以使用的記憶體是5倍喔

Edit Delete


  (All characters are rendered with Markdown)


Submissions filter


Is it possible to have a language filter at the "submissions" page?

Edit Post Delete Post
Comments:

#1

Sure.

Edit Delete


  (All characters are rendered with Markdown)


The pictutes should work now


A_A

Edit Post Delete Post


  (All characters are rendered with Markdown)