結果

問題 No.406 鴨等間隔の法則
ユーザー akitsugu777akitsugu777
提出日時 2021-02-03 15:12:29
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 84 ms / 2,000 ms
コード長 147 bytes
コンパイル時間 270 ms
コンパイル使用メモリ 10,696 KB
実行使用メモリ 18,924 KB
最終ジャッジ日時 2023-09-12 13:07:29
合計ジャッジ時間 3,240 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
12,992 KB
testcase_01 AC 15 ms
7,880 KB
testcase_02 AC 15 ms
7,916 KB
testcase_03 AC 15 ms
7,800 KB
testcase_04 AC 81 ms
17,992 KB
testcase_05 AC 38 ms
13,128 KB
testcase_06 AC 39 ms
13,136 KB
testcase_07 AC 39 ms
13,116 KB
testcase_08 AC 77 ms
18,440 KB
testcase_09 AC 84 ms
18,760 KB
testcase_10 AC 42 ms
13,140 KB
testcase_11 AC 68 ms
16,440 KB
testcase_12 AC 48 ms
13,376 KB
testcase_13 AC 46 ms
13,300 KB
testcase_14 AC 70 ms
17,168 KB
testcase_15 AC 17 ms
8,612 KB
testcase_16 AC 19 ms
9,512 KB
testcase_17 AC 17 ms
8,568 KB
testcase_18 AC 19 ms
9,664 KB
testcase_19 AC 20 ms
9,160 KB
testcase_20 AC 22 ms
9,700 KB
testcase_21 AC 23 ms
10,536 KB
testcase_22 AC 28 ms
10,792 KB
testcase_23 AC 50 ms
13,812 KB
testcase_24 AC 59 ms
15,972 KB
testcase_25 AC 83 ms
18,924 KB
testcase_26 AC 78 ms
18,844 KB
testcase_27 AC 56 ms
18,784 KB
testcase_28 AC 61 ms
18,768 KB
testcase_29 AC 78 ms
18,768 KB
testcase_30 AC 77 ms
18,800 KB
testcase_31 AC 82 ms
18,612 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = sorted(map(int, input().split()))
L = [X[i+1] - X[i] for i in range(N-1)]
print(['NO', 'YES'][len(set(L)) == 1 and L[0] != 0])
0