結果

問題 No.166 マス埋めゲーム
ユーザー しらゆきしらゆき
提出日時 2015-11-19 10:13:26
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 385 bytes
コンパイル時間 2,032 ms
コンパイル使用メモリ 104,008 KB
実行使用メモリ 23,896 KB
最終ジャッジ日時 2023-10-11 18:03:07
合計ジャッジ時間 4,578 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
23,888 KB
testcase_01 AC 61 ms
21,864 KB
testcase_02 AC 58 ms
23,808 KB
testcase_03 AC 60 ms
21,804 KB
testcase_04 AC 58 ms
21,716 KB
testcase_05 AC 58 ms
21,816 KB
testcase_06 AC 58 ms
21,936 KB
testcase_07 AC 58 ms
21,968 KB
testcase_08 AC 59 ms
21,960 KB
testcase_09 AC 59 ms
21,848 KB
testcase_10 AC 60 ms
23,840 KB
testcase_11 AC 58 ms
23,784 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 58 ms
21,660 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.Linq;

class Program
{
    static void Main()
    {
        int[] i = Console.ReadLine().Split().Select(int.Parse).ToArray();
        int h = i[0];
        int w = i[1];
        int n = i[2];
        int k = i[3];

        int a = h * w;

        if (a % n == k || a % n == 0 && k == n) Console.WriteLine("YES");
        else Console.WriteLine("NO");
    }
}
0