結果

問題 No.53 悪の漸化式
ユーザー aimyaimy
提出日時 2017-05-10 10:36:41
言語 Haskell
(9.8.2)
結果
WA  
実行時間 -
コード長 157 bytes
コンパイル時間 13,321 ms
コンパイル使用メモリ 158,340 KB
実行使用メモリ 7,740 KB
最終ジャッジ日時 2023-10-13 09:58:30
合計ジャッジ時間 2,292 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
7,312 KB
testcase_01 AC 2 ms
7,356 KB
testcase_02 AC 3 ms
7,344 KB
testcase_03 AC 2 ms
7,408 KB
testcase_04 AC 3 ms
7,456 KB
testcase_05 AC 2 ms
7,332 KB
testcase_06 AC 2 ms
7,264 KB
testcase_07 AC 2 ms
7,344 KB
testcase_08 AC 2 ms
7,316 KB
testcase_09 AC 2 ms
7,340 KB
testcase_10 AC 2 ms
7,428 KB
testcase_11 AC 2 ms
7,428 KB
testcase_12 AC 2 ms
7,532 KB
testcase_13 AC 3 ms
7,476 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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 = readLn >>= print . (aku !!) 

aku = reverse (apply 100 (\as@(a1:a2:_) -> (19*a1-12*a2)/4 : as) [3,4])
 where apply n f x = foldr ($) x (replicate n f)
0