結果

問題 No.1714 Tag on Grid
ユーザー 👑 kakel-sankakel-san
提出日時 2021-10-22 21:26:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 28 ms / 2,000 ms
コード長 659 bytes
コンパイル時間 2,095 ms
コンパイル使用メモリ 111,704 KB
実行使用メモリ 25,436 KB
最終ジャッジ日時 2023-10-24 12:17:14
合計ジャッジ時間 3,498 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 27 ms
25,436 KB
testcase_01 AC 27 ms
25,436 KB
testcase_02 AC 28 ms
25,436 KB
testcase_03 AC 27 ms
25,436 KB
testcase_04 AC 27 ms
25,436 KB
testcase_05 AC 27 ms
25,436 KB
testcase_06 AC 27 ms
25,436 KB
testcase_07 AC 27 ms
25,436 KB
testcase_08 AC 27 ms
25,436 KB
testcase_09 AC 27 ms
25,436 KB
testcase_10 AC 27 ms
25,436 KB
testcase_11 AC 28 ms
25,436 KB
testcase_12 AC 28 ms
25,436 KB
testcase_13 AC 27 ms
25,436 KB
testcase_14 AC 27 ms
25,436 KB
testcase_15 AC 28 ms
25,436 KB
testcase_16 AC 27 ms
25,436 KB
testcase_17 AC 27 ms
25,436 KB
testcase_18 AC 27 ms
25,436 KB
testcase_19 AC 27 ms
25,436 KB
testcase_20 AC 27 ms
25,436 KB
testcase_21 AC 27 ms
25,436 KB
testcase_22 AC 27 ms
25,436 KB
testcase_23 AC 27 ms
25,436 KB
testcase_24 AC 27 ms
25,436 KB
testcase_25 AC 27 ms
25,436 KB
testcase_26 AC 27 ms
25,436 KB
testcase_27 AC 27 ms
25,436 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 static System.Console;
using System.Linq;

class yuki319
{
    static int NN => int.Parse(ReadLine());
    static int[] NList => ReadLine().Split().Select(int.Parse).ToArray();
    static int[][] NArr(int n) => Enumerable.Repeat(0, n).Select(_ => NList).ToArray();
    static void Main()
    {
        var c = NList;
        c = NList;
        var (ni, nj) = (c[0], c[1]);
        c = NList;
        var (zi, zj) = (c[0], c[1]);
        var dist = Math.Abs(ni - zi) + Math.Abs(nj - zj);
        if (dist == 0 || dist % 2 == 1) WriteLine("Yes");
        else WriteLine("No");
    }
}
0