結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
12,452 KB
testcase_01 AC 15 ms
7,844 KB
testcase_02 AC 15 ms
8,104 KB
testcase_03 AC 15 ms
7,972 KB
testcase_04 AC 71 ms
17,812 KB
testcase_05 AC 32 ms
11,772 KB
testcase_06 AC 33 ms
11,832 KB
testcase_07 AC 36 ms
12,224 KB
testcase_08 AC 65 ms
18,380 KB
testcase_09 AC 68 ms
18,680 KB
testcase_10 AC 36 ms
12,420 KB
testcase_11 AC 56 ms
16,528 KB
testcase_12 AC 41 ms
13,408 KB
testcase_13 AC 38 ms
12,924 KB
testcase_14 WA -
testcase_15 AC 17 ms
8,828 KB
testcase_16 AC 18 ms
8,816 KB
testcase_17 AC 17 ms
8,568 KB
testcase_18 AC 18 ms
9,012 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 21 ms
9,504 KB
testcase_22 WA -
testcase_23 AC 43 ms
13,732 KB
testcase_24 WA -
testcase_25 AC 69 ms
18,836 KB
testcase_26 WA -
testcase_27 AC 47 ms
18,716 KB
testcase_28 AC 47 ms
18,692 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 65 ms
18,568 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 or s==0: print('NO');exit()
print('YES')
0