結果

問題 No.2451 Redistribute Integers
ユーザー sepa38sepa38
提出日時 2023-09-01 21:40:35
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 192 bytes
コンパイル時間 514 ms
コンパイル使用メモリ 87,032 KB
実行使用メモリ 174,544 KB
最終ジャッジ日時 2023-09-01 21:40:41
合計ジャッジ時間 5,325 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 70 ms
71,244 KB
testcase_01 AC 76 ms
71,276 KB
testcase_02 AC 70 ms
71,388 KB
testcase_03 AC 71 ms
71,448 KB
testcase_04 AC 214 ms
163,624 KB
testcase_05 AC 70 ms
71,436 KB
testcase_06 WA -
testcase_07 AC 69 ms
71,244 KB
testcase_08 AC 193 ms
169,644 KB
testcase_09 AC 70 ms
71,452 KB
testcase_10 AC 74 ms
71,440 KB
testcase_11 AC 70 ms
71,384 KB
testcase_12 WA -
testcase_13 AC 258 ms
174,544 KB
testcase_14 AC 267 ms
166,376 KB
testcase_15 AC 172 ms
117,280 KB
testcase_16 AC 184 ms
111,020 KB
testcase_17 WA -
testcase_18 AC 237 ms
153,716 KB
testcase_19 WA -
testcase_20 AC 235 ms
147,212 KB
testcase_21 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
m = min(a)
for i in range(n):
  a[i] -= m
if sorted(a) == [i for i in range(n)]:
  print("No")
else:
  print("No" if sum(a) % n else "Yes")
0