結果

問題 No.1219 Mancala Combo
ユーザー ntudantuda
提出日時 2021-09-16 20:37:19
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 234 bytes
コンパイル時間 275 ms
コンパイル使用メモリ 87,096 KB
実行使用メモリ 108,888 KB
最終ジャッジ日時 2023-09-12 04:12:46
合計ジャッジ時間 5,283 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
71,468 KB
testcase_01 AC 74 ms
71,276 KB
testcase_02 AC 76 ms
71,304 KB
testcase_03 AC 76 ms
71,304 KB
testcase_04 AC 74 ms
71,160 KB
testcase_05 AC 76 ms
71,380 KB
testcase_06 AC 74 ms
71,180 KB
testcase_07 AC 75 ms
71,152 KB
testcase_08 AC 75 ms
71,540 KB
testcase_09 AC 74 ms
71,460 KB
testcase_10 AC 75 ms
71,316 KB
testcase_11 AC 76 ms
71,184 KB
testcase_12 AC 74 ms
71,368 KB
testcase_13 AC 75 ms
71,360 KB
testcase_14 AC 76 ms
71,544 KB
testcase_15 AC 76 ms
71,324 KB
testcase_16 AC 73 ms
71,600 KB
testcase_17 AC 104 ms
97,140 KB
testcase_18 AC 110 ms
98,108 KB
testcase_19 AC 98 ms
94,456 KB
testcase_20 AC 112 ms
100,776 KB
testcase_21 AC 95 ms
91,912 KB
testcase_22 AC 105 ms
95,652 KB
testcase_23 AC 109 ms
103,256 KB
testcase_24 AC 101 ms
93,016 KB
testcase_25 AC 99 ms
94,228 KB
testcase_26 AC 109 ms
98,240 KB
testcase_27 AC 112 ms
107,172 KB
testcase_28 AC 124 ms
108,888 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
N = int(input()) + 1
A = [0] +  list(map(int,input().split()))
ON = 0
for i in reversed(range(1,N)):
    if (ON + A[i]) % i == 0:
        ON += (ON + A[i]) // i
    else:
        print("No")
        sys.exit()
print("Yes")
0