結果

問題 No.406 鴨等間隔の法則
ユーザー akasatanananaakasatananana
提出日時 2019-09-18 23:45:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 217 bytes
コンパイル時間 108 ms
コンパイル使用メモリ 10,692 KB
実行使用メモリ 18,988 KB
最終ジャッジ日時 2023-09-24 22:45:18
合計ジャッジ時間 3,294 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 39 ms
12,580 KB
testcase_01 AC 16 ms
7,868 KB
testcase_02 AC 16 ms
7,884 KB
testcase_03 WA -
testcase_04 AC 68 ms
17,992 KB
testcase_05 AC 35 ms
11,468 KB
testcase_06 AC 36 ms
12,056 KB
testcase_07 AC 35 ms
12,080 KB
testcase_08 AC 68 ms
18,376 KB
testcase_09 AC 78 ms
18,904 KB
testcase_10 AC 39 ms
12,376 KB
testcase_11 AC 60 ms
16,604 KB
testcase_12 AC 44 ms
13,436 KB
testcase_13 AC 41 ms
12,924 KB
testcase_14 AC 91 ms
17,116 KB
testcase_15 WA -
testcase_16 AC 19 ms
8,844 KB
testcase_17 AC 18 ms
8,560 KB
testcase_18 AC 18 ms
8,780 KB
testcase_19 AC 23 ms
9,092 KB
testcase_20 AC 25 ms
9,444 KB
testcase_21 AC 22 ms
9,312 KB
testcase_22 AC 33 ms
10,456 KB
testcase_23 AC 46 ms
13,680 KB
testcase_24 AC 77 ms
16,008 KB
testcase_25 AC 74 ms
18,916 KB
testcase_26 AC 108 ms
18,896 KB
testcase_27 WA -
testcase_28 AC 52 ms
18,856 KB
testcase_29 AC 106 ms
18,964 KB
testcase_30 AC 105 ms
18,880 KB
testcase_31 AC 73 ms
18,488 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a=int(input())
b=[int(i) for i in input().split()]
b.sort()
c=b[1]-b[0]
if b.count(b[0])>=2:
    print("NO")
for i in range(1,a):
    d=b[i]-b[i-1]
    if c!=d:
        print("NO")
        break
else:
    print("YES")
0