結果

問題 No.166 マス埋めゲーム
ユーザー kmtrc130kmtrc130
提出日時 2017-05-17 10:04:42
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 915 ms
コンパイル使用メモリ 106,072 KB
実行使用メモリ 24,112 KB
最終ジャッジ日時 2023-10-17 14:40:20
合計ジャッジ時間 2,287 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
24,112 KB
testcase_01 AC 24 ms
24,112 KB
testcase_02 AC 24 ms
24,112 KB
testcase_03 AC 25 ms
24,112 KB
testcase_04 AC 24 ms
24,112 KB
testcase_05 AC 23 ms
24,112 KB
testcase_06 AC 24 ms
24,112 KB
testcase_07 AC 24 ms
24,112 KB
testcase_08 AC 24 ms
24,112 KB
testcase_09 AC 25 ms
24,112 KB
testcase_10 AC 24 ms
24,112 KB
testcase_11 AC 24 ms
24,112 KB
testcase_12 WA -
testcase_13 RE -
testcase_14 RE -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 24 ms
24,112 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(string[] args)
    {
        string[] HWNK = Console.ReadLine().Split(' ');
        int H = int.Parse(HWNK[0]);
        int W = int.Parse(HWNK[1]);
        int N = int.Parse(HWNK[2]);
        int K = int.Parse(HWNK[3]);

        int loser = H * W % N;
        if (loser == 0) { loser = N; }

        Console.WriteLine(loser == K ? "YES" : "NO");
    }
}
0