結果

問題 No.406 鴨等間隔の法則
ユーザー Luoto-greenLuoto-green
提出日時 2017-07-27 20:04:45
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 151 bytes
コンパイル時間 82 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,864 KB
最終ジャッジ日時 2024-04-25 01:12:51
合計ジャッジ時間 3,053 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
15,728 KB
testcase_01 RE -
testcase_02 AC 26 ms
10,624 KB
testcase_03 RE -
testcase_04 AC 85 ms
20,452 KB
testcase_05 AC 48 ms
15,364 KB
testcase_06 AC 50 ms
14,600 KB
testcase_07 AC 52 ms
16,572 KB
testcase_08 AC 89 ms
21,024 KB
testcase_09 AC 95 ms
21,416 KB
testcase_10 AC 54 ms
15,760 KB
testcase_11 AC 76 ms
18,940 KB
testcase_12 AC 57 ms
17,092 KB
testcase_13 AC 60 ms
15,880 KB
testcase_14 RE -
testcase_15 RE -
testcase_16 AC 32 ms
12,160 KB
testcase_17 AC 29 ms
11,392 KB
testcase_18 AC 28 ms
12,160 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 32 ms
12,800 KB
testcase_22 RE -
testcase_23 AC 60 ms
17,080 KB
testcase_24 RE -
testcase_25 AC 94 ms
21,492 KB
testcase_26 RE -
testcase_27 RE -
testcase_28 AC 68 ms
21,488 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 86 ms
21,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
A = sorted(map(int,input().split()))
x = [xi - xj for xi, xj in zip(A[:-1], A[1:])]
print(["NO","YES"][len(set(x))==1 and 0 not in s])
0