結果

問題 No.111 あばばばば
ユーザー taktak
提出日時 2019-02-11 05:09:45
言語 F#
(F# 4.0)
結果
AC  
実行時間 894 ms / 5,000 ms
コード長 175 bytes
コンパイル時間 5,752 ms
コンパイル使用メモリ 150,168 KB
実行使用メモリ 24,224 KB
最終ジャッジ日時 2023-09-22 22:38:48
合計ジャッジ時間 8,287 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
22,124 KB
testcase_01 AC 55 ms
22,216 KB
testcase_02 AC 55 ms
22,212 KB
testcase_03 AC 894 ms
22,088 KB
testcase_04 AC 55 ms
22,140 KB
testcase_05 AC 55 ms
22,124 KB
testcase_06 AC 59 ms
24,184 KB
testcase_07 AC 139 ms
24,224 KB
testcase_08 AC 423 ms
22,156 KB
testcase_09 AC 55 ms
22,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let aba n =
  let rec f n len sum  =
    if len > n then sum
    else f n (len+2L) (sum+(n-len+1L))
  f n 3L 0L
  
let L = stdin.ReadLine() |> int64

aba L
|> stdout.WriteLine
0