結果

問題 No.406 鴨等間隔の法則
ユーザー hanorverhanorver
提出日時 2016-09-12 22:25:59
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 111 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 132 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 21,600 KB
最終ジャッジ日時 2024-07-07 11:47:49
合計ジャッジ時間 3,535 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
15,272 KB
testcase_01 AC 31 ms
10,496 KB
testcase_02 AC 30 ms
10,496 KB
testcase_03 AC 30 ms
10,368 KB
testcase_04 AC 103 ms
20,312 KB
testcase_05 AC 56 ms
15,348 KB
testcase_06 AC 57 ms
14,584 KB
testcase_07 AC 58 ms
15,404 KB
testcase_08 AC 101 ms
20,752 KB
testcase_09 AC 111 ms
21,400 KB
testcase_10 AC 61 ms
14,788 KB
testcase_11 AC 91 ms
18,880 KB
testcase_12 AC 68 ms
15,908 KB
testcase_13 AC 66 ms
15,732 KB
testcase_14 AC 94 ms
19,492 KB
testcase_15 AC 32 ms
11,264 KB
testcase_16 AC 35 ms
11,904 KB
testcase_17 AC 33 ms
11,264 KB
testcase_18 AC 35 ms
12,032 KB
testcase_19 AC 36 ms
11,648 KB
testcase_20 AC 39 ms
11,904 KB
testcase_21 AC 40 ms
12,672 KB
testcase_22 AC 46 ms
13,188 KB
testcase_23 AC 72 ms
16,416 KB
testcase_24 AC 82 ms
18,544 KB
testcase_25 AC 108 ms
21,344 KB
testcase_26 AC 100 ms
21,472 KB
testcase_27 AC 71 ms
21,476 KB
testcase_28 AC 82 ms
21,472 KB
testcase_29 AC 101 ms
21,600 KB
testcase_30 AC 100 ms
21,340 KB
testcase_31 AC 107 ms
20,764 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