結果
| 問題 |
No.45 回転寿司
|
| ユーザー |
tak
|
| 提出日時 | 2018-04-18 02:27:55 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 368 ms / 5,000 ms |
| コード長 | 223 bytes |
| コンパイル時間 | 15,056 ms |
| コンパイル使用メモリ | 188,436 KB |
| 実行使用メモリ | 35,272 KB |
| 最終ジャッジ日時 | 2024-12-27 18:46:43 |
| 合計ジャッジ時間 | 28,840 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (372 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
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"
tak