結果

問題 No.406 鴨等間隔の法則
ユーザー knt3110knt3110
提出日時 2018-05-14 23:41:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 204 bytes
コンパイル時間 254 ms
コンパイル使用メモリ 10,564 KB
実行使用メモリ 19,200 KB
最終ジャッジ日時 2023-09-10 20:47:09
合計ジャッジ時間 3,748 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
12,684 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 15 ms
7,884 KB
testcase_03 WA -
testcase_04 AC 96 ms
17,932 KB
testcase_05 AC 45 ms
11,508 KB
testcase_06 AC 45 ms
11,896 KB
testcase_07 AC 46 ms
12,068 KB
testcase_08 AC 94 ms
18,400 KB
testcase_09 AC 104 ms
18,936 KB
testcase_10 AC 49 ms
12,384 KB
testcase_11 AC 82 ms
16,508 KB
testcase_12 AC 57 ms
13,500 KB
testcase_13 AC 55 ms
13,084 KB
testcase_14 AC 82 ms
17,108 KB
testcase_15 WA -
testcase_16 AC 21 ms
8,988 KB
testcase_17 AC 18 ms
8,512 KB
testcase_18 AC 20 ms
8,744 KB
testcase_19 AC 21 ms
9,164 KB
testcase_20 AC 24 ms
9,444 KB
testcase_21 AC 25 ms
9,472 KB
testcase_22 AC 31 ms
10,472 KB
testcase_23 AC 60 ms
13,800 KB
testcase_24 AC 71 ms
16,152 KB
testcase_25 AC 106 ms
18,888 KB
testcase_26 AC 94 ms
19,052 KB
testcase_27 WA -
testcase_28 AC 82 ms
18,872 KB
testcase_29 AC 95 ms
19,124 KB
testcase_30 AC 92 ms
18,936 KB
testcase_31 AC 101 ms
18,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(int(i) for i in input().split())

count=0
a.sort()
d=a[1]-a[0]
for i in range(len(a)-1):
    if a[i+1]-a[i]!=d:
        count+=1

if count==0:
    print('YES')
else:
    print('NO')
0