結果

問題 No.166 マス埋めゲーム
ユーザー mencottonmencotton
提出日時 2017-12-29 23:50:00
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 59 ms / 1,000 ms
コード長 391 bytes
コンパイル時間 4,137 ms
コンパイル使用メモリ 101,796 KB
実行使用メモリ 23,996 KB
最終ジャッジ日時 2023-08-23 09:10:02
合計ジャッジ時間 4,396 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
21,944 KB
testcase_01 AC 57 ms
21,904 KB
testcase_02 AC 59 ms
19,840 KB
testcase_03 AC 58 ms
21,956 KB
testcase_04 AC 58 ms
21,876 KB
testcase_05 AC 59 ms
23,960 KB
testcase_06 AC 59 ms
22,024 KB
testcase_07 AC 58 ms
23,912 KB
testcase_08 AC 58 ms
23,908 KB
testcase_09 AC 58 ms
21,932 KB
testcase_10 AC 58 ms
23,992 KB
testcase_11 AC 58 ms
19,812 KB
testcase_12 AC 58 ms
21,952 KB
testcase_13 AC 58 ms
23,996 KB
testcase_14 AC 58 ms
22,028 KB
testcase_15 AC 59 ms
21,952 KB
testcase_16 AC 58 ms
22,036 KB
testcase_17 AC 58 ms
21,852 KB
testcase_18 AC 58 ms
21,792 KB
testcase_19 AC 59 ms
23,856 KB
testcase_20 AC 59 ms
21,964 KB
testcase_21 AC 59 ms
21,876 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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;

namespace Test
{
    class Program
    {
        static void Main(string[] args)
        {
            long[] x = Console.ReadLine().Split().Select(long.Parse).ToArray();
            long a = x[0] % x[2];
            a *= x[1] % x[2];
            Console.WriteLine(a % x[2] == x[3] % x[2] ? "YES" : "NO");
        }
    }
}
0