結果

問題 No.406 鴨等間隔の法則
ユーザー keymoonkeymoon
提出日時 2019-02-23 18:38:24
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 596 bytes
コンパイル時間 2,079 ms
コンパイル使用メモリ 103,140 KB
実行使用メモリ 32,756 KB
最終ジャッジ日時 2023-08-20 21:42:53
合計ジャッジ時間 7,941 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 111 ms
24,808 KB
testcase_01 AC 67 ms
21,704 KB
testcase_02 AC 68 ms
23,900 KB
testcase_03 WA -
testcase_04 AC 153 ms
30,196 KB
testcase_05 AC 106 ms
26,684 KB
testcase_06 AC 107 ms
24,712 KB
testcase_07 AC 108 ms
24,824 KB
testcase_08 AC 155 ms
30,144 KB
testcase_09 AC 164 ms
30,656 KB
testcase_10 AC 111 ms
25,028 KB
testcase_11 AC 144 ms
29,336 KB
testcase_12 AC 119 ms
23,120 KB
testcase_13 AC 117 ms
27,168 KB
testcase_14 AC 146 ms
27,184 KB
testcase_15 WA -
testcase_16 AC 81 ms
22,736 KB
testcase_17 AC 79 ms
22,328 KB
testcase_18 AC 83 ms
22,660 KB
testcase_19 AC 88 ms
20,580 KB
testcase_20 AC 84 ms
24,844 KB
testcase_21 AC 86 ms
22,996 KB
testcase_22 AC 94 ms
23,648 KB
testcase_23 AC 124 ms
29,424 KB
testcase_24 AC 142 ms
28,836 KB
testcase_25 AC 167 ms
30,752 KB
testcase_26 AC 165 ms
30,468 KB
testcase_27 WA -
testcase_28 AC 164 ms
32,756 KB
testcase_29 AC 163 ms
30,560 KB
testcase_30 AC 160 ms
30,364 KB
testcase_31 AC 161 ms
32,484 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.IO;
using System.Linq;
using System.Collections;
using System.Collections.Generic;
using System.Numerics;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using Int = System.Int64;
using Debug = System.Diagnostics.Debug;

class P
{
    static void Main()
    {
        int n = int.Parse(Console.ReadLine());
        var a = Console.ReadLine().Split().Select(int.Parse).OrderBy(x => x).ToList();
        Console.WriteLine(a.Zip(a.Skip(1), (x, y) => y - x).Distinct().Count() == 1 ? "YES" : "NO"); ;
    }
}
0