結果

問題 No.406 鴨等間隔の法則
ユーザー kamomekamome
提出日時 2019-07-28 19:32:28
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 240 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 10,512 KB
実行使用メモリ 18,944 KB
最終ジャッジ日時 2023-09-15 11:35:58
合計ジャッジ時間 2,910 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
12,484 KB
testcase_01 WA -
testcase_02 AC 15 ms
8,104 KB
testcase_03 AC 16 ms
8,196 KB
testcase_04 AC 64 ms
17,912 KB
testcase_05 AC 33 ms
11,688 KB
testcase_06 AC 33 ms
11,960 KB
testcase_07 AC 34 ms
12,028 KB
testcase_08 AC 64 ms
18,364 KB
testcase_09 AC 68 ms
18,688 KB
testcase_10 AC 35 ms
12,520 KB
testcase_11 AC 55 ms
16,408 KB
testcase_12 AC 41 ms
13,540 KB
testcase_13 AC 39 ms
13,028 KB
testcase_14 WA -
testcase_15 AC 17 ms
8,744 KB
testcase_16 AC 18 ms
8,700 KB
testcase_17 AC 17 ms
8,564 KB
testcase_18 AC 17 ms
8,904 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 21 ms
9,364 KB
testcase_22 WA -
testcase_23 AC 44 ms
13,616 KB
testcase_24 WA -
testcase_25 AC 70 ms
18,840 KB
testcase_26 WA -
testcase_27 AC 49 ms
18,776 KB
testcase_28 AC 48 ms
18,944 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 67 ms
18,516 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#coding:utf-8
input()
kamos=list(map(int,input().split()))
kamos.sort()
dst=kamos[0]-kamos[1]
for i in range(1,len(kamos)):
    if (kamos[i] - kamos[i-1] != dst) or (kamos[i] - kamos[i-1]==0):
        print("NO")
        exit()
print("YES")
0