結果

問題 No.406 鴨等間隔の法則
ユーザー jamadjamad
提出日時 2017-07-23 18:31:38
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 80 ms / 2,000 ms
コード長 119 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 10,684 KB
実行使用メモリ 19,000 KB
最終ジャッジ日時 2023-09-21 18:33:13
合計ジャッジ時間 2,999 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
13,100 KB
testcase_01 AC 15 ms
7,796 KB
testcase_02 AC 15 ms
7,796 KB
testcase_03 AC 15 ms
7,896 KB
testcase_04 AC 77 ms
18,016 KB
testcase_05 AC 36 ms
12,280 KB
testcase_06 AC 36 ms
12,540 KB
testcase_07 AC 39 ms
12,516 KB
testcase_08 AC 71 ms
18,396 KB
testcase_09 AC 77 ms
18,900 KB
testcase_10 AC 40 ms
13,412 KB
testcase_11 AC 64 ms
16,568 KB
testcase_12 AC 46 ms
13,576 KB
testcase_13 AC 44 ms
13,072 KB
testcase_14 AC 66 ms
17,084 KB
testcase_15 AC 17 ms
8,708 KB
testcase_16 AC 20 ms
9,580 KB
testcase_17 AC 17 ms
8,584 KB
testcase_18 AC 19 ms
9,532 KB
testcase_19 AC 19 ms
9,028 KB
testcase_20 AC 22 ms
9,412 KB
testcase_21 AC 23 ms
10,248 KB
testcase_22 AC 28 ms
10,500 KB
testcase_23 AC 49 ms
13,756 KB
testcase_24 AC 58 ms
15,836 KB
testcase_25 AC 80 ms
19,000 KB
testcase_26 AC 75 ms
18,964 KB
testcase_27 AC 56 ms
18,956 KB
testcase_28 AC 55 ms
18,880 KB
testcase_29 AC 74 ms
18,844 KB
testcase_30 AC 73 ms
18,852 KB
testcase_31 AC 75 ms
18,496 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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