結果

問題 No.384 マス埋めゲーム2
ユーザー huffman56huffman56
提出日時 2022-11-12 17:50:36
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 522 bytes
コンパイル時間 3,247 ms
コンパイル使用メモリ 106,292 KB
実行使用メモリ 25,844 KB
最終ジャッジ日時 2023-10-12 08:33:33
合計ジャッジ時間 5,005 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 RE -
testcase_02 AC 65 ms
23,812 KB
testcase_03 AC 63 ms
23,864 KB
testcase_04 AC 61 ms
19,864 KB
testcase_05 AC 61 ms
21,832 KB
testcase_06 AC 60 ms
21,656 KB
testcase_07 AC 60 ms
23,768 KB
testcase_08 AC 63 ms
23,760 KB
testcase_09 AC 61 ms
21,704 KB
testcase_10 AC 62 ms
21,848 KB
testcase_11 AC 60 ms
19,728 KB
testcase_12 AC 63 ms
21,804 KB
testcase_13 AC 62 ms
23,792 KB
testcase_14 AC 62 ms
23,920 KB
testcase_15 AC 61 ms
21,788 KB
testcase_16 RE -
testcase_17 RE -
testcase_18 AC 63 ms
25,844 KB
testcase_19 AC 61 ms
21,760 KB
testcase_20 WA -
testcase_21 AC 62 ms
21,792 KB
testcase_22 RE -
testcase_23 RE -
testcase_24 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.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