結果

問題 No.1219 Mancala Combo
ユーザー tyawanmusi
提出日時 2020-09-04 23:34:51
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
AC  
実行時間 175 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 338 ms
コンパイル使用メモリ 12,416 KB
実行使用メモリ 30,424 KB
最終ジャッジ日時 2024-11-26 21:05:57
合計ジャッジ時間 2,905 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 26
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
a = list(map(int, input().split()))
f = 0
for i in range(n-1, -1, -1):
  x = i+1
  y = a[i]+f
  if y % x:
      print("No")
      exit()
  f += y//x
print("Yes")
0