結果

問題 No.63 ポッキーゲーム
ユーザー fujitafujita
提出日時 2023-04-25 10:36:27
言語 C#
(.NET 8.0.203)
結果
WA  
実行時間 -
コード長 761 bytes
コンパイル時間 11,126 ms
コンパイル使用メモリ 170,032 KB
実行使用メモリ 183,452 KB
最終ジャッジ日時 2024-04-26 17:19:40
合計ジャッジ時間 13,404 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
28,800 KB
testcase_01 AC 51 ms
28,416 KB
testcase_02 WA -
testcase_03 AC 50 ms
28,416 KB
testcase_04 AC 50 ms
28,928 KB
testcase_05 AC 50 ms
28,544 KB
testcase_06 AC 46 ms
28,672 KB
testcase_07 AC 49 ms
28,800 KB
testcase_08 AC 50 ms
28,544 KB
testcase_09 AC 50 ms
28,928 KB
testcase_10 AC 49 ms
28,800 KB
testcase_11 AC 49 ms
28,544 KB
testcase_12 AC 48 ms
28,800 KB
testcase_13 WA -
testcase_14 AC 47 ms
28,400 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 50 ms
183,452 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.csproj を復元しました (94 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

using System;
namespace yukicoder
{
    class Program
    {

        static void Main(string[] args)
        {
            var L = Console.ReadLine();
            var z = L.Split(" ");
            int[] ints = new int[z.Length];
            //文字分割
            for (int i = 0; i < z.Length; i++)
            {
                ints[i] = int.Parse(z[i]);
            }

            if (ints[0] / 2 <= ints[1])
            {
                Console.WriteLine("0");
            }
            else if (!(ints[0] % (ints[1] * 2) == 0))
            {
                int temp = ints[0] / (ints[1] * 2);
                int ans = temp * ints[1];
                Console.WriteLine(ans);
            }
            {
                
            }
        }
    }
}
0