結果

問題 No.279 木の数え上げ
ユーザー aimyaimy
提出日時 2017-04-16 08:30:34
言語 Haskell
(9.8.2)
結果
AC  
実行時間 222 ms / 2,000 ms
コード長 132 bytes
コンパイル時間 10,332 ms
コンパイル使用メモリ 157,792 KB
実行使用メモリ 61,088 KB
最終ジャッジ日時 2023-09-26 08:37:45
合計ジャッジ時間 3,856 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
6,768 KB
testcase_01 AC 3 ms
6,820 KB
testcase_02 AC 3 ms
6,840 KB
testcase_03 AC 2 ms
6,736 KB
testcase_04 AC 2 ms
6,696 KB
testcase_05 AC 2 ms
6,752 KB
testcase_06 AC 3 ms
6,640 KB
testcase_07 AC 2 ms
6,712 KB
testcase_08 AC 3 ms
6,708 KB
testcase_09 AC 2 ms
6,672 KB
testcase_10 AC 213 ms
59,016 KB
testcase_11 AC 42 ms
20,104 KB
testcase_12 AC 142 ms
51,104 KB
testcase_13 AC 22 ms
15,632 KB
testcase_14 AC 222 ms
61,088 KB
testcase_15 AC 181 ms
56,004 KB
testcase_16 AC 162 ms
52,948 KB
testcase_17 AC 193 ms
59,044 KB
testcase_18 AC 102 ms
34,456 KB
testcase_19 AC 192 ms
58,104 KB
testcase_20 AC 202 ms
60,164 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 #

main = getLine >>= print . tree

tree s = minimum [numOf 't', numOf 'r', div (numOf 'e') 2]
 where numOf c = length (filter (==c) s)
0