結果

問題 No.63 ポッキーゲーム
ユーザー kmtrc130kmtrc130
提出日時 2017-04-25 17:31:42
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 358 bytes
コンパイル時間 2,221 ms
コンパイル使用メモリ 103,232 KB
実行使用メモリ 24,044 KB
最終ジャッジ日時 2023-10-11 09:45:24
合計ジャッジ時間 11,101 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
21,952 KB
testcase_01 AC 57 ms
23,904 KB
testcase_02 AC 57 ms
21,924 KB
testcase_03 AC 57 ms
23,840 KB
testcase_04 WA -
testcase_05 AC 57 ms
21,928 KB
testcase_06 AC 57 ms
21,844 KB
testcase_07 AC 58 ms
19,904 KB
testcase_08 AC 58 ms
21,852 KB
testcase_09 AC 60 ms
21,928 KB
testcase_10 AC 76 ms
21,848 KB
testcase_11 AC 1,915 ms
19,764 KB
testcase_12 AC 95 ms
21,992 KB
testcase_13 WA -
testcase_14 AC 95 ms
21,800 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 137 ms
24,044 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
{
    static void Main(string[] args)
    {
        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);
    }
}
0