結果
問題 | No.406 鴨等間隔の法則 |
ユーザー | akasatananana |
提出日時 | 2019-09-18 23:42:56 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 271 bytes |
コンパイル時間 | 89 ms |
コンパイル使用メモリ | 10,628 KB |
実行使用メモリ | 21,580 KB |
最終ジャッジ日時 | 2023-09-24 22:38:42 |
合計ジャッジ時間 | 4,785 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 40 ms
17,044 KB |
testcase_01 | AC | 17 ms
7,936 KB |
testcase_02 | AC | 17 ms
7,788 KB |
testcase_03 | AC | 16 ms
7,812 KB |
testcase_04 | AC | 72 ms
17,880 KB |
testcase_05 | AC | 36 ms
11,564 KB |
testcase_06 | AC | 36 ms
11,980 KB |
testcase_07 | AC | 41 ms
12,096 KB |
testcase_08 | AC | 71 ms
18,448 KB |
testcase_09 | AC | 77 ms
18,804 KB |
testcase_10 | AC | 40 ms
12,344 KB |
testcase_11 | AC | 64 ms
16,480 KB |
testcase_12 | AC | 46 ms
13,516 KB |
testcase_13 | AC | 43 ms
12,968 KB |
testcase_14 | TLE | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
testcase_31 | -- | - |
ソースコード
a=int(input()) b=[int(i) for i in input().split()] b.sort() c=b[1]-b[0] for i in range(1,a): if b.count(b[0])>=2: print("NO") break elif i>=2: d=b[i]-b[i-1] if c!=d: print("NO") break else: print("YES")