結果
| 問題 |
No.2451 Redistribute Integers
|
| コンテスト | |
| ユーザー |
ntuda
|
| 提出日時 | 2025-02-19 20:11:01 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 180 ms / 2,000 ms |
| コード長 | 196 bytes |
| コンパイル時間 | 679 ms |
| コンパイル使用メモリ | 81,792 KB |
| 実行使用メモリ | 153,836 KB |
| 最終ジャッジ日時 | 2025-02-19 20:11:07 |
| 合計ジャッジ時間 | 5,174 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 19 |
ソースコード
N = int(input())
A = list(map(int,input().split()))
if sum(A) % N != 0:
print("No")
exit()
tmp = A[0] % N
for a in A:
if tmp != a % N:
print("No")
exit()
print("Yes")
ntuda