結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
13,352 KB
testcase_01 AC 16 ms
7,852 KB
testcase_02 AC 16 ms
7,764 KB
testcase_03 AC 15 ms
7,856 KB
testcase_04 AC 74 ms
17,940 KB
testcase_05 AC 37 ms
12,332 KB
testcase_06 AC 38 ms
12,464 KB
testcase_07 AC 39 ms
12,788 KB
testcase_08 AC 74 ms
18,436 KB
testcase_09 AC 80 ms
18,720 KB
testcase_10 AC 40 ms
13,036 KB
testcase_11 AC 65 ms
16,492 KB
testcase_12 AC 47 ms
13,512 KB
testcase_13 AC 45 ms
13,016 KB
testcase_14 AC 69 ms
16,960 KB
testcase_15 AC 17 ms
8,820 KB
testcase_16 AC 20 ms
9,568 KB
testcase_17 AC 18 ms
8,424 KB
testcase_18 AC 19 ms
9,448 KB
testcase_19 AC 20 ms
9,028 KB
testcase_20 AC 22 ms
9,500 KB
testcase_21 AC 24 ms
10,312 KB
testcase_22 AC 28 ms
10,296 KB
testcase_23 AC 49 ms
13,740 KB
testcase_24 AC 59 ms
15,848 KB
testcase_25 AC 79 ms
18,712 KB
testcase_26 AC 76 ms
18,712 KB
testcase_27 AC 56 ms
18,808 KB
testcase_28 AC 57 ms
18,780 KB
testcase_29 AC 78 ms
18,808 KB
testcase_30 AC 76 ms
18,720 KB
testcase_31 AC 78 ms
18,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

i=input
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