結果

問題 No.406 鴨等間隔の法則
ユーザー ixmelixmel
提出日時 2017-03-30 18:11:04
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 134 bytes
コンパイル時間 289 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 21,728 KB
最終ジャッジ日時 2024-04-25 00:53:57
合計ジャッジ時間 3,504 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 66 ms
15,272 KB
testcase_01 AC 28 ms
10,752 KB
testcase_02 AC 28 ms
10,496 KB
testcase_03 WA -
testcase_04 AC 81 ms
20,304 KB
testcase_05 AC 44 ms
14,196 KB
testcase_06 AC 46 ms
14,324 KB
testcase_07 AC 47 ms
14,508 KB
testcase_08 AC 77 ms
20,876 KB
testcase_09 AC 82 ms
21,272 KB
testcase_10 AC 50 ms
15,040 KB
testcase_11 AC 71 ms
18,936 KB
testcase_12 AC 56 ms
16,112 KB
testcase_13 AC 53 ms
15,728 KB
testcase_14 AC 97 ms
19,524 KB
testcase_15 WA -
testcase_16 AC 31 ms
11,392 KB
testcase_17 AC 29 ms
11,008 KB
testcase_18 AC 30 ms
11,520 KB
testcase_19 AC 34 ms
11,648 KB
testcase_20 AC 36 ms
11,904 KB
testcase_21 AC 35 ms
12,032 KB
testcase_22 AC 44 ms
12,924 KB
testcase_23 AC 56 ms
16,628 KB
testcase_24 AC 85 ms
18,544 KB
testcase_25 AC 85 ms
21,348 KB
testcase_26 AC 115 ms
21,596 KB
testcase_27 WA -
testcase_28 AC 61 ms
21,340 KB
testcase_29 AC 107 ms
21,596 KB
testcase_30 AC 104 ms
21,472 KB
testcase_31 AC 81 ms
20,896 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=sorted(map(int,input().split()))
for i in range(n-1):
	if a[1]-a[0]!=a[i+1]-a[i]:
		print("NO")
		exit()
print("YES")
0