結果

問題 No.406 鴨等間隔の法則
ユーザー hanorverhanorver
提出日時 2016-09-12 22:25:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 82 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 10,480 KB
実行使用メモリ 19,096 KB
最終ジャッジ日時 2023-09-21 18:12:17
合計ジャッジ時間 3,002 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
13,692 KB
testcase_01 AC 15 ms
7,844 KB
testcase_02 AC 15 ms
7,944 KB
testcase_03 AC 16 ms
7,796 KB
testcase_04 AC 79 ms
17,936 KB
testcase_05 AC 39 ms
12,448 KB
testcase_06 AC 38 ms
12,652 KB
testcase_07 AC 38 ms
13,092 KB
testcase_08 AC 76 ms
18,252 KB
testcase_09 AC 82 ms
18,684 KB
testcase_10 AC 41 ms
13,400 KB
testcase_11 AC 66 ms
16,464 KB
testcase_12 AC 48 ms
13,732 KB
testcase_13 AC 45 ms
13,312 KB
testcase_14 AC 68 ms
17,020 KB
testcase_15 AC 17 ms
8,752 KB
testcase_16 AC 20 ms
9,564 KB
testcase_17 AC 17 ms
8,696 KB
testcase_18 AC 19 ms
9,676 KB
testcase_19 AC 20 ms
9,036 KB
testcase_20 AC 23 ms
9,336 KB
testcase_21 AC 23 ms
10,416 KB
testcase_22 AC 29 ms
10,568 KB
testcase_23 AC 50 ms
14,056 KB
testcase_24 AC 57 ms
16,136 KB
testcase_25 AC 82 ms
18,924 KB
testcase_26 AC 76 ms
19,024 KB
testcase_27 AC 55 ms
19,068 KB
testcase_28 AC 60 ms
19,064 KB
testcase_29 AC 77 ms
19,096 KB
testcase_30 AC 77 ms
18,904 KB
testcase_31 AC 78 ms
18,556 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:3: SyntaxWarning: invalid decimal literal
  print("YES"if len({j-i for i,j in zip(a[:-1],a[1:])if j-i})==1else"NO")

ソースコード

diff #

input()
a=sorted(map(int,input().split()))
print("YES"if len({j-i for i,j in zip(a[:-1],a[1:])if j-i})==1else"NO")
0