結果
問題 | No.378 名声値を稼ごう |
ユーザー | tak |
提出日時 | 2018-09-09 12:26:48 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 59 ms / 2,000 ms |
コード長 | 160 bytes |
コンパイル時間 | 4,593 ms |
コンパイル使用メモリ | 151,972 KB |
実行使用メモリ | 24,200 KB |
最終ジャッジ日時 | 2023-09-13 19:46:04 |
合計ジャッジ時間 | 5,574 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 58 ms
22,032 KB |
testcase_01 | AC | 57 ms
22,220 KB |
testcase_02 | AC | 58 ms
24,184 KB |
testcase_03 | AC | 59 ms
22,040 KB |
testcase_04 | AC | 58 ms
22,160 KB |
testcase_05 | AC | 58 ms
24,200 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
let R() = stdin.ReadLine() let rec score = function | 0L -> 0L | x -> x + score(x / 2L) let N = R() |> int64 (N * 2L) - (score N) |> stdout.WriteLine