結果

問題 No.63 ポッキーゲーム
ユーザー HimatsubushinHimatsubushin
提出日時 2019-01-14 14:43:24
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 427 bytes
コンパイル時間 1,965 ms
コンパイル使用メモリ 98,896 KB
実行使用メモリ 24,792 KB
最終ジャッジ日時 2023-09-02 12:46:58
合計ジャッジ時間 4,128 ms
ジャッジサーバーID
(参考情報)
judge13 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
22,724 KB
testcase_01 AC 56 ms
20,772 KB
testcase_02 AC 54 ms
20,696 KB
testcase_03 AC 54 ms
20,740 KB
testcase_04 AC 54 ms
20,700 KB
testcase_05 AC 54 ms
20,800 KB
testcase_06 AC 53 ms
20,632 KB
testcase_07 AC 54 ms
20,716 KB
testcase_08 AC 55 ms
20,840 KB
testcase_09 AC 54 ms
20,692 KB
testcase_10 AC 55 ms
20,704 KB
testcase_11 AC 53 ms
20,704 KB
testcase_12 AC 53 ms
20,696 KB
testcase_13 WA -
testcase_14 AC 53 ms
20,620 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 54 ms
20,772 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

namespace No063_ポッキーゲーム
{
    class Program
    {
        static void Main(string[] args)
        {
            string[] input = Console.ReadLine().Split(' ');
            int l = int.Parse(input[0]);
            int k = int.Parse(input[1]);

            if (l - k <= k)
                Console.WriteLine(0);
            else
                Console.WriteLine(((l / 2) / k) * k);
        }
    }
}
0