結果

問題 No.406 鴨等間隔の法則
ユーザー kohei2019kohei2019
提出日時 2022-01-22 19:45:41
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 190 bytes
コンパイル時間 286 ms
コンパイル使用メモリ 87,316 KB
実行使用メモリ 91,664 KB
最終ジャッジ日時 2023-08-18 14:34:20
合計ジャッジ時間 5,099 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
80,964 KB
testcase_01 AC 63 ms
71,192 KB
testcase_02 AC 59 ms
71,284 KB
testcase_03 WA -
testcase_04 AC 86 ms
89,016 KB
testcase_05 AC 73 ms
79,080 KB
testcase_06 AC 79 ms
79,240 KB
testcase_07 AC 76 ms
79,860 KB
testcase_08 AC 90 ms
89,040 KB
testcase_09 AC 91 ms
91,244 KB
testcase_10 AC 71 ms
80,752 KB
testcase_11 AC 83 ms
86,996 KB
testcase_12 AC 77 ms
81,888 KB
testcase_13 AC 75 ms
81,668 KB
testcase_14 AC 86 ms
89,436 KB
testcase_15 WA -
testcase_16 AC 61 ms
75,544 KB
testcase_17 AC 62 ms
75,640 KB
testcase_18 AC 61 ms
75,704 KB
testcase_19 AC 64 ms
76,088 KB
testcase_20 AC 65 ms
76,128 KB
testcase_21 AC 63 ms
75,896 KB
testcase_22 AC 67 ms
77,212 KB
testcase_23 AC 80 ms
83,096 KB
testcase_24 AC 88 ms
87,420 KB
testcase_25 AC 91 ms
90,788 KB
testcase_26 AC 94 ms
91,664 KB
testcase_27 WA -
testcase_28 AC 79 ms
91,080 KB
testcase_29 AC 93 ms
91,148 KB
testcase_30 AC 92 ms
91,076 KB
testcase_31 AC 93 ms
90,736 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
lsx = list(map(int,input().split()))
lsx.sort()
d = lsx[1]-lsx[0]
for i in range(N-1):
    if d == lsx[i+1]-lsx[i]:
        continue
    print('NO')
    exit()
print('YES')
0