結果

問題 No.276 連続する整数の和(1)
ユーザー LeonardoneLeonardone
提出日時 2015-12-07 06:44:30
言語 F#
(F# 4.0)
結果
AC  
実行時間 84 ms / 1,000 ms
コード長 157 bytes
コンパイル時間 5,000 ms
コンパイル使用メモリ 160,700 KB
実行使用メモリ 24,788 KB
最終ジャッジ日時 2023-10-12 19:47:01
合計ジャッジ時間 6,683 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 81 ms
22,688 KB
testcase_01 AC 84 ms
24,788 KB
testcase_02 AC 82 ms
22,784 KB
testcase_03 AC 83 ms
22,660 KB
testcase_04 AC 82 ms
24,744 KB
testcase_05 AC 82 ms
22,748 KB
testcase_06 AC 81 ms
20,708 KB
testcase_07 AC 81 ms
24,656 KB
testcase_08 AC 82 ms
24,712 KB
testcase_09 AC 82 ms
22,732 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

// yukicoder My Practice
// author: Leonardone @ NEETSDKASU

open System

let n = int64(Console.ReadLine())

printf "%d" <| if n % 2L = 0L then n / 2L else n
0