結果

問題 No.406 鴨等間隔の法則
ユーザー r_yo6021r_yo6021
提出日時 2016-09-05 23:11:12
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 225 bytes
コンパイル時間 530 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,864 KB
最終ジャッジ日時 2024-04-24 20:43:39
合計ジャッジ時間 3,101 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 49 ms
15,284 KB
testcase_01 WA -
testcase_02 AC 28 ms
10,624 KB
testcase_03 AC 28 ms
10,624 KB
testcase_04 AC 81 ms
20,440 KB
testcase_05 AC 50 ms
14,584 KB
testcase_06 AC 48 ms
14,460 KB
testcase_07 AC 49 ms
14,636 KB
testcase_08 AC 81 ms
21,012 KB
testcase_09 AC 106 ms
21,412 KB
testcase_10 AC 51 ms
15,052 KB
testcase_11 AC 73 ms
19,084 KB
testcase_12 AC 56 ms
16,124 KB
testcase_13 AC 58 ms
15,736 KB
testcase_14 WA -
testcase_15 AC 31 ms
11,264 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 33 ms
12,160 KB
testcase_22 WA -
testcase_23 AC 61 ms
16,508 KB
testcase_24 WA -
testcase_25 AC 86 ms
21,360 KB
testcase_26 WA -
testcase_27 AC 62 ms
21,604 KB
testcase_28 AC 66 ms
21,612 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 81 ms
21,156 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
L = sorted(list(map(int, input().split())))

d = L[1] - L[0]
if d == 0:
    print("NO")
    exit()

for i in range(2, N):
    if L[i] - L[i - 1] == d:
        print("NO")
        break
else:
    print("YES")
0