結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
sotanishy
|
| 提出日時 | 2023-09-01 21:22:39 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 200 ms / 2,000 ms |
| コード長 | 183 bytes |
| コンパイル時間 | 148 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 172,720 KB |
| 最終ジャッジ日時 | 2024-06-11 10:57:00 |
| 合計ジャッジ時間 | 3,219 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
import sys
input = sys.stdin.readline
N = int(input())
A = list(map(int, input().split()))
s = sum(A)
print("Yes" if s % N == 0 and len(set(map(lambda x: x % N, A))) == 1 else "No")
sotanishy