結果

問題 No.1219 Mancala Combo
ユーザー googol_S0googol_S0
提出日時 2020-09-04 22:21:32
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 314 ms
コンパイル使用メモリ 87,356 KB
実行使用メモリ 108,380 KB
最終ジャッジ日時 2023-08-17 16:54:12
合計ジャッジ時間 4,171 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,252 KB
testcase_01 AC 71 ms
71,140 KB
testcase_02 AC 77 ms
71,120 KB
testcase_03 AC 73 ms
71,148 KB
testcase_04 AC 74 ms
71,060 KB
testcase_05 AC 73 ms
71,084 KB
testcase_06 AC 72 ms
71,024 KB
testcase_07 AC 72 ms
71,240 KB
testcase_08 AC 73 ms
71,324 KB
testcase_09 AC 73 ms
71,284 KB
testcase_10 AC 73 ms
71,084 KB
testcase_11 AC 75 ms
71,300 KB
testcase_12 AC 72 ms
71,096 KB
testcase_13 AC 74 ms
71,244 KB
testcase_14 AC 71 ms
70,824 KB
testcase_15 AC 70 ms
71,080 KB
testcase_16 AC 71 ms
71,184 KB
testcase_17 AC 100 ms
97,544 KB
testcase_18 AC 110 ms
97,984 KB
testcase_19 AC 98 ms
94,380 KB
testcase_20 AC 110 ms
100,532 KB
testcase_21 AC 97 ms
92,184 KB
testcase_22 AC 105 ms
95,276 KB
testcase_23 AC 110 ms
103,612 KB
testcase_24 AC 101 ms
92,900 KB
testcase_25 AC 99 ms
94,396 KB
testcase_26 AC 108 ms
97,816 KB
testcase_27 AC 116 ms
107,240 KB
testcase_28 AC 124 ms
108,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
A=list(map(int,input().split()))
for i in range(len(A)):
  if A[-1]==0:
    del A[-1]
    N-=1
A=A[::-1]
C=0
for i in range(N):
  if (A[i]+C)%(N-i):
    print('No')
    exit()
  else:
    C+=(A[i]+C)//(N-i)
print('Yes')
0