結果

問題 No.166 マス埋めゲーム
ユーザー kmtrc130
提出日時 2017-05-17 10:04:42
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 425 bytes
コンパイル時間 3,408 ms
コンパイル使用メモリ 108,100 KB
実行使用メモリ 25,872 KB
最終ジャッジ日時 2024-09-17 12:27:02
合計ジャッジ時間 2,167 ms
ジャッジサーバーID
(参考情報)
judge6 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 11 WA * 4 RE * 5
権限があれば一括ダウンロードができます
コンパイルメッセージ
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