結果

問題 No.63 ポッキーゲーム
ユーザー oemonoemon
提出日時 2016-11-23 22:45:47
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 64 ms / 5,000 ms
コード長 431 bytes
コンパイル時間 1,900 ms
コンパイル使用メモリ 106,300 KB
実行使用メモリ 25,860 KB
最終ジャッジ日時 2023-08-25 19:18:49
合計ジャッジ時間 4,223 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
21,856 KB
testcase_01 AC 60 ms
21,780 KB
testcase_02 AC 64 ms
25,684 KB
testcase_03 AC 60 ms
23,652 KB
testcase_04 AC 58 ms
23,796 KB
testcase_05 AC 62 ms
23,892 KB
testcase_06 AC 63 ms
25,696 KB
testcase_07 AC 58 ms
23,712 KB
testcase_08 AC 60 ms
25,688 KB
testcase_09 AC 59 ms
23,616 KB
testcase_10 AC 58 ms
25,724 KB
testcase_11 AC 62 ms
23,704 KB
testcase_12 AC 62 ms
23,840 KB
testcase_13 AC 63 ms
23,660 KB
testcase_14 AC 60 ms
23,884 KB
testcase_15 AC 61 ms
23,744 KB
testcase_16 AC 60 ms
23,856 KB
testcase_17 AC 59 ms
25,860 KB
testcase_18 AC 62 ms
23,764 KB
testcase_19 AC 60 ms
25,772 KB
testcase_20 AC 60 ms
21,668 KB
testcase_21 AC 61 ms
21,616 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

namespace No63
{
    class Program
    {
        static void Main(string[] args)
        {
            var LK = Console.ReadLine().Split(' ').Select(i => double.Parse(i)).ToArray();
            var L = LK[0];
            var K = LK[1];

            var result = Math.Max(
                Math.Ceiling(L / (2 * K)) - 1d,
                0) * K;
            Console.Write(result);
        }
    }
}
0