結果

問題 No.406 鴨等間隔の法則
ユーザー netyo715netyo715
提出日時 2021-06-28 11:19:47
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 10,752 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-09-07 18:20:17
合計ジャッジ時間 3,783 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
13,008 KB
testcase_01 AC 15 ms
7,800 KB
testcase_02 AC 15 ms
7,916 KB
testcase_03 WA -
testcase_04 AC 79 ms
18,060 KB
testcase_05 AC 37 ms
13,080 KB
testcase_06 AC 39 ms
13,064 KB
testcase_07 AC 39 ms
12,948 KB
testcase_08 AC 78 ms
18,344 KB
testcase_09 AC 83 ms
18,772 KB
testcase_10 AC 42 ms
13,372 KB
testcase_11 AC 70 ms
16,404 KB
testcase_12 AC 48 ms
13,448 KB
testcase_13 AC 46 ms
13,236 KB
testcase_14 AC 70 ms
17,028 KB
testcase_15 WA -
testcase_16 AC 20 ms
9,484 KB
testcase_17 AC 17 ms
8,536 KB
testcase_18 AC 18 ms
9,560 KB
testcase_19 AC 20 ms
9,004 KB
testcase_20 AC 22 ms
9,376 KB
testcase_21 AC 23 ms
10,468 KB
testcase_22 AC 28 ms
10,564 KB
testcase_23 AC 52 ms
13,776 KB
testcase_24 AC 60 ms
15,972 KB
testcase_25 AC 84 ms
18,916 KB
testcase_26 AC 80 ms
18,828 KB
testcase_27 WA -
testcase_28 AC 63 ms
18,836 KB
testcase_29 AC 80 ms
18,912 KB
testcase_30 AC 81 ms
18,740 KB
testcase_31 AC 81 ms
18,448 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = list(map(int, input().split()))
X.sort()
y = [X[i+1]-X[i] for i in range(N-1)]
if len(set(y)) != 1:
    print("NO")
else:
    print("YES")
0