結果

問題 No.63 ポッキーゲーム
ユーザー funakoshifunakoshi
提出日時 2019-06-21 15:46:43
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 729 ms / 5,000 ms
コード長 574 bytes
コンパイル時間 1,951 ms
コンパイル使用メモリ 104,232 KB
実行使用メモリ 24,776 KB
最終ジャッジ日時 2023-08-26 14:04:28
合計ジャッジ時間 7,196 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
20,712 KB
testcase_01 AC 53 ms
20,768 KB
testcase_02 AC 52 ms
20,692 KB
testcase_03 AC 53 ms
22,724 KB
testcase_04 AC 51 ms
20,780 KB
testcase_05 AC 51 ms
20,696 KB
testcase_06 AC 51 ms
22,744 KB
testcase_07 AC 52 ms
22,752 KB
testcase_08 AC 52 ms
20,652 KB
testcase_09 AC 52 ms
20,704 KB
testcase_10 AC 57 ms
20,700 KB
testcase_11 AC 729 ms
20,764 KB
testcase_12 AC 66 ms
20,820 KB
testcase_13 AC 704 ms
20,708 KB
testcase_14 AC 62 ms
20,808 KB
testcase_15 AC 62 ms
20,756 KB
testcase_16 AC 51 ms
20,752 KB
testcase_17 AC 660 ms
20,848 KB
testcase_18 AC 53 ms
24,776 KB
testcase_19 AC 137 ms
22,804 KB
testcase_20 AC 60 ms
22,868 KB
testcase_21 AC 79 ms
22,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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace yukicoderTest
{
    class Program
    {
        static void Main(string[] args)
        {
            string input = Console.ReadLine();
            string[] LK = input.Split(' ');
            int L = int.Parse(LK[0]);
            int K = int.Parse(LK[1]);
            int cm = 0;
            while(L>K*2)
            {
                L = L - K * 2;
                cm = cm + K;
            }
            Console.WriteLine(cm);
        }
    }
}
0