結果

問題 No.63 ポッキーゲーム
ユーザー ooh_30ooh_30
提出日時 2017-05-29 12:36:31
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 743 ms / 5,000 ms
コード長 548 bytes
コンパイル時間 1,956 ms
コンパイル使用メモリ 101,440 KB
実行使用メモリ 22,832 KB
最終ジャッジ日時 2023-08-25 19:29:53
合計ジャッジ時間 6,429 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
20,696 KB
testcase_01 AC 56 ms
22,832 KB
testcase_02 AC 56 ms
22,732 KB
testcase_03 AC 56 ms
20,632 KB
testcase_04 AC 56 ms
22,664 KB
testcase_05 AC 56 ms
20,712 KB
testcase_06 AC 57 ms
20,648 KB
testcase_07 AC 57 ms
20,708 KB
testcase_08 AC 56 ms
20,712 KB
testcase_09 AC 56 ms
20,668 KB
testcase_10 AC 63 ms
22,744 KB
testcase_11 AC 720 ms
20,584 KB
testcase_12 AC 72 ms
20,684 KB
testcase_13 AC 743 ms
20,692 KB
testcase_14 AC 72 ms
20,768 KB
testcase_15 AC 70 ms
20,680 KB
testcase_16 AC 59 ms
20,588 KB
testcase_17 AC 704 ms
20,644 KB
testcase_18 AC 58 ms
22,756 KB
testcase_19 AC 151 ms
22,756 KB
testcase_20 AC 69 ms
20,652 KB
testcase_21 AC 86 ms
18,636 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.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lecture
{
    class Program
    {
     
        static void Main(string[] args){
            string[] line = Console.ReadLine().Split(' ');
            int L = int.Parse(line[0]);
            int K = int.Parse(line[1]);

            int count = 0;

            while ( L > 2 * K )
            {
                L -= 2 * K;
                count += K;
            }
            Console.WriteLine(count);
        }
    }
}
0