結果
| 問題 |
No.378 名声値を稼ごう
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-06-03 23:47:04 |
| 言語 | F# (F# 4.0) |
| 結果 |
AC
|
| 実行時間 | 330 ms / 2,000 ms |
| コード長 | 188 bytes |
| コンパイル時間 | 6,830 ms |
| コンパイル使用メモリ | 185,816 KB |
| 実行使用メモリ | 34,752 KB |
| 最終ジャッジ日時 | 2024-06-30 09:29:38 |
| 合計ジャッジ時間 | 9,435 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 5 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (246 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 f a = a/2L let g a = (2L*(f a)+a) let rec h a b c = if a<>0L then h (f a) (b + (f a)) (max c (g a)) else abs (c-b) (stdin.ReadLine >> int64 >> fun n -> h n n (2L*n)) () |> printfn "%d"
nobigomu