結果

問題 No.166 マス埋めゲーム
ユーザー しらゆきしらゆき
提出日時 2015-11-19 12:50:46
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 1,000 ms
コード長 408 bytes
コンパイル時間 4,188 ms
コンパイル使用メモリ 101,708 KB
実行使用メモリ 23,984 KB
最終ジャッジ日時 2023-10-11 18:03:34
合計ジャッジ時間 4,429 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 59 ms
21,796 KB
testcase_01 AC 61 ms
23,820 KB
testcase_02 AC 60 ms
21,860 KB
testcase_03 AC 59 ms
21,932 KB
testcase_04 AC 59 ms
21,860 KB
testcase_05 AC 59 ms
19,688 KB
testcase_06 AC 60 ms
23,856 KB
testcase_07 AC 60 ms
21,864 KB
testcase_08 AC 59 ms
19,756 KB
testcase_09 AC 61 ms
23,944 KB
testcase_10 AC 60 ms
21,744 KB
testcase_11 AC 61 ms
23,984 KB
testcase_12 AC 60 ms
21,728 KB
testcase_13 AC 60 ms
23,976 KB
testcase_14 AC 59 ms
21,744 KB
testcase_15 AC 60 ms
21,900 KB
testcase_16 AC 60 ms
21,976 KB
testcase_17 AC 60 ms
21,888 KB
testcase_18 AC 60 ms
21,812 KB
testcase_19 AC 60 ms
23,832 KB
testcase_20 AC 60 ms
21,916 KB
testcase_21 AC 61 ms
21,744 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.Linq;

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

        long a = h * w;
        a %= n;
        if (a == 0) a = n;

        if (k == a) Console.WriteLine("YES");
        else Console.WriteLine("NO");

    }
}
0