結果

問題 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
コンパイル時間 263 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 21,732 KB
最終ジャッジ日時 2024-11-07 05:42:08
合計ジャッジ時間 3,190 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 53 ms
15,156 KB
testcase_01 WA -
testcase_02 AC 30 ms
10,496 KB
testcase_03 AC 30 ms
10,624 KB
testcase_04 AC 88 ms
20,316 KB
testcase_05 AC 53 ms
14,328 KB
testcase_06 AC 50 ms
14,464 KB
testcase_07 AC 52 ms
14,708 KB
testcase_08 AC 83 ms
20,888 KB
testcase_09 AC 106 ms
21,408 KB
testcase_10 AC 55 ms
14,872 KB
testcase_11 AC 75 ms
18,944 KB
testcase_12 AC 59 ms
16,120 KB
testcase_13 AC 60 ms
15,740 KB
testcase_14 WA -
testcase_15 AC 32 ms
11,136 KB
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 37 ms
11,904 KB
testcase_22 WA -
testcase_23 AC 62 ms
16,372 KB
testcase_24 WA -
testcase_25 AC 91 ms
21,352 KB
testcase_26 WA -
testcase_27 AC 66 ms
21,600 KB
testcase_28 AC 68 ms
21,356 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 88 ms
20,900 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