結果

問題 No.406 鴨等間隔の法則
ユーザー 👑 rin204rin204
提出日時 2020-06-09 20:26:26
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 209 bytes
コンパイル時間 404 ms
コンパイル使用メモリ 10,664 KB
実行使用メモリ 19,032 KB
最終ジャッジ日時 2023-08-30 20:35:10
合計ジャッジ時間 4,101 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
12,652 KB
testcase_01 AC 15 ms
7,804 KB
testcase_02 AC 15 ms
7,920 KB
testcase_03 WA -
testcase_04 AC 62 ms
17,920 KB
testcase_05 AC 31 ms
11,540 KB
testcase_06 AC 32 ms
12,048 KB
testcase_07 AC 33 ms
12,104 KB
testcase_08 AC 62 ms
18,460 KB
testcase_09 AC 67 ms
18,884 KB
testcase_10 AC 34 ms
12,268 KB
testcase_11 AC 55 ms
16,488 KB
testcase_12 AC 39 ms
13,456 KB
testcase_13 AC 39 ms
13,108 KB
testcase_14 AC 72 ms
17,068 KB
testcase_15 WA -
testcase_16 AC 18 ms
8,828 KB
testcase_17 AC 16 ms
8,604 KB
testcase_18 AC 17 ms
8,736 KB
testcase_19 AC 20 ms
9,004 KB
testcase_20 AC 22 ms
9,404 KB
testcase_21 AC 20 ms
9,384 KB
testcase_22 AC 28 ms
10,444 KB
testcase_23 AC 42 ms
13,752 KB
testcase_24 AC 64 ms
16,012 KB
testcase_25 AC 68 ms
18,908 KB
testcase_26 AC 84 ms
18,836 KB
testcase_27 WA -
testcase_28 AC 47 ms
18,964 KB
testcase_29 AC 86 ms
18,880 KB
testcase_30 AC 83 ms
18,836 KB
testcase_31 AC 65 ms
18,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
x = list(map(int, input().split()))
x.sort()
w = x[1] - x[0]
before = x[1]
for num in x[2:]:
    if w != num - before:
        print("NO")
        break
    before = num
else:
    print("YES")
0