結果

問題 No.406 鴨等間隔の法則
ユーザー c-yanc-yan
提出日時 2020-06-24 00:20:11
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 195 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,548 KB
実行使用メモリ 19,020 KB
最終ジャッジ日時 2023-09-16 20:20:56
合計ジャッジ時間 3,013 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
12,616 KB
testcase_01 AC 15 ms
8,208 KB
testcase_02 AC 15 ms
7,764 KB
testcase_03 WA -
testcase_04 AC 61 ms
18,016 KB
testcase_05 AC 30 ms
11,616 KB
testcase_06 AC 32 ms
11,980 KB
testcase_07 AC 33 ms
11,936 KB
testcase_08 AC 65 ms
18,348 KB
testcase_09 AC 65 ms
18,860 KB
testcase_10 AC 35 ms
12,224 KB
testcase_11 AC 53 ms
16,432 KB
testcase_12 AC 39 ms
13,528 KB
testcase_13 AC 37 ms
12,892 KB
testcase_14 AC 78 ms
17,164 KB
testcase_15 WA -
testcase_16 AC 18 ms
8,928 KB
testcase_17 AC 17 ms
8,564 KB
testcase_18 AC 17 ms
8,748 KB
testcase_19 AC 21 ms
8,988 KB
testcase_20 AC 23 ms
9,320 KB
testcase_21 AC 21 ms
9,372 KB
testcase_22 AC 31 ms
10,412 KB
testcase_23 AC 42 ms
13,796 KB
testcase_24 AC 69 ms
15,936 KB
testcase_25 AC 69 ms
18,816 KB
testcase_26 AC 95 ms
18,952 KB
testcase_27 WA -
testcase_28 AC 47 ms
18,892 KB
testcase_29 AC 93 ms
18,924 KB
testcase_30 AC 91 ms
18,788 KB
testcase_31 AC 66 ms
18,596 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
x = list(map(int, input().split()))

x.sort()
t = x[1] - x[0]

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