結果

問題 No.406 鴨等間隔の法則
ユーザー HirakeHirake
提出日時 2017-06-16 11:10:51
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
RE  
実行時間 -
コード長 210 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,748 KB
最終ジャッジ日時 2024-04-25 01:08:09
合計ジャッジ時間 3,390 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
14,936 KB
testcase_01 RE -
testcase_02 AC 27 ms
10,752 KB
testcase_03 AC 27 ms
10,624 KB
testcase_04 AC 85 ms
20,448 KB
testcase_05 AC 49 ms
14,336 KB
testcase_06 AC 50 ms
14,468 KB
testcase_07 AC 51 ms
14,520 KB
testcase_08 AC 83 ms
21,016 KB
testcase_09 AC 91 ms
21,416 KB
testcase_10 AC 53 ms
15,180 KB
testcase_11 AC 78 ms
18,892 KB
testcase_12 AC 58 ms
16,120 KB
testcase_13 AC 56 ms
15,740 KB
testcase_14 RE -
testcase_15 AC 29 ms
11,392 KB
testcase_16 AC 31 ms
11,520 KB
testcase_17 AC 29 ms
11,136 KB
testcase_18 AC 31 ms
11,392 KB
testcase_19 RE -
testcase_20 RE -
testcase_21 AC 34 ms
11,904 KB
testcase_22 RE -
testcase_23 AC 61 ms
16,336 KB
testcase_24 RE -
testcase_25 AC 88 ms
21,484 KB
testcase_26 RE -
testcase_27 AC 67 ms
21,748 KB
testcase_28 AC 66 ms
21,512 KB
testcase_29 RE -
testcase_30 RE -
testcase_31 AC 86 ms
20,880 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#406 birds same distance
N=int(input())
x=[int(i) for i in input().split()]
x.sort()
i=0
while x[i+1]-x[i]!=0 and x[i+2]-x[i+1]==x[i+1]-x[i] and i<N-2:
    i+=1
if i==N-2:
    print("YES")
else:
    print("NO")
0