結果

問題 No.1219 Mancala Combo
ユーザー persimmon-persimmonpersimmon-persimmon
提出日時 2021-06-29 11:23:08
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 116 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 258 ms
コンパイル使用メモリ 87,256 KB
実行使用メモリ 107,356 KB
最終ジャッジ日時 2023-09-08 00:13:42
合計ジャッジ時間 5,387 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,300 KB
testcase_01 AC 72 ms
71,436 KB
testcase_02 AC 75 ms
71,588 KB
testcase_03 AC 69 ms
71,304 KB
testcase_04 AC 69 ms
71,548 KB
testcase_05 AC 70 ms
71,548 KB
testcase_06 AC 70 ms
71,472 KB
testcase_07 AC 70 ms
71,276 KB
testcase_08 AC 68 ms
71,148 KB
testcase_09 AC 69 ms
71,420 KB
testcase_10 AC 70 ms
71,488 KB
testcase_11 AC 72 ms
71,304 KB
testcase_12 AC 70 ms
71,152 KB
testcase_13 AC 70 ms
71,596 KB
testcase_14 AC 71 ms
71,380 KB
testcase_15 AC 70 ms
71,092 KB
testcase_16 AC 69 ms
71,452 KB
testcase_17 AC 96 ms
96,080 KB
testcase_18 AC 105 ms
97,248 KB
testcase_19 AC 93 ms
93,436 KB
testcase_20 AC 105 ms
99,796 KB
testcase_21 AC 89 ms
91,100 KB
testcase_22 AC 100 ms
94,772 KB
testcase_23 AC 99 ms
102,016 KB
testcase_24 AC 94 ms
92,416 KB
testcase_25 AC 92 ms
93,284 KB
testcase_26 AC 101 ms
97,380 KB
testcase_27 AC 104 ms
105,724 KB
testcase_28 AC 116 ms
107,356 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
a=list(map(int,input().split()))
tmp=0
for i in reversed(range(n)):
  if a[i]<=i+1 and (a[i]+tmp)%(i+1)==0:
    tmp+=(a[i]+tmp)//(i+1)
  else:
    print('No')
    exit()
print('Yes')
0