結果

問題 No.63 ポッキーゲーム
ユーザー 親子丼親子丼
提出日時 2016-03-29 10:02:12
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 3,213 ms / 5,000 ms
コード長 981 bytes
コンパイル時間 2,354 ms
コンパイル使用メモリ 104,472 KB
実行使用メモリ 22,812 KB
最終ジャッジ日時 2023-08-25 19:07:46
合計ジャッジ時間 14,944 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
22,668 KB
testcase_01 AC 57 ms
20,616 KB
testcase_02 AC 56 ms
22,692 KB
testcase_03 AC 57 ms
20,772 KB
testcase_04 AC 57 ms
20,636 KB
testcase_05 AC 57 ms
22,676 KB
testcase_06 AC 57 ms
22,684 KB
testcase_07 AC 58 ms
22,740 KB
testcase_08 AC 58 ms
22,740 KB
testcase_09 AC 62 ms
20,696 KB
testcase_10 AC 90 ms
22,688 KB
testcase_11 AC 3,213 ms
20,772 KB
testcase_12 AC 121 ms
20,612 KB
testcase_13 AC 3,193 ms
20,624 KB
testcase_14 AC 123 ms
20,640 KB
testcase_15 AC 121 ms
22,624 KB
testcase_16 AC 63 ms
20,636 KB
testcase_17 AC 3,003 ms
20,640 KB
testcase_18 AC 63 ms
22,812 KB
testcase_19 AC 482 ms
20,612 KB
testcase_20 AC 107 ms
20,584 KB
testcase_21 AC 190 ms
20,760 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.0 )
            {
                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