結果

問題 No.406 鴨等間隔の法則
ユーザー akitsugu777akitsugu777
提出日時 2021-02-03 14:59:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 179 bytes
コンパイル時間 997 ms
コンパイル使用メモリ 10,616 KB
実行使用メモリ 18,872 KB
最終ジャッジ日時 2023-09-12 13:02:16
合計ジャッジ時間 5,167 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
12,476 KB
testcase_01 AC 16 ms
7,720 KB
testcase_02 AC 16 ms
7,792 KB
testcase_03 WA -
testcase_04 AC 65 ms
17,964 KB
testcase_05 AC 33 ms
11,456 KB
testcase_06 AC 33 ms
11,848 KB
testcase_07 AC 34 ms
11,912 KB
testcase_08 AC 65 ms
18,404 KB
testcase_09 AC 69 ms
18,716 KB
testcase_10 AC 36 ms
12,184 KB
testcase_11 AC 57 ms
16,472 KB
testcase_12 AC 42 ms
13,468 KB
testcase_13 AC 40 ms
12,904 KB
testcase_14 AC 84 ms
17,016 KB
testcase_15 WA -
testcase_16 AC 19 ms
8,872 KB
testcase_17 AC 17 ms
8,212 KB
testcase_18 AC 18 ms
8,868 KB
testcase_19 AC 22 ms
8,948 KB
testcase_20 AC 24 ms
9,544 KB
testcase_21 AC 22 ms
9,240 KB
testcase_22 AC 31 ms
10,548 KB
testcase_23 AC 44 ms
13,756 KB
testcase_24 AC 72 ms
15,768 KB
testcase_25 AC 70 ms
18,800 KB
testcase_26 AC 95 ms
18,860 KB
testcase_27 WA -
testcase_28 AC 48 ms
18,788 KB
testcase_29 AC 96 ms
18,824 KB
testcase_30 AC 94 ms
18,784 KB
testcase_31 AC 67 ms
18,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = sorted(map(int, input().split()))

Y = X[1] - X[0]
for i in range(1, N-1):
    if X[i+1] - X[i] != Y:
        print('NO')
        break
else:
    print('YES')
0