結果

問題 No.166 マス埋めゲーム
ユーザー bluemegane
提出日時 2018-09-20 08:51:39
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 23 ms / 1,000 ms
コード長 441 bytes
コンパイル時間 760 ms
コンパイル使用メモリ 110,968 KB
実行使用メモリ 26,068 KB
最終ジャッジ日時 2024-07-18 08:27:54
合計ジャッジ時間 1,696 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;

public class Hello
{
    public static void Main()
    {
        string[] line = Console.ReadLine().Trim().Split(' ');
        var h = long.Parse(line[0]);
        var w = long.Parse(line[1]);
        var hw = h * w;
        var n = long.Parse(line[2]);
        var k = long.Parse(line[3]);
        if ((n != k && hw % n == k) | (n == k && hw % n == 0)) Console.WriteLine("YES");
        else Console.WriteLine("NO");
    }
}
0