結果

問題 No.406 鴨等間隔の法則
ユーザー ieneko18ieneko18
提出日時 2016-10-15 15:18:36
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 166 bytes
コンパイル時間 239 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,724 KB
最終ジャッジ日時 2024-04-24 21:22:22
合計ジャッジ時間 2,987 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 46 ms
15,528 KB
testcase_01 WA -
testcase_02 AC 26 ms
10,624 KB
testcase_03 AC 26 ms
10,624 KB
testcase_04 AC 76 ms
20,436 KB
testcase_05 AC 49 ms
14,320 KB
testcase_06 AC 45 ms
14,460 KB
testcase_07 AC 46 ms
14,768 KB
testcase_08 AC 74 ms
20,880 KB
testcase_09 AC 96 ms
21,276 KB
testcase_10 AC 48 ms
15,044 KB
testcase_11 AC 65 ms
19,068 KB
testcase_12 AC 50 ms
16,236 KB
testcase_13 AC 52 ms
15,732 KB
testcase_14 WA -
testcase_15 AC 27 ms
11,264 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 32 ms
12,160 KB
testcase_22 WA -
testcase_23 AC 59 ms
16,496 KB
testcase_24 WA -
testcase_25 AC 80 ms
21,348 KB
testcase_26 WA -
testcase_27 AC 58 ms
21,644 KB
testcase_28 AC 58 ms
21,600 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 79 ms
21,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
x=sorted(list(map(int,input().split())))
d=x[1]-x[0]
for i in range(1,len(x)-1):
    if x[i+1]-x[i]==d:
        print("NO")
        exit()
print("YES")
0