結果

問題 No.63 ポッキーゲーム
ユーザー 親子丼親子丼
提出日時 2016-03-29 10:00:30
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 979 bytes
コンパイル時間 790 ms
コンパイル使用メモリ 107,920 KB
実行使用メモリ 26,216 KB
最終ジャッジ日時 2024-04-10 05:40:42
合計ジャッジ時間 6,242 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 22 ms
22,192 KB
testcase_01 AC 22 ms
24,036 KB
testcase_02 WA -
testcase_03 AC 23 ms
23,844 KB
testcase_04 AC 23 ms
23,956 KB
testcase_05 WA -
testcase_06 AC 22 ms
23,912 KB
testcase_07 AC 22 ms
23,784 KB
testcase_08 WA -
testcase_09 AC 24 ms
26,072 KB
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 48 ms
25,828 KB
testcase_13 AC 1,282 ms
23,668 KB
testcase_14 AC 48 ms
24,044 KB
testcase_15 AC 50 ms
25,748 KB
testcase_16 AC 27 ms
25,752 KB
testcase_17 AC 1,199 ms
24,040 KB
testcase_18 AC 26 ms
25,884 KB
testcase_19 AC 190 ms
26,008 KB
testcase_20 AC 44 ms
24,116 KB
testcase_21 AC 78 ms
24,092 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

class yukicoder
{
    static void Main(string[] args)
    {
        var r = new Reader();
        var L = r.nextInt();
        var K = r.nextInt();
        var yu_mm = 0;
        for (var i = K; i < L; i += K )
        {
            if (i >= L / 2 )
            {
                break;
            }
            else
            {
                yu_mm += K;
            }
        }
        Console.WriteLine(yu_mm);
    }
}

class Reader
{
    string[] s;
    int i;
    char[] cs = new char[] { ' ' };

    public Reader()
    {
        s = new string[0];
        i = 0;
    }

    public string next()
    {
        if ( i < s.Length )
            return s[i++];
        var input = Console.ReadLine();
        while ( input == "" )
            input = Console.ReadLine();
        s = input.Split(cs, StringSplitOptions.RemoveEmptyEntries);
        i = 0;
        return next();
    }

    public int nextInt()
    {
        return int.Parse(next());
    }

}
0