結果

問題 No.166 マス埋めゲーム
ユーザー mbanmban
提出日時 2016-11-06 22:36:37
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 470 bytes
コンパイル時間 2,339 ms
コンパイル使用メモリ 103,716 KB
実行使用メモリ 23,972 KB
最終ジャッジ日時 2023-08-16 14:04:06
合計ジャッジ時間 4,722 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
21,800 KB
testcase_01 AC 60 ms
23,972 KB
testcase_02 AC 58 ms
23,764 KB
testcase_03 AC 58 ms
19,760 KB
testcase_04 AC 61 ms
21,956 KB
testcase_05 AC 61 ms
21,876 KB
testcase_06 AC 60 ms
21,772 KB
testcase_07 AC 58 ms
21,832 KB
testcase_08 AC 59 ms
21,788 KB
testcase_09 AC 58 ms
21,708 KB
testcase_10 AC 59 ms
21,780 KB
testcase_11 AC 60 ms
19,744 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 59 ms
23,940 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