結果

問題 No.63 ポッキーゲーム
ユーザー kimnykimny
提出日時 2017-11-16 19:13:41
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 806 ms / 5,000 ms
コード長 565 bytes
コンパイル時間 3,753 ms
コンパイル使用メモリ 99,264 KB
実行使用メモリ 14,800 KB
最終ジャッジ日時 2023-08-25 19:46:01
合計ジャッジ時間 6,838 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
14,688 KB
testcase_01 AC 54 ms
14,716 KB
testcase_02 AC 54 ms
14,592 KB
testcase_03 AC 55 ms
14,672 KB
testcase_04 AC 54 ms
14,772 KB
testcase_05 AC 54 ms
14,776 KB
testcase_06 AC 55 ms
14,648 KB
testcase_07 AC 55 ms
14,784 KB
testcase_08 AC 55 ms
14,692 KB
testcase_09 AC 55 ms
14,652 KB
testcase_10 AC 62 ms
14,716 KB
testcase_11 AC 806 ms
14,708 KB
testcase_12 AC 70 ms
14,800 KB
testcase_13 AC 805 ms
14,728 KB
testcase_14 AC 70 ms
14,636 KB
testcase_15 AC 70 ms
14,668 KB
testcase_16 AC 55 ms
14,616 KB
testcase_17 AC 759 ms
14,776 KB
testcase_18 AC 56 ms
14,676 KB
testcase_19 AC 155 ms
14,672 KB
testcase_20 AC 67 ms
14,796 KB
testcase_21 AC 87 ms
14,724 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 yukicoder_63 {
    class Program {
        static void Main(string[] args) {
            string[] a = Console.ReadLine().Split(' ');
            int L = int.Parse(a[0]);
            int K = int.Parse(a[1]);
            int count = 0;
            for (int i= 0; L > 2 * K; i++) {
                L -= 2 * K;
                count++;
            }
            Console.WriteLine(count * K);
            Console.ReadLine();
        }
    }
}
0