結果

問題 No.45 回転寿司
ユーザー taktak
提出日時 2018-04-18 02:27:55
言語 F#
(F# 4.0)
結果
AC  
実行時間 91 ms / 5,000 ms
コード長 223 bytes
コンパイル時間 6,876 ms
コンパイル使用メモリ 156,916 KB
実行使用メモリ 25,100 KB
最終ジャッジ日時 2023-08-27 16:20:57
合計ジャッジ時間 9,606 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
23,140 KB
testcase_01 AC 88 ms
23,036 KB
testcase_02 AC 89 ms
24,980 KB
testcase_03 AC 88 ms
20,992 KB
testcase_04 AC 88 ms
23,012 KB
testcase_05 AC 83 ms
24,892 KB
testcase_06 AC 89 ms
22,996 KB
testcase_07 AC 90 ms
21,036 KB
testcase_08 AC 89 ms
23,056 KB
testcase_09 AC 89 ms
22,968 KB
testcase_10 AC 89 ms
25,092 KB
testcase_11 AC 88 ms
20,896 KB
testcase_12 AC 89 ms
23,116 KB
testcase_13 AC 81 ms
22,792 KB
testcase_14 AC 85 ms
22,888 KB
testcase_15 AC 89 ms
25,092 KB
testcase_16 AC 90 ms
23,060 KB
testcase_17 AC 90 ms
25,012 KB
testcase_18 AC 91 ms
23,128 KB
testcase_19 AC 91 ms
25,100 KB
testcase_20 AC 82 ms
22,880 KB
testcase_21 AC 83 ms
24,840 KB
testcase_22 AC 82 ms
24,828 KB
testcase_23 AC 84 ms
22,844 KB
testcase_24 AC 83 ms
22,844 KB
testcase_25 AC 82 ms
24,808 KB
testcase_26 AC 91 ms
25,012 KB
testcase_27 AC 89 ms
25,068 KB
testcase_28 AC 89 ms
25,060 KB
testcase_29 AC 89 ms
22,920 KB
testcase_30 AC 89 ms
23,012 KB
testcase_31 AC 82 ms
24,804 KB
testcase_32 AC 83 ms
22,752 KB
testcase_33 AC 90 ms
23,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let N = stdin.ReadLine() |> int
let V = stdin.ReadLine().Split() |> Array.map(int) 

Array.fold (fun (prepre,pre) x -> 
        let a = prepre + x 
        let b = pre
        (pre,max a b)) (0,0) V
|> snd
|> printfn "%i"  
0