結果
問題 | No.406 鴨等間隔の法則 |
ユーザー | akasatananana |
提出日時 | 2019-09-18 23:39:46 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 10,512 KB |
実行使用メモリ | 21,624 KB |
最終ジャッジ日時 | 2023-09-24 22:28:11 |
合計ジャッジ時間 | 4,787 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 38 ms
16,796 KB |
testcase_01 | AC | 17 ms
7,744 KB |
testcase_02 | AC | 16 ms
7,912 KB |
testcase_03 | AC | 15 ms
7,912 KB |
testcase_04 | AC | 68 ms
18,008 KB |
testcase_05 | AC | 34 ms
11,572 KB |
testcase_06 | AC | 36 ms
11,876 KB |
testcase_07 | AC | 35 ms
12,032 KB |
testcase_08 | AC | 67 ms
18,304 KB |
testcase_09 | AC | 74 ms
18,752 KB |
testcase_10 | AC | 38 ms
12,512 KB |
testcase_11 | AC | 59 ms
16,452 KB |
testcase_12 | AC | 43 ms
13,496 KB |
testcase_13 | AC | 40 ms
12,864 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() for i in range(1,a): if i==1: c=b[i]-b[i-1] elif 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")