結果

問題 No.406 鴨等間隔の法則
ユーザー akitsugu777akitsugu777
提出日時 2021-02-03 15:11:14
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 142 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 10,716 KB
実行使用メモリ 19,016 KB
最終ジャッジ日時 2023-09-12 13:07:03
合計ジャッジ時間 3,361 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 40 ms
12,540 KB
testcase_01 WA -
testcase_02 AC 15 ms
7,820 KB
testcase_03 AC 15 ms
7,900 KB
testcase_04 AC 75 ms
17,920 KB
testcase_05 AC 37 ms
12,264 KB
testcase_06 AC 37 ms
12,564 KB
testcase_07 AC 38 ms
12,572 KB
testcase_08 AC 74 ms
18,520 KB
testcase_09 AC 85 ms
18,748 KB
testcase_10 AC 41 ms
12,664 KB
testcase_11 AC 68 ms
16,652 KB
testcase_12 AC 48 ms
13,520 KB
testcase_13 AC 46 ms
13,124 KB
testcase_14 WA -
testcase_15 AC 18 ms
8,644 KB
testcase_16 AC 19 ms
8,860 KB
testcase_17 AC 18 ms
8,552 KB
testcase_18 AC 19 ms
8,896 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 23 ms
9,956 KB
testcase_22 WA -
testcase_23 AC 49 ms
13,708 KB
testcase_24 WA -
testcase_25 AC 82 ms
18,976 KB
testcase_26 WA -
testcase_27 AC 57 ms
18,828 KB
testcase_28 AC 57 ms
18,836 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 78 ms
18,532 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(L) == 1 and L[0] != 0])
0