結果

問題 No.406 鴨等間隔の法則
ユーザー jamadjamad
提出日時 2017-07-23 18:27:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 10,652 KB
実行使用メモリ 18,956 KB
最終ジャッジ日時 2023-09-21 18:32:50
合計ジャッジ時間 3,160 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
13,072 KB
testcase_01 AC 16 ms
7,872 KB
testcase_02 AC 15 ms
7,816 KB
testcase_03 AC 15 ms
7,896 KB
testcase_04 AC 74 ms
17,956 KB
testcase_05 AC 36 ms
12,260 KB
testcase_06 AC 38 ms
12,588 KB
testcase_07 AC 39 ms
12,484 KB
testcase_08 AC 73 ms
18,368 KB
testcase_09 AC 81 ms
18,880 KB
testcase_10 AC 41 ms
13,208 KB
testcase_11 AC 65 ms
16,508 KB
testcase_12 AC 48 ms
13,520 KB
testcase_13 AC 45 ms
13,052 KB
testcase_14 AC 67 ms
17,144 KB
testcase_15 AC 17 ms
8,816 KB
testcase_16 AC 20 ms
9,572 KB
testcase_17 AC 18 ms
8,548 KB
testcase_18 AC 19 ms
9,648 KB
testcase_19 AC 20 ms
9,076 KB
testcase_20 AC 21 ms
9,552 KB
testcase_21 AC 23 ms
10,284 KB
testcase_22 AC 27 ms
10,532 KB
testcase_23 AC 48 ms
13,684 KB
testcase_24 AC 56 ms
15,948 KB
testcase_25 AC 81 ms
18,796 KB
testcase_26 AC 76 ms
18,956 KB
testcase_27 AC 52 ms
18,900 KB
testcase_28 AC 56 ms
18,864 KB
testcase_29 AC 76 ms
18,900 KB
testcase_30 AC 77 ms
18,836 KB
testcase_31 AC 77 ms
18,616 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

i=input
N=int(i())
X=sorted(map(int,i().split()))
Y={x-y for x,y in zip(X[1:],X)}
print(('NO','YES')[0 not in Y and len(Y)==1])
0