結果

問題 No.406 鴨等間隔の法則
ユーザー k0825k0825
提出日時 2019-04-28 23:24:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 139 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 10,628 KB
実行使用メモリ 18,976 KB
最終ジャッジ日時 2023-08-23 10:39:24
合計ジャッジ時間 4,743 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
12,408 KB
testcase_01 AC 15 ms
7,776 KB
testcase_02 AC 16 ms
8,064 KB
testcase_03 AC 16 ms
8,068 KB
testcase_04 AC 63 ms
17,784 KB
testcase_05 AC 33 ms
11,724 KB
testcase_06 AC 33 ms
11,744 KB
testcase_07 AC 33 ms
12,152 KB
testcase_08 AC 62 ms
18,244 KB
testcase_09 AC 67 ms
18,648 KB
testcase_10 AC 35 ms
12,528 KB
testcase_11 AC 57 ms
16,476 KB
testcase_12 AC 40 ms
13,352 KB
testcase_13 AC 38 ms
12,984 KB
testcase_14 WA -
testcase_15 AC 17 ms
8,892 KB
testcase_16 AC 18 ms
8,944 KB
testcase_17 AC 16 ms
8,540 KB
testcase_18 AC 18 ms
8,916 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 21 ms
9,336 KB
testcase_22 WA -
testcase_23 AC 42 ms
13,584 KB
testcase_24 WA -
testcase_25 AC 67 ms
18,908 KB
testcase_26 WA -
testcase_27 AC 46 ms
18,856 KB
testcase_28 AC 48 ms
18,872 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 66 ms
18,360 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=input()
x=sorted(list(map(int,input().split())));s=x[1]-x[0]
for i in range(2,len(x)):
    if s!=x[i]-s: print('NO');exit()
print('YES')
0