結果

問題 No.63 ポッキーゲーム
ユーザー CroweaCrowea
提出日時 2019-01-30 16:56:56
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 350 bytes
コンパイル時間 816 ms
コンパイル使用メモリ 109,468 KB
実行使用メモリ 27,512 KB
最終ジャッジ日時 2024-04-23 13:04:54
合計ジャッジ時間 2,114 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
25,488 KB
testcase_01 AC 26 ms
25,340 KB
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 24 ms
25,368 KB
testcase_05 AC 25 ms
25,364 KB
testcase_06 AC 25 ms
25,136 KB
testcase_07 AC 26 ms
25,240 KB
testcase_08 AC 26 ms
27,020 KB
testcase_09 AC 26 ms
25,468 KB
testcase_10 AC 25 ms
27,248 KB
testcase_11 AC 25 ms
25,328 KB
testcase_12 AC 23 ms
23,220 KB
testcase_13 WA -
testcase_14 AC 24 ms
21,048 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 25 ms
25,200 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;

public class Program
{
    public static void Main(string[] args)
    {
        int l, k;
        var data = Console.ReadLine().Split(' ').Select(x => int.Parse(x)).ToArray();
        l = data[0];
        k = data[1];

        var count = l / (k * 2);
        Console.WriteLine((count <= 1) ? 0 : count * k);
    }
}
0