結果

問題 No.406 鴨等間隔の法則
ユーザー tabataba
提出日時 2017-04-03 02:54:15
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 103 ms / 2,000 ms
コード長 118 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 10,644 KB
実行使用メモリ 21,540 KB
最終ジャッジ日時 2023-09-21 18:25:15
合計ジャッジ時間 3,562 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 48 ms
14,976 KB
testcase_01 AC 16 ms
7,744 KB
testcase_02 AC 16 ms
7,836 KB
testcase_03 AC 16 ms
7,860 KB
testcase_04 AC 94 ms
21,052 KB
testcase_05 AC 43 ms
14,104 KB
testcase_06 AC 45 ms
14,512 KB
testcase_07 AC 46 ms
14,676 KB
testcase_08 AC 93 ms
21,540 KB
testcase_09 AC 101 ms
20,896 KB
testcase_10 AC 48 ms
15,064 KB
testcase_11 AC 77 ms
16,700 KB
testcase_12 AC 57 ms
14,936 KB
testcase_13 AC 53 ms
14,528 KB
testcase_14 AC 78 ms
20,088 KB
testcase_15 AC 17 ms
8,724 KB
testcase_16 AC 20 ms
9,436 KB
testcase_17 AC 18 ms
8,600 KB
testcase_18 AC 21 ms
9,504 KB
testcase_19 AC 21 ms
9,576 KB
testcase_20 AC 24 ms
9,976 KB
testcase_21 AC 26 ms
10,216 KB
testcase_22 AC 32 ms
13,108 KB
testcase_23 AC 59 ms
15,424 KB
testcase_24 AC 61 ms
16,312 KB
testcase_25 AC 103 ms
21,040 KB
testcase_26 AC 84 ms
21,200 KB
testcase_27 AC 49 ms
19,028 KB
testcase_28 AC 75 ms
20,984 KB
testcase_29 AC 90 ms
21,192 KB
testcase_30 AC 90 ms
20,868 KB
testcase_31 AC 99 ms
19,600 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

input()
x=sorted(map(int,input().split()))
print(["NO","YES"][x==sorted(set(x))==list(range(x[0],x[-1]+1,x[1]-x[0]))])
0