結果

問題 No.279 木の数え上げ
ユーザー aimyaimy
提出日時 2017-04-16 08:22:23
言語 Haskell
(9.8.2)
結果
MLE  
実行時間 -
コード長 158 bytes
コンパイル時間 7,217 ms
コンパイル使用メモリ 158,328 KB
実行使用メモリ 82,276 KB
最終ジャッジ日時 2023-09-26 08:37:24
合計ジャッジ時間 11,740 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
8,612 KB
testcase_01 AC 3 ms
7,020 KB
testcase_02 AC 4 ms
8,176 KB
testcase_03 AC 3 ms
7,348 KB
testcase_04 AC 3 ms
6,760 KB
testcase_05 AC 4 ms
8,044 KB
testcase_06 AC 2 ms
6,944 KB
testcase_07 AC 3 ms
6,856 KB
testcase_08 AC 5 ms
9,184 KB
testcase_09 AC 3 ms
6,800 KB
testcase_10 MLE -
testcase_11 -- -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import Data.List

main = getLine >>= print . tree

tree s = length $ takeWhile (==4) $ zipWith (-) s' (tail s')
 where s' = map length $ iterate (\\ "tree") s
0