結果

問題 No.406 鴨等間隔の法則
ユーザー shogo2022shogo2022
提出日時 2017-01-21 05:37:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 259 bytes
コンパイル時間 193 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,600 KB
最終ジャッジ日時 2024-04-24 21:50:10
合計ジャッジ時間 3,816 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
15,148 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 31 ms
10,496 KB
testcase_03 WA -
testcase_04 AC 117 ms
20,184 KB
testcase_05 AC 57 ms
14,324 KB
testcase_06 AC 60 ms
14,452 KB
testcase_07 AC 61 ms
14,508 KB
testcase_08 AC 116 ms
20,880 KB
testcase_09 AC 122 ms
21,276 KB
testcase_10 AC 64 ms
14,792 KB
testcase_11 AC 99 ms
19,060 KB
testcase_12 AC 72 ms
15,984 KB
testcase_13 AC 69 ms
15,604 KB
testcase_14 AC 103 ms
19,616 KB
testcase_15 WA -
testcase_16 AC 35 ms
11,520 KB
testcase_17 AC 32 ms
10,880 KB
testcase_18 AC 34 ms
11,264 KB
testcase_19 AC 38 ms
11,520 KB
testcase_20 AC 39 ms
11,776 KB
testcase_21 AC 41 ms
11,904 KB
testcase_22 AC 46 ms
12,928 KB
testcase_23 AC 77 ms
16,244 KB
testcase_24 AC 92 ms
18,668 KB
testcase_25 AC 126 ms
21,472 KB
testcase_26 AC 112 ms
21,600 KB
testcase_27 WA -
testcase_28 AC 94 ms
21,348 KB
testcase_29 AC 120 ms
21,472 KB
testcase_30 AC 117 ms
21,600 KB
testcase_31 AC 117 ms
20,900 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = input()
kamo_list = sorted(list(map(int, input().split(' '))))

diff = kamo_list[1] - kamo_list[0]

equal_interval = 'YES'
for i in range(2,len(kamo_list)):
    if kamo_list[i] - kamo_list[i-1] != diff:
        equal_interval = 'NO'

print(equal_interval)
0