結果

問題 No.63 ポッキーゲーム
ユーザー regeregeregerege
提出日時 2016-03-26 19:34:52
言語 F#
(F# 4.0)
結果
AC  
実行時間 82 ms / 5,000 ms
コード長 200 bytes
コンパイル時間 4,123 ms
コンパイル使用メモリ 157,144 KB
実行使用メモリ 24,888 KB
最終ジャッジ日時 2023-08-25 19:06:17
合計ジャッジ時間 7,090 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
24,888 KB
testcase_01 AC 80 ms
22,880 KB
testcase_02 AC 80 ms
22,768 KB
testcase_03 AC 80 ms
22,920 KB
testcase_04 AC 79 ms
22,844 KB
testcase_05 AC 80 ms
20,780 KB
testcase_06 AC 81 ms
22,896 KB
testcase_07 AC 80 ms
22,864 KB
testcase_08 AC 80 ms
22,816 KB
testcase_09 AC 81 ms
22,780 KB
testcase_10 AC 80 ms
22,704 KB
testcase_11 AC 81 ms
22,880 KB
testcase_12 AC 82 ms
22,848 KB
testcase_13 AC 81 ms
22,864 KB
testcase_14 AC 81 ms
22,764 KB
testcase_15 AC 80 ms
24,884 KB
testcase_16 AC 81 ms
22,880 KB
testcase_17 AC 80 ms
22,892 KB
testcase_18 AC 81 ms
24,812 KB
testcase_19 AC 81 ms
20,816 KB
testcase_20 AC 82 ms
22,776 KB
testcase_21 AC 80 ms
22,840 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let f (s:string) =
    let arr = Array.map int <| s.Split(' ')
    let a,b = arr.[0],arr.[1]
    let c,d = a/(b*2),a%(b*2)
    b * (c - (if d = 0 then 1 else 0))
f <| stdin.ReadLine() |> printfn "%d"
0