結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 54 ms
16,996 KB
testcase_01 WA -
testcase_02 AC 27 ms
10,496 KB
testcase_03 WA -
testcase_04 AC 78 ms
24,056 KB
testcase_05 AC 47 ms
17,272 KB
testcase_06 AC 53 ms
17,148 KB
testcase_07 AC 46 ms
17,748 KB
testcase_08 AC 80 ms
24,252 KB
testcase_09 AC 85 ms
24,584 KB
testcase_10 AC 49 ms
16,628 KB
testcase_11 AC 67 ms
19,284 KB
testcase_12 AC 56 ms
18,228 KB
testcase_13 AC 59 ms
17,420 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 32 ms
12,288 KB
testcase_17 AC 29 ms
11,392 KB
testcase_18 AC 31 ms
12,160 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 32 ms
12,544 KB
testcase_22 WA -
testcase_23 AC 56 ms
17,360 KB
testcase_24 WA -
testcase_25 AC 89 ms
24,440 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 76 ms
21,480 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 87 ms
24,316 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import operator
N, lis = int(input()), [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