結果

問題 No.63 ポッキーゲーム
ユーザー UmekobuchachaUmekobuchacha
提出日時 2019-08-31 18:44:19
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 806 ms / 5,000 ms
コード長 984 bytes
コンパイル時間 3,099 ms
コンパイル使用メモリ 103,728 KB
実行使用メモリ 24,748 KB
最終ジャッジ日時 2023-08-16 13:23:19
合計ジャッジ時間 6,849 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
20,676 KB
testcase_01 AC 56 ms
20,776 KB
testcase_02 AC 56 ms
20,736 KB
testcase_03 AC 56 ms
22,704 KB
testcase_04 AC 56 ms
20,688 KB
testcase_05 AC 55 ms
20,748 KB
testcase_06 AC 56 ms
22,736 KB
testcase_07 AC 57 ms
24,748 KB
testcase_08 AC 56 ms
22,836 KB
testcase_09 AC 58 ms
22,740 KB
testcase_10 AC 63 ms
20,688 KB
testcase_11 AC 806 ms
20,804 KB
testcase_12 AC 72 ms
20,744 KB
testcase_13 AC 806 ms
20,752 KB
testcase_14 AC 71 ms
20,760 KB
testcase_15 AC 71 ms
22,792 KB
testcase_16 AC 57 ms
20,676 KB
testcase_17 AC 761 ms
22,796 KB
testcase_18 AC 57 ms
22,724 KB
testcase_19 AC 158 ms
22,832 KB
testcase_20 AC 68 ms
20,792 KB
testcase_21 AC 88 ms
20,864 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;
namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
#if LocalDebug
            var exStdIn = new System.IO.StreamReader("stdin.txt");
            System.Console.SetIn(exStdIn);
#endif
            var Input = GetList();
            var Length = int.Parse(Input[0]);
            var Eat = int.Parse(Input[1]);
            var time = 0;

            while (true)
            {
                if (Length <= (Eat * 2))
                {
                    break;
                }
                Length -= (Eat * 2);
                time++;
            }

            Console.WriteLine(Eat * time);


#if LocalDebug
            System.Console.ReadKey();
#endif
        }




        static int GetData()
        {
            return int.Parse(Console.ReadLine());
        }

        static string[] GetList()
        {
            return Console.ReadLine().Split(' ');
        }



    }
}

0