結果

問題 No.63 ポッキーゲーム
ユーザー ooh_22ooh_22
提出日時 2017-05-29 12:41:26
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 759 ms / 5,000 ms
コード長 547 bytes
コンパイル時間 1,913 ms
コンパイル使用メモリ 99,484 KB
実行使用メモリ 22,840 KB
最終ジャッジ日時 2023-08-25 19:30:05
合計ジャッジ時間 6,355 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,728 KB
testcase_01 AC 56 ms
20,744 KB
testcase_02 AC 56 ms
22,768 KB
testcase_03 AC 56 ms
20,836 KB
testcase_04 AC 56 ms
20,572 KB
testcase_05 AC 56 ms
20,788 KB
testcase_06 AC 56 ms
20,692 KB
testcase_07 AC 57 ms
22,840 KB
testcase_08 AC 57 ms
22,744 KB
testcase_09 AC 57 ms
20,696 KB
testcase_10 AC 62 ms
18,648 KB
testcase_11 AC 759 ms
22,752 KB
testcase_12 AC 70 ms
22,828 KB
testcase_13 AC 732 ms
22,744 KB
testcase_14 AC 69 ms
20,844 KB
testcase_15 AC 71 ms
22,692 KB
testcase_16 AC 58 ms
22,748 KB
testcase_17 AC 715 ms
18,712 KB
testcase_18 AC 57 ms
22,756 KB
testcase_19 AC 150 ms
20,700 KB
testcase_20 AC 68 ms
22,672 KB
testcase_21 AC 85 ms
20,800 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