結果

問題 No.406 鴨等間隔の法則
ユーザー picares9uepicares9ue
提出日時 2016-12-13 23:33:23
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 261 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,864 KB
最終ジャッジ日時 2024-04-24 21:43:47
合計ジャッジ時間 3,504 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 67 ms
15,280 KB
testcase_01 AC 30 ms
10,624 KB
testcase_02 AC 29 ms
10,624 KB
testcase_03 WA -
testcase_04 AC 101 ms
20,308 KB
testcase_05 AC 55 ms
15,100 KB
testcase_06 AC 57 ms
14,336 KB
testcase_07 AC 56 ms
15,252 KB
testcase_08 AC 100 ms
21,012 KB
testcase_09 AC 107 ms
21,536 KB
testcase_10 AC 62 ms
14,916 KB
testcase_11 AC 93 ms
18,936 KB
testcase_12 AC 69 ms
16,112 KB
testcase_13 AC 67 ms
15,608 KB
testcase_14 AC 94 ms
19,616 KB
testcase_15 WA -
testcase_16 AC 35 ms
12,032 KB
testcase_17 AC 32 ms
11,264 KB
testcase_18 AC 34 ms
12,160 KB
testcase_19 AC 35 ms
11,776 KB
testcase_20 AC 37 ms
12,032 KB
testcase_21 AC 38 ms
12,672 KB
testcase_22 AC 44 ms
13,056 KB
testcase_23 AC 69 ms
16,376 KB
testcase_24 AC 82 ms
18,672 KB
testcase_25 AC 109 ms
21,476 KB
testcase_26 AC 99 ms
21,732 KB
testcase_27 WA -
testcase_28 AC 82 ms
21,408 KB
testcase_29 AC 105 ms
21,732 KB
testcase_30 AC 104 ms
21,604 KB
testcase_31 AC 101 ms
21,028 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#ソートし忘れてた
import operator
N, lis = int(input()), sorted([int(i) for i in input().split()])
sa = set(map(operator.sub, lis, lis[1:]))
if len(lis) == N and len(sa) == 1:
    print("YES")
else:
    print("NO")
0