結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-10-21 23:24:26 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 231 ms / 2,000 ms |
| コード長 | 203 bytes |
| コンパイル時間 | 190 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 209,084 KB |
| 最終ジャッジ日時 | 2024-06-11 11:08:49 |
| 合計ジャッジ時間 | 4,077 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
N = int(input())
a = list(map(int,input().split()))
b = []
for i in range(N - 1):
b.append(a[i + 1] - a[i])
flag = True
for i in b:
if i % N != 0:
flag = False
print('Yes') if flag else print('No')