結果

問題 No.406 鴨等間隔の法則
ユーザー MinixMinix
提出日時 2021-08-29 19:19:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 77 ms / 2,000 ms
コード長 135 bytes
コンパイル時間 84 ms
コンパイル使用メモリ 10,544 KB
実行使用メモリ 21,668 KB
最終ジャッジ日時 2023-08-14 11:10:38
合計ジャッジ時間 3,320 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
13,448 KB
testcase_01 AC 13 ms
7,944 KB
testcase_02 AC 13 ms
7,832 KB
testcase_03 AC 12 ms
7,840 KB
testcase_04 AC 68 ms
17,884 KB
testcase_05 AC 34 ms
13,224 KB
testcase_06 AC 34 ms
13,072 KB
testcase_07 AC 34 ms
13,344 KB
testcase_08 AC 71 ms
18,448 KB
testcase_09 AC 73 ms
18,892 KB
testcase_10 AC 36 ms
13,368 KB
testcase_11 AC 59 ms
16,572 KB
testcase_12 AC 42 ms
13,496 KB
testcase_13 AC 41 ms
13,404 KB
testcase_14 AC 71 ms
20,000 KB
testcase_15 AC 15 ms
8,816 KB
testcase_16 AC 17 ms
9,500 KB
testcase_17 AC 15 ms
8,648 KB
testcase_18 AC 16 ms
9,676 KB
testcase_19 AC 18 ms
9,704 KB
testcase_20 AC 21 ms
9,984 KB
testcase_21 AC 21 ms
10,400 KB
testcase_22 AC 28 ms
13,424 KB
testcase_23 AC 46 ms
13,852 KB
testcase_24 AC 55 ms
15,900 KB
testcase_25 AC 73 ms
18,844 KB
testcase_26 AC 75 ms
21,652 KB
testcase_27 AC 50 ms
18,876 KB
testcase_28 AC 51 ms
18,960 KB
testcase_29 AC 75 ms
21,668 KB
testcase_30 AC 77 ms
21,528 KB
testcase_31 AC 73 ms
18,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=sorted([*map(int,input().split())])
y=len({*[x[i+1]-x[i]for i in range(n-1)]})
print('YNEOS'[y!=1 or len({*x})!=n::2])
0