結果

問題 No.45 回転寿司
ユーザー regeregeregerege
提出日時 2015-10-13 21:32:36
言語 F#
(F# 4.0)
結果
AC  
実行時間 90 ms / 5,000 ms
コード長 199 bytes
コンパイル時間 4,122 ms
コンパイル使用メモリ 155,896 KB
実行使用メモリ 25,396 KB
最終ジャッジ日時 2023-08-27 14:22:48
合計ジャッジ時間 8,438 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 90 ms
21,220 KB
testcase_01 AC 90 ms
25,336 KB
testcase_02 AC 90 ms
25,268 KB
testcase_03 AC 85 ms
23,216 KB
testcase_04 AC 89 ms
23,208 KB
testcase_05 AC 82 ms
23,036 KB
testcase_06 AC 89 ms
25,256 KB
testcase_07 AC 88 ms
23,272 KB
testcase_08 AC 86 ms
23,204 KB
testcase_09 AC 89 ms
23,160 KB
testcase_10 AC 90 ms
25,260 KB
testcase_11 AC 87 ms
23,152 KB
testcase_12 AC 90 ms
25,340 KB
testcase_13 AC 84 ms
25,076 KB
testcase_14 AC 81 ms
23,076 KB
testcase_15 AC 88 ms
23,184 KB
testcase_16 AC 88 ms
23,324 KB
testcase_17 AC 88 ms
25,380 KB
testcase_18 AC 85 ms
25,396 KB
testcase_19 AC 89 ms
23,264 KB
testcase_20 AC 81 ms
23,064 KB
testcase_21 AC 81 ms
23,080 KB
testcase_22 AC 81 ms
23,020 KB
testcase_23 AC 85 ms
23,112 KB
testcase_24 AC 81 ms
23,048 KB
testcase_25 AC 82 ms
24,984 KB
testcase_26 AC 90 ms
23,192 KB
testcase_27 AC 89 ms
23,228 KB
testcase_28 AC 87 ms
21,100 KB
testcase_29 AC 89 ms
23,336 KB
testcase_30 AC 88 ms
21,228 KB
testcase_31 AC 84 ms
23,068 KB
testcase_32 AC 83 ms
23,088 KB
testcase_33 AC 90 ms
23,236 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

    stdin.ReadLine() |> ignore
    let l = stdin.ReadLine().Split([|' '|]) |> Seq.map (int) |> Seq.toList
    let f = List.fold (fun (a,b) n -> (max a (b+n)),a) (0,0)
    printfn "%d" <| (f >> fst) l
0