結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 43 ms
13,180 KB
testcase_01 AC 16 ms
7,868 KB
testcase_02 AC 15 ms
7,844 KB
testcase_03 AC 15 ms
7,860 KB
testcase_04 AC 77 ms
17,948 KB
testcase_05 AC 37 ms
12,408 KB
testcase_06 AC 38 ms
12,424 KB
testcase_07 AC 39 ms
12,732 KB
testcase_08 AC 77 ms
18,308 KB
testcase_09 AC 84 ms
18,852 KB
testcase_10 AC 42 ms
13,292 KB
testcase_11 AC 66 ms
16,372 KB
testcase_12 AC 48 ms
13,500 KB
testcase_13 AC 46 ms
13,040 KB
testcase_14 AC 68 ms
17,028 KB
testcase_15 AC 18 ms
8,704 KB
testcase_16 AC 20 ms
9,644 KB
testcase_17 AC 18 ms
8,580 KB
testcase_18 AC 19 ms
9,568 KB
testcase_19 AC 20 ms
9,172 KB
testcase_20 AC 22 ms
9,512 KB
testcase_21 AC 24 ms
10,252 KB
testcase_22 AC 28 ms
10,380 KB
testcase_23 AC 49 ms
13,772 KB
testcase_24 AC 58 ms
16,220 KB
testcase_25 AC 85 ms
18,832 KB
testcase_26 AC 77 ms
19,056 KB
testcase_27 AC 55 ms
19,008 KB
testcase_28 AC 57 ms
18,988 KB
testcase_29 AC 77 ms
18,940 KB
testcase_30 AC 77 ms
18,912 KB
testcase_31 AC 79 ms
18,464 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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