結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
13,608 KB
testcase_01 AC 16 ms
7,764 KB
testcase_02 AC 15 ms
7,804 KB
testcase_03 AC 15 ms
7,716 KB
testcase_04 AC 77 ms
17,964 KB
testcase_05 AC 37 ms
12,604 KB
testcase_06 AC 39 ms
12,756 KB
testcase_07 AC 40 ms
13,020 KB
testcase_08 AC 77 ms
18,336 KB
testcase_09 AC 84 ms
18,792 KB
testcase_10 AC 41 ms
13,544 KB
testcase_11 AC 67 ms
16,472 KB
testcase_12 AC 49 ms
13,680 KB
testcase_13 AC 47 ms
13,244 KB
testcase_14 AC 70 ms
17,140 KB
testcase_15 AC 18 ms
8,708 KB
testcase_16 AC 20 ms
9,628 KB
testcase_17 AC 18 ms
8,696 KB
testcase_18 AC 19 ms
9,612 KB
testcase_19 AC 20 ms
9,048 KB
testcase_20 AC 22 ms
9,540 KB
testcase_21 AC 24 ms
10,404 KB
testcase_22 AC 29 ms
10,440 KB
testcase_23 AC 51 ms
13,976 KB
testcase_24 AC 61 ms
15,956 KB
testcase_25 AC 84 ms
18,788 KB
testcase_26 AC 80 ms
18,908 KB
testcase_27 AC 56 ms
18,792 KB
testcase_28 AC 59 ms
18,784 KB
testcase_29 AC 79 ms
18,944 KB
testcase_30 AC 78 ms
18,732 KB
testcase_31 AC 81 ms
18,576 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.py:4: SyntaxWarning: invalid decimal literal
  print("NO"if len(l)>1 or 0in l else"YES")

ソースコード

diff #

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