結果

問題 No.166 マス埋めゲーム
ユーザー mbanmban
提出日時 2016-11-06 22:36:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 965 ms
コンパイル使用メモリ 106,496 KB
実行使用メモリ 19,072 KB
最終ジャッジ日時 2024-05-03 22:25:46
合計ジャッジ時間 2,394 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
18,944 KB
testcase_01 AC 27 ms
18,944 KB
testcase_02 AC 27 ms
18,816 KB
testcase_03 AC 27 ms
18,816 KB
testcase_04 AC 27 ms
18,944 KB
testcase_05 AC 27 ms
18,688 KB
testcase_06 AC 27 ms
18,944 KB
testcase_07 AC 27 ms
18,944 KB
testcase_08 AC 27 ms
19,072 KB
testcase_09 AC 27 ms
18,944 KB
testcase_10 AC 27 ms
19,072 KB
testcase_11 AC 27 ms
18,944 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 28 ms
19,072 KB
testcase_18 WA -
testcase_19 RE -
testcase_20 RE -
testcase_21 RE -
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

class Magatro
{
   static void Main() {
        int h, w, n, k;
        int[] q = Console.ReadLine().Split(' ').Select(s => int.Parse(s)).ToArray();
        h = q[0];
        w = q[1];
        n = q[2];
        k = q[3];
        k %= n;
        if ((h * w) % n == k)
        {
            Console.WriteLine("YES");
        }
        else
        {
            Console.WriteLine("NO");
        }
    }
}
0