結果

問題 No.406 鴨等間隔の法則
ユーザー 👑 NachiaNachia
提出日時 2021-05-09 14:42:30
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 269 ms
コンパイル使用メモリ 81,696 KB
実行使用メモリ 101,108 KB
最終ジャッジ日時 2023-10-19 00:55:46
合計ジャッジ時間 4,346 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 58 ms
76,684 KB
testcase_01 WA -
testcase_02 AC 37 ms
53,332 KB
testcase_03 WA -
testcase_04 AC 76 ms
95,412 KB
testcase_05 AC 53 ms
73,736 KB
testcase_06 AC 52 ms
73,876 KB
testcase_07 AC 53 ms
75,084 KB
testcase_08 AC 71 ms
95,340 KB
testcase_09 AC 78 ms
101,036 KB
testcase_10 AC 56 ms
76,676 KB
testcase_11 AC 70 ms
91,812 KB
testcase_12 AC 60 ms
79,884 KB
testcase_13 AC 57 ms
79,616 KB
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 43 ms
61,544 KB
testcase_17 AC 41 ms
59,496 KB
testcase_18 AC 43 ms
61,544 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 46 ms
64,244 KB
testcase_22 WA -
testcase_23 AC 61 ms
81,776 KB
testcase_24 WA -
testcase_25 AC 80 ms
101,108 KB
testcase_26 WA -
testcase_27 WA -
testcase_28 AC 63 ms
86,740 KB
testcase_29 WA -
testcase_30 WA -
testcase_31 AC 77 ms
100,772 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
X = [int(a) for a in input().split()]
D = set([r-l for l,r in zip(X[:-1],X[1:])])
print("YES" if len(D) == 1 else "NO")
0