結果

問題 No.63 ポッキーゲーム
ユーザー kmtrc130kmtrc130
提出日時 2019-03-18 15:18:28
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 2,128 ms / 5,000 ms
コード長 441 bytes
コンパイル時間 2,259 ms
コンパイル使用メモリ 106,240 KB
実行使用メモリ 23,964 KB
最終ジャッジ日時 2023-09-25 12:24:52
合計ジャッジ時間 11,454 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
21,920 KB
testcase_01 AC 61 ms
21,976 KB
testcase_02 AC 61 ms
21,760 KB
testcase_03 AC 61 ms
21,860 KB
testcase_04 AC 61 ms
21,796 KB
testcase_05 AC 61 ms
21,764 KB
testcase_06 AC 60 ms
21,872 KB
testcase_07 AC 61 ms
23,940 KB
testcase_08 AC 60 ms
21,880 KB
testcase_09 AC 64 ms
21,976 KB
testcase_10 AC 82 ms
21,884 KB
testcase_11 AC 2,128 ms
19,792 KB
testcase_12 AC 102 ms
21,920 KB
testcase_13 AC 2,126 ms
21,960 KB
testcase_14 AC 103 ms
21,912 KB
testcase_15 AC 103 ms
19,840 KB
testcase_16 AC 65 ms
19,856 KB
testcase_17 AC 1,996 ms
21,892 KB
testcase_18 AC 65 ms
23,844 KB
testcase_19 AC 339 ms
21,804 KB
testcase_20 AC 95 ms
23,964 KB
testcase_21 AC 149 ms
23,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;
using System.Linq;

class Program
{
    public void Solve()
    {
        int[] LK = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        int yuu = 0;

        while (0 < LK[0] - LK[1] * 2)
        {
            yuu += LK[1];
            LK[0] -= LK[1] * 2;
        }

        Console.WriteLine(yuu);
    }

    static void Main()
    {
        var solver = new Program();
        solver.Solve();
    }
}
0