結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-21 23:14:34 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 249 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 209,360 KB |
| 最終ジャッジ日時 | 2024-06-11 11:08:46 |
| 合計ジャッジ時間 | 3,549 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 2 |
| other | AC * 10 WA * 9 |
ソースコード
N = int(input())
a = list(map(int,input().split()))
b = []
for i in range(N - 1):
b.append(a[i + 1] - a[i])
s = sum(b)
flag = True
for i in b:
if i % N != 0:
flag = False
if s == 0 and flag:
print('Yes')
else:
print('No')