結果

問題 No.406 鴨等間隔の法則
ユーザー daku9640daku9640
提出日時 2016-10-14 06:44:42
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 173 bytes
コンパイル時間 94 ms
コンパイル使用メモリ 10,720 KB
実行使用メモリ 22,152 KB
最終ジャッジ日時 2023-09-21 18:16:23
合計ジャッジ時間 3,346 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 47 ms
15,324 KB
testcase_01 AC 15 ms
7,740 KB
testcase_02 AC 16 ms
7,812 KB
testcase_03 AC 15 ms
7,732 KB
testcase_04 AC 93 ms
22,040 KB
testcase_05 AC 43 ms
15,256 KB
testcase_06 AC 45 ms
15,144 KB
testcase_07 AC 45 ms
15,312 KB
testcase_08 AC 91 ms
22,044 KB
testcase_09 AC 98 ms
22,032 KB
testcase_10 AC 47 ms
15,444 KB
testcase_11 AC 76 ms
17,796 KB
testcase_12 AC 55 ms
15,472 KB
testcase_13 AC 52 ms
15,552 KB
testcase_14 AC 82 ms
19,588 KB
testcase_15 AC 18 ms
8,768 KB
testcase_16 AC 21 ms
9,608 KB
testcase_17 AC 19 ms
8,708 KB
testcase_18 AC 21 ms
9,844 KB
testcase_19 AC 21 ms
9,404 KB
testcase_20 AC 23 ms
9,860 KB
testcase_21 AC 25 ms
10,836 KB
testcase_22 AC 33 ms
13,068 KB
testcase_23 AC 58 ms
15,920 KB
testcase_24 AC 68 ms
16,000 KB
testcase_25 AC 103 ms
22,132 KB
testcase_26 AC 91 ms
20,912 KB
testcase_27 AC 61 ms
18,788 KB
testcase_28 AC 74 ms
22,152 KB
testcase_29 AC 92 ms
20,792 KB
testcase_30 AC 90 ms
20,652 KB
testcase_31 AC 97 ms
21,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = sorted([int(i) for i in input().split()])
x_s = set([i - j for i, j in zip(x[1:], x[:-1])])
print("YES" if len(set(x)) == n and len(x_s) == 1 else "NO")
0