結果

問題 No.384 マス埋めゲーム2
ユーザー huffman56
提出日時 2022-11-12 17:50:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 522 bytes
コンパイル時間 864 ms
コンパイル使用メモリ 104,448 KB
実行使用メモリ 19,072 KB
最終ジャッジ日時 2024-09-14 07:36:04
合計ジャッジ時間 2,488 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 14 WA * 2 RE * 6
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;
using System.Numerics;
using static System.Math;

namespace SortItems
{
    class Program
    {
        static void Main(string[] args)
        {
            var num = Console.ReadLine().Split().Select(int.Parse).ToArray();
            var h = num[0];
            var w = num[1];
            var n = num[2];
            var k = num[3];

            var sum = (h + w) - 1;

            Console.WriteLine((sum % n) == k ? "YES" : "NO");


        }
    }
}
0