結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
13,008 KB
testcase_01 AC 16 ms
7,900 KB
testcase_02 AC 15 ms
7,728 KB
testcase_03 AC 16 ms
7,820 KB
testcase_04 AC 78 ms
17,888 KB
testcase_05 AC 37 ms
12,192 KB
testcase_06 AC 39 ms
12,456 KB
testcase_07 AC 39 ms
12,648 KB
testcase_08 AC 75 ms
18,420 KB
testcase_09 AC 83 ms
18,828 KB
testcase_10 AC 42 ms
13,248 KB
testcase_11 AC 66 ms
16,352 KB
testcase_12 AC 48 ms
13,496 KB
testcase_13 AC 46 ms
13,044 KB
testcase_14 AC 68 ms
16,968 KB
testcase_15 AC 17 ms
8,812 KB
testcase_16 AC 19 ms
9,412 KB
testcase_17 AC 17 ms
8,676 KB
testcase_18 AC 19 ms
9,464 KB
testcase_19 AC 20 ms
9,020 KB
testcase_20 AC 22 ms
9,464 KB
testcase_21 AC 23 ms
10,304 KB
testcase_22 AC 28 ms
10,380 KB
testcase_23 AC 49 ms
13,668 KB
testcase_24 AC 59 ms
16,056 KB
testcase_25 AC 85 ms
18,872 KB
testcase_26 AC 78 ms
19,032 KB
testcase_27 AC 56 ms
18,996 KB
testcase_28 AC 56 ms
19,000 KB
testcase_29 AC 77 ms
19,064 KB
testcase_30 AC 77 ms
18,844 KB
testcase_31 AC 81 ms
18,368 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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