結果
問題 |
No.2451 Redistribute Integers
|
ユーザー |
|
提出日時 | 2023-10-21 23:13:33 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 228 bytes |
コンパイル時間 | 198 ms |
コンパイル使用メモリ | 82,816 KB |
実行使用メモリ | 209,896 KB |
最終ジャッジ日時 | 2024-06-11 11:08:45 |
合計ジャッジ時間 | 4,229 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | RE * 3 |
other | RE * 19 |
ソースコード
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 b % N != 0: flag = False if s == 0 and flag: print('Yes') else: print('No')