結果

問題 No.63 ポッキーゲーム
ユーザー chike_pluschike_plus
提出日時 2019-03-19 15:18:15
言語 F#
(F# 4.0)
結果
AC  
実行時間 60 ms / 5,000 ms
コード長 382 bytes
コンパイル時間 4,346 ms
コンパイル使用メモリ 153,360 KB
実行使用メモリ 26,160 KB
最終ジャッジ日時 2023-10-11 22:07:03
合計ジャッジ時間 6,793 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
22,016 KB
testcase_01 AC 60 ms
22,076 KB
testcase_02 AC 59 ms
26,160 KB
testcase_03 AC 58 ms
24,236 KB
testcase_04 AC 57 ms
22,172 KB
testcase_05 AC 58 ms
24,172 KB
testcase_06 AC 59 ms
22,068 KB
testcase_07 AC 57 ms
20,028 KB
testcase_08 AC 59 ms
22,040 KB
testcase_09 AC 58 ms
22,088 KB
testcase_10 AC 59 ms
24,056 KB
testcase_11 AC 59 ms
22,072 KB
testcase_12 AC 59 ms
22,248 KB
testcase_13 AC 59 ms
21,992 KB
testcase_14 AC 59 ms
22,068 KB
testcase_15 AC 59 ms
24,112 KB
testcase_16 AC 58 ms
22,192 KB
testcase_17 AC 58 ms
22,068 KB
testcase_18 AC 59 ms
22,000 KB
testcase_19 AC 59 ms
22,064 KB
testcase_20 AC 58 ms
19,980 KB
testcase_21 AC 58 ms
24,044 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0
Copyright (c) Microsoft Corporation. All Rights Reserved.

ソースコード

diff #

let ``No.63 ポッキーゲーム``() =
  
  stdin.ReadLine().Split(' ')
  |> fun args -> args.[0] |> int, args.[1] |> int
  |> fun (len , len1) -> 
    match len % len1 , (len / len1) % 2 with
    | _ , 1 -> ((len / 2 / len1)) * (len1)
    | 0 , _ -> ((len / 2 / len1) - 1) * (len1)
    | _ , _ -> ( len / 2 / len1) * (len1)
  |> stdout.WriteLine

``No.63 ポッキーゲーム``()
0