結果

問題 No.406 鴨等間隔の法則
ユーザー kimiyukikimiyuki
提出日時 2016-10-08 02:19:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 179 bytes
コンパイル時間 325 ms
コンパイル使用メモリ 10,476 KB
実行使用メモリ 21,580 KB
最終ジャッジ日時 2023-09-21 18:15:00
合計ジャッジ時間 3,176 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
15,028 KB
testcase_01 AC 17 ms
7,820 KB
testcase_02 AC 16 ms
7,920 KB
testcase_03 AC 16 ms
7,748 KB
testcase_04 AC 75 ms
21,052 KB
testcase_05 AC 37 ms
14,244 KB
testcase_06 AC 38 ms
14,620 KB
testcase_07 AC 38 ms
14,708 KB
testcase_08 AC 75 ms
21,580 KB
testcase_09 AC 80 ms
20,880 KB
testcase_10 AC 40 ms
15,112 KB
testcase_11 AC 61 ms
16,576 KB
testcase_12 AC 46 ms
15,016 KB
testcase_13 AC 44 ms
14,664 KB
testcase_14 AC 73 ms
20,320 KB
testcase_15 AC 18 ms
8,772 KB
testcase_16 AC 21 ms
9,516 KB
testcase_17 AC 18 ms
8,664 KB
testcase_18 AC 20 ms
9,536 KB
testcase_19 AC 21 ms
9,648 KB
testcase_20 AC 24 ms
10,144 KB
testcase_21 AC 24 ms
10,188 KB
testcase_22 AC 31 ms
12,864 KB
testcase_23 AC 48 ms
15,468 KB
testcase_24 AC 61 ms
16,352 KB
testcase_25 AC 81 ms
21,028 KB
testcase_26 AC 82 ms
21,144 KB
testcase_27 AC 50 ms
19,080 KB
testcase_28 AC 58 ms
21,200 KB
testcase_29 AC 84 ms
21,220 KB
testcase_30 AC 85 ms
20,876 KB
testcase_31 AC 79 ms
20,644 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/usr/bin/env python3
import operator
n = int(input())
x = sorted(map(int,input().split()))
print(['NO', 'YES'][len(set(x)) == n and len(set(map(operator.sub, x, x[1:]))) == 1])
0